LLVM API Documentation
#include <Mips16FrameLowering.h>
Additional Inherited Members | |
![]() | |
enum | StackDirection { StackGrowsUp, StackGrowsDown } |
![]() | |
static const MipsFrameLowering * | create (MipsTargetMachine &TM, const MipsSubtarget &ST) |
![]() | |
uint64_t | estimateStackSize (const MachineFunction &MF) const |
![]() | |
const MipsSubtarget & | STI |
Definition at line 20 of file Mips16FrameLowering.h.
|
inlineexplicit |
Definition at line 22 of file Mips16FrameLowering.h.
|
virtual |
eliminateCallFramePseudoInstr - This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy pseudo instructions (but only if the Target is using them). It is responsible for eliminating these instructions, replacing them with concrete instructions. This method need only be implemented if using call frame setup/destroy pseudo instructions.
Reimplemented from llvm::TargetFrameLowering.
Definition at line 143 of file Mips16FrameLowering.cpp.
References llvm::Mips16InstrInfo::adjustStackPtr(), llvm::MachineBasicBlock::erase(), llvm::TargetMachine::getInstrInfo(), llvm::MachineFunction::getTarget(), hasReservedCallFrame(), and TII.
|
virtual |
Implements llvm::TargetFrameLowering.
Definition at line 77 of file Mips16FrameLowering.cpp.
References llvm::BuildMI(), llvm::MachineFunction::getFrameInfo(), llvm::TargetMachine::getInstrInfo(), llvm::MachineBasicBlock::getLastNonDebugInstr(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::MipsFrameLowering::hasFP(), llvm::Mips16InstrInfo::restoreFrame(), and TII.
|
virtual |
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Implements llvm::TargetFrameLowering.
Definition at line 30 of file Mips16FrameLowering.cpp.
References llvm::MachineModuleInfo::addFrameInst(), llvm::MachineFrameInfo::adjustsStack(), llvm::MachineBasicBlock::begin(), llvm::BuildMI(), llvm::MCCFIInstruction::createDefCfaOffset(), llvm::MCCFIInstruction::createOffset(), llvm::MCContext::CreateTempSymbol(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::front(), llvm::MachineModuleInfo::getContext(), llvm::MCRegisterInfo::getDwarfRegNum(), llvm::MachineFunction::getFrameInfo(), llvm::TargetMachine::getInstrInfo(), llvm::MachineFunction::getMMI(), llvm::MCContext::getRegisterInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::MipsFrameLowering::hasFP(), llvm::Mips16InstrInfo::makeFrame(), MRI, llvm::TargetOpcode::PROLOG_LABEL, and TII.
|
virtual |
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. This eliminates the need for add/sub sp brackets around call sites. Returns true if the call frame is included as part of the stack frame.
Reimplemented from llvm::TargetFrameLowering.
Definition at line 161 of file Mips16FrameLowering.cpp.
References llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::getMaxCallFrameSize(), and llvm::MachineFrameInfo::hasVarSizedObjects().
Referenced by eliminateCallFramePseudoInstr().
|
virtual |
processFunctionBeforeCalleeSavedScan - This method is called immediately before PrologEpilogInserter scans the physical registers used to determine what callee saved registers should be spilled. This method is optional.
Reimplemented from llvm::TargetFrameLowering.
Definition at line 169 of file Mips16FrameLowering.cpp.
References llvm::MachineFunction::getRegInfo(), and llvm::MachineRegisterInfo::setPhysRegUsed().
|
virtual |
restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns true if it isn't possible / profitable to do so by issuing a series of load instructions via loadRegToStackSlot(). Returns false otherwise.
Reimplemented from llvm::TargetFrameLowering.
Definition at line 127 of file Mips16FrameLowering.cpp.
|
virtual |
spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns true if it isn't possible / profitable to do so by issuing a series of store instructions via storeRegToStackSlot(). Returns false otherwise.
Reimplemented from llvm::TargetFrameLowering.
Definition at line 99 of file Mips16FrameLowering.cpp.
References llvm::MachineBasicBlock::addLiveIn(), llvm::MachineFunction::begin(), llvm::MachineFunction::getFrameInfo(), llvm::MachineBasicBlock::getParent(), and llvm::MachineFrameInfo::isReturnAddressTaken().