LLVM API Documentation
#include <MipsSEFrameLowering.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 21 of file MipsSEFrameLowering.h.
|
inlineexplicit |
Definition at line 23 of file MipsSEFrameLowering.h.
Definition at line 260 of file MipsSEFrameLowering.cpp.
References I, llvm::MipsSubtarget::isABI_N64(), and llvm::MipsFrameLowering::STI.
Referenced by emitEpilogue(), and emitPrologue().
|
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 487 of file MipsSEFrameLowering.cpp.
References llvm::MipsSEInstrInfo::adjustStackPtr(), llvm::MachineBasicBlock::erase(), llvm::TargetMachine::getInstrInfo(), llvm::MachineFunction::getTarget(), hasReservedCallFrame(), llvm::MipsSubtarget::isABI_N64(), and llvm::MipsFrameLowering::STI.
|
virtual |
Implements llvm::TargetFrameLowering.
Definition at line 387 of file MipsSEFrameLowering.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MipsFunctionInfo::callsEhReturn(), ehDataReg(), llvm::DebugLoc::get(), llvm::MachineFrameInfo::getCalleeSavedInfo(), llvm::MipsFunctionInfo::getEhDataRegFI(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getInfo(), llvm::TargetMachine::getInstrInfo(), llvm::MachineBasicBlock::getLastNonDebugInstr(), llvm::TargetMachine::getRegisterInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::MipsFrameLowering::hasFP(), llvm::MipsSubtarget::isABI_N64(), and llvm::MipsFrameLowering::STI.
|
virtual |
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Implements llvm::TargetFrameLowering.
Definition at line 271 of file MipsSEFrameLowering.cpp.
References llvm::MachineModuleInfo::addFrameInst(), llvm::MachineBasicBlock::addLiveIn(), llvm::MachineInstrBuilder::addReg(), llvm::MachineFrameInfo::adjustsStack(), llvm::MachineBasicBlock::begin(), llvm::BuildMI(), llvm::MipsFunctionInfo::callsEhReturn(), llvm::MCCFIInstruction::createDefCfaOffset(), llvm::MCCFIInstruction::createDefCfaRegister(), llvm::MCCFIInstruction::createOffset(), llvm::MCContext::CreateTempSymbol(), ehDataReg(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::front(), llvm::DebugLoc::get(), llvm::MachineFrameInfo::getCalleeSavedInfo(), llvm::MachineModuleInfo::getContext(), llvm::MCRegisterInfo::getDwarfRegNum(), llvm::MipsFunctionInfo::getEhDataRegFI(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getInfo(), llvm::TargetMachine::getInstrInfo(), llvm::MachineFunction::getMMI(), llvm::MachineFrameInfo::getObjectOffset(), llvm::TargetMachine::getRegisterInfo(), llvm::MCContext::getRegisterInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::MipsFrameLowering::hasFP(), I, llvm::MipsSubtarget::isABI_N64(), llvm::MipsSubtarget::isLittle(), llvm::MachineBasicBlock::isLiveIn(), MRI, llvm::TargetOpcode::PROLOG_LABEL, llvm::MipsFrameLowering::STI, and std::swap().
|
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 474 of file MipsSEFrameLowering.cpp.
References llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::getMaxCallFrameSize(), llvm::TargetFrameLowering::getStackAlignment(), llvm::MachineFrameInfo::hasVarSizedObjects(), and llvm::isInt< 16 >().
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 506 of file MipsSEFrameLowering.cpp.
References llvm::RegScavenger::addScavengingFrameIndex(), llvm::MipsFunctionInfo::callsEhReturn(), llvm::MipsFunctionInfo::createEhDataRegsFI(), llvm::MachineFrameInfo::CreateStackObject(), llvm::MipsFrameLowering::estimateStackSize(), llvm::TargetRegisterClass::getAlignment(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getInfo(), llvm::MachineFunction::getRegInfo(), llvm::TargetRegisterClass::getSize(), llvm::MipsFrameLowering::hasFP(), llvm::MipsSubtarget::hasMips64(), llvm::MipsSubtarget::isABI_N64(), llvm::isInt< 16 >(), MRI, llvm::MachineRegisterInfo::setPhysRegUsed(), and llvm::MipsFrameLowering::STI.
|
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 443 of file MipsSEFrameLowering.cpp.
References llvm::MachineBasicBlock::addLiveIn(), llvm::MachineFunction::begin(), llvm::MachineFunction::getFrameInfo(), llvm::TargetMachine::getInstrInfo(), llvm::TargetRegisterInfo::getMinimalPhysRegClass(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getTarget(), llvm::MachineFrameInfo::isReturnAddressTaken(), and llvm::TargetInstrInfo::storeRegToStackSlot().