Go to the documentation of this file.
13 #ifndef LLVM_LIB_TARGET_X86_X86REGISTERINFO_H
14 #define LLVM_LIB_TARGET_X86_X86REGISTERINFO_H
18 #define GET_REGINFO_HEADER
19 #include "X86GenRegisterInfo.inc"
63 unsigned Idx)
const override;
67 unsigned Idx)
const override;
76 unsigned SrcSubReg)
const override;
82 unsigned Kind = 0)
const override;
134 int SPAdj,
unsigned FIOperandNum,
This is an optimization pass for GlobalISel generic memory operations.
bool isFixedRegister(const MachineFunction &MF, MCRegister PhysReg) const override
Returns true if PhysReg is a fixed register.
Register getFrameRegister(const MachineFunction &MF) const override
Reg
All possible values of the reg field in the ModR/M byte.
unsigned getRegPressureLimit(const TargetRegisterClass *RC, MachineFunction &MF) const override
Triple - Helper class for working with autoconf configuration names.
void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
const MCPhysReg * getCalleeSavedRegsViaCopy(const MachineFunction *MF) const
const TargetRegisterClass * getGPRsForTailCall(const MachineFunction &MF) const
getGPRsForTailCall - Returns a register class with registers that can be used in forming tail calls.
const uint32_t * getDarwinTLSCallPreservedMask() const
constexpr std::underlying_type_t< E > Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
const TargetRegisterClass * getLargestLegalSuperClass(const TargetRegisterClass *RC, const MachineFunction &MF) const override
const uint32_t * getNoPreservedMask() const override
Register getFramePtr() const
Returns physical register used as frame pointer.
Register getBaseRegister() const
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
bool shouldRewriteCopySrc(const TargetRegisterClass *DefRC, unsigned DefSubReg, const TargetRegisterClass *SrcRC, unsigned SrcSubReg) const override
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
bool getRegAllocationHints(Register VirtReg, ArrayRef< MCPhysReg > Order, SmallVectorImpl< MCPhysReg > &Hints, const MachineFunction &MF, const VirtRegMap *VRM, const LiveRegMatrix *Matrix) const override
const TargetRegisterClass * getSubClassWithSubReg(const TargetRegisterClass *RC, unsigned Idx) const override
unsigned getPtrSizedFrameRegister(const MachineFunction &MF) const
X86RegisterInfo(const Triple &TT)
bool isArgumentRegister(const MachineFunction &MF, MCRegister Reg) const override
isArgumentReg - Returns true if Reg can be used as an argument to a function.
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID) const override
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
MachineBasicBlock MachineBasicBlock::iterator MBBI
void adjustStackMapLiveOutMask(uint32_t *Mask) const override
const TargetRegisterClass * getMatchingSuperRegClass(const TargetRegisterClass *A, const TargetRegisterClass *B, unsigned Idx) const override
getMatchingSuperRegClass - Return a subclass of the specified register class A so that each register ...
bool canRealignStack(const MachineFunction &MF) const override
int getSEHRegNum(unsigned i) const
Wrapper class representing virtual and physical registers.
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
getCalleeSavedRegs - Return a null-terminated list of all of the callee-save registers on this target...
unsigned findDeadCallerSavedReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI) const
findDeadCallerSavedReg - Return a caller-saved register that isn't live when it reaches the "return" ...
bool hasBasePointer(const MachineFunction &MF) const
const TargetRegisterClass * getCrossCopyRegClass(const TargetRegisterClass *RC) const override
getCrossCopyRegClass - Returns a legal register class to copy a register in the specified class to or...
unsigned getSlotSize() const
BitVector getReservedRegs(const MachineFunction &MF) const override
getReservedRegs - Returns a bitset indexed by physical register number indicating if a register is a ...
Register getStackRegister() const
unsigned getPtrSizedStackRegister(const MachineFunction &MF) const
const TargetRegisterClass * getPointerRegClass(const MachineFunction &MF, unsigned Kind=0) const override
getPointerRegClass - Returns a TargetRegisterClass used for pointer values.
Wrapper class representing physical registers. Should be passed by value.