Go to the documentation of this file.
13 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64REGISTERINFO_H
14 #define LLVM_LIB_TARGET_AARCH64_AARCH64REGISTERINFO_H
16 #define GET_REGINFO_HEADER
17 #include "AArch64GenRegisterInfo.inc"
21 class MachineFunction;
23 class TargetRegisterClass;
34 return getEncodingValue(
i);
64 unsigned Idx)
const override;
97 unsigned Kind = 0)
const override;
107 int64_t Offset)
const override;
109 int64_t Offset)
const override;
111 int64_t Offset)
const override;
113 unsigned FIOperandNum,
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID) const override
This is an optimization pass for GlobalISel generic memory operations.
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
bool shouldCoalesce(MachineInstr *MI, const TargetRegisterClass *SrcRC, unsigned SubReg, const TargetRegisterClass *DstRC, unsigned DstSubReg, const TargetRegisterClass *NewRC, LiveIntervals &LIS) const override
SrcRC and DstRC will be morphed into NewRC if this returns true.
void UpdateCustomCallPreservedMask(MachineFunction &MF, const uint32_t **Mask) const
unsigned getBaseRegister() const
Reg
All possible values of the reg field in the ModR/M byte.
bool isAnyArgRegReserved(const MachineFunction &MF) const
const uint32_t * getNoPreservedMask() const override
bool isArgumentRegister(const MachineFunction &MF, MCRegister Reg) const override
const MCPhysReg * getCalleeSavedRegsViaCopy(const MachineFunction *MF) const
Triple - Helper class for working with autoconf configuration names.
Register getFrameRegister(const MachineFunction &MF) const override
unsigned getRegPressureLimit(const TargetRegisterClass *RC, MachineFunction &MF) const override
bool cannotEliminateFrame(const MachineFunction &MF) const
const TargetRegisterClass * getCrossCopyRegClass(const TargetRegisterClass *RC) const override
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 * getSubClassWithSubReg(const TargetRegisterClass *RC, unsigned Idx) const override
int getSEHRegNum(unsigned i) const
Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx, int64_t Offset) const override
Insert defining instruction(s) for BaseReg to be a pointer to FrameIdx at the beginning of the basic ...
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
bool isFrameOffsetLegal(const MachineInstr *MI, Register BaseReg, int64_t Offset) const override
AArch64RegisterInfo(const Triple &TT)
Representation of each machine instruction.
bool needsFrameBaseReg(MachineInstr *MI, int64_t Offset) const override
needsFrameBaseReg - Returns true if the instruction's frame index reference would be better served by...
unsigned getCSRFirstUseCost() const override
bool isConstantPhysReg(MCRegister PhysReg) const override
bool useFPForScavengingIndex(const MachineFunction &MF) const override
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...
BitVector getReservedRegs(const MachineFunction &MF) const override
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override
bool isAsmClobberable(const MachineFunction &MF, MCRegister PhysReg) const override
unsigned getLocalAddressRegister(const MachineFunction &MF) const
StackOffset is a class to represent an offset with 2 dimensions, named fixed and scalable,...
const uint32_t * getCustomEHPadPreservedMask(const MachineFunction &MF) const override
const uint32_t * getThisReturnPreservedMask(const MachineFunction &MF, CallingConv::ID) const
getThisReturnPreservedMask - Returns a call preserved mask specific to the case that 'returned' is on...
const uint32_t * getDarwinCallPreservedMask(const MachineFunction &MF, CallingConv::ID) const
void emitReservedArgRegCallError(const MachineFunction &MF) const
Wrapper class representing virtual and physical registers.
void getOffsetOpcodes(const StackOffset &Offset, SmallVectorImpl< uint64_t > &Ops) const override
const uint32_t * getWindowsStackProbePreservedMask() const
Stack probing calls preserve different CSRs to the normal CC.
void resolveFrameIndex(MachineInstr &MI, Register BaseReg, int64_t Offset) const override
const TargetRegisterClass * getPointerRegClass(const MachineFunction &MF, unsigned Kind=0) const override
void UpdateCustomCalleeSavedRegs(MachineFunction &MF) const
const uint32_t * getTLSCallPreservedMask() const
bool regNeedsCFI(unsigned Reg, unsigned &RegToUseForCFI) const
Return whether the register needs a CFI entry.
bool requiresVirtualBaseRegisters(const MachineFunction &MF) const override
bool hasBasePointer(const MachineFunction &MF) const
bool requiresRegisterScavenging(const MachineFunction &MF) const override
const MCPhysReg * getDarwinCalleeSavedRegs(const MachineFunction *MF) const
bool isReservedReg(const MachineFunction &MF, MCRegister Reg) const
Wrapper class representing physical registers. Should be passed by value.