14 #ifndef LLVM_LIB_TARGET_ARM_ARMFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_ARM_ARMFRAMELOWERING_H
36 const std::vector<CalleeSavedInfo> &CSI,
41 const std::vector<CalleeSavedInfo> &CSI,
50 unsigned &FrameReg)
const override;
52 unsigned &FrameReg,
int SPAdj)
const;
67 const std::vector<CalleeSavedInfo> &CSI,
unsigned StmOpc,
68 unsigned StrOpc,
bool NoGap,
69 bool(*
Func)(
unsigned,
bool),
unsigned NumAlignedDPRCS2Regs,
70 unsigned MIFlags = 0)
const;
72 const std::vector<CalleeSavedInfo> &CSI,
unsigned LdmOpc,
73 unsigned LdrOpc,
bool isVarArg,
bool NoGap,
74 bool(*
Func)(
unsigned,
bool),
75 unsigned NumAlignedDPRCS2Regs)
const;
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register...
void adjustForSegmentedStacks(MachineFunction &MF, MachineBasicBlock &MBB) const override
Adjust the prologue to have the function use segmented stacks.
int ResolveFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg, int SPAdj) const
bool hasReservedCallFrame(const MachineFunction &MF) const override
hasReservedCallFrame - Under normal circumstances, when a frame pointer is not required, we reserve argument space for call sites in the function immediately on entry to the current function.
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
int getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const override
getFrameIndexReference - Provide a base+offset reference to an FI slot for debug info.
Information about stack frame layout on the target.
bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns...
ARMFrameLowering(const ARMSubtarget &sti)
bool canSimplifyCallFramePseudos(const MachineFunction &MF) const override
canSimplifyCallFramePseudos - If there is a reserved call frame, the call frame pseudos can be simpli...
bool noFramePointerElim(const MachineFunction &MF) const override
Return true if the target needs to disable frame pointer elimination.
bool enableShrinkWrapping(const MachineFunction &MF) const override
Returns true if the target will correctly handle shrink wrapping.
bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns tru...