Go to the documentation of this file.
9 #ifndef LLVM_LIB_TARGET_AMDGPU_SIFRAMELOWERING_H
10 #define LLVM_LIB_TARGET_AMDGPU_SIFRAMELOWERING_H
39 std::vector<CalleeSavedInfo> &CSI)
const override;
63 Register ScratchWaveOffsetReg)
const;
67 void emitEntryFunctionScratchRsrcRegSetup(
71 Register ScratchWaveOffsetReg)
const;
81 #endif // LLVM_LIB_TARGET_AMDGPU_SIFRAMELOWERING_H
This is an optimization pass for GlobalISel generic memory operations.
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
Information about the stack frame layout on the AMDGPU targets.
unsigned const TargetRegisterInfo * TRI
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
bool requiresStackPointerReference(const MachineFunction &MF) const
SIFrameLowering(StackDirection D, Align StackAl, int LAO, Align TransAl=Align(1))
bool allocateScavengingFrameIndexesNearIncomingSP(const MachineFunction &MF) const override
Control the placement of special register scavenging spill slots when allocating a stack frame.
This struct is a compact representation of a valid (non-zero power of two) alignment.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
bool assignCalleeSavedSpillSlots(MachineFunction &MF, const TargetRegisterInfo *TRI, std::vector< CalleeSavedInfo > &CSI) const override
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS=nullptr) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
void processFunctionBeforeFrameIndicesReplaced(MachineFunction &MF, RegScavenger *RS=nullptr) const override
processFunctionBeforeFrameIndicesReplaced - This method is called immediately before MO_FrameIndex op...
bool isSupportedStackID(TargetStackID::Value ID) const override
StackOffset is a class to represent an offset with 2 dimensions, named fixed and scalable,...
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
void processFunctionBeforeFrameFinalized(MachineFunction &MF, RegScavenger *RS=nullptr) const override
processFunctionBeforeFrameFinalized - This method is called immediately before the specified function...
Wrapper class representing virtual and physical registers.
void determineCalleeSavesSGPR(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS=nullptr) const
MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const override
This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy p...
~SIFrameLowering() override=default
void emitEntryFunctionPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const
StackOffset getFrameIndexReference(const MachineFunction &MF, int FI, Register &FrameReg) const override
getFrameIndexReference - This method should return the base register and offset used to reference a f...