LLVM API Documentation
#include "X86.h"
#include "X86InstrInfo.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "x86-vzeroupper" |
Functions | |
STATISTIC (NumVZU,"Number of vzeroupper instructions inserted") | |
static bool | isYmmReg (unsigned Reg) |
static bool | isZmmReg (unsigned Reg) |
static bool | checkFnHasLiveInYmm (MachineRegisterInfo &MRI) |
static bool | clobbersAllYmmRegs (const MachineOperand &MO) |
static bool | hasYmmReg (MachineInstr *MI) |
#define DEBUG_TYPE "x86-vzeroupper" |
Definition at line 17 of file X86VZeroUpper.cpp.
|
static |
Definition at line 115 of file X86VZeroUpper.cpp.
References I, isYmmReg(), isZmmReg(), llvm::MachineRegisterInfo::livein_begin(), and llvm::MachineRegisterInfo::livein_end().
|
static |
Definition at line 124 of file X86VZeroUpper.cpp.
References llvm::MachineOperand::clobbersPhysReg().
Referenced by hasYmmReg().
|
static |
Definition at line 136 of file X86VZeroUpper.cpp.
References clobbersAllYmmRegs(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineInstr::isCall(), llvm::MachineOperand::isDebug(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isRegMask(), and isYmmReg().
Definition at line 107 of file X86VZeroUpper.cpp.
Referenced by checkFnHasLiveInYmm(), and hasYmmReg().
Definition at line 111 of file X86VZeroUpper.cpp.
Referenced by checkFnHasLiveInYmm().
STATISTIC | ( | NumVZU | , |
"Number of vzeroupper instructions inserted" | |||
) |