LLVM API Documentation
#include <PrologEpilogInserter.h>
Public Member Functions | |
PEI () | |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
bool | runOnMachineFunction (MachineFunction &Fn) override |
Static Public Attributes | |
static char | ID = 0 |
Definition at line 33 of file PrologEpilogInserter.h.
llvm::PEI::PEI | ( | ) | [inline] |
Definition at line 36 of file PrologEpilogInserter.h.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializePEIPass().
void PEI::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [override, virtual] |
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
For MachineFunctionPasses, calling AU.preservesCFG() indicates that the pass does not modify the MachineBasicBlock CFG.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 73 of file PrologEpilogInserter.cpp.
References llvm::MachineFunctionPass::getAnalysisUsage().
bool PEI::runOnMachineFunction | ( | MachineFunction & | Fn | ) | [override, virtual] |
runOnMachineFunction - Insert prolog/epilog code and replace abstract frame indexes with appropriate references.
Implements llvm::MachineFunctionPass.
Definition at line 112 of file PrologEpilogInserter.cpp.
References llvm::SmallVectorImpl< T >::clear(), llvm::MachineRegisterInfo::clearVirtRegs(), llvm::LLVMContext::diagnose(), F(), llvm::Function::getContext(), llvm::MachineFunction::getFrameInfo(), llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getFunction(), llvm::MachineRegisterInfo::getNumVirtRegs(), llvm::MachineFunction::getRegInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getSubtarget(), llvm::Function::hasFnAttribute(), llvm::Attribute::Naked, llvm::TargetFrameLowering::processFunctionBeforeCalleeSavedScan(), llvm::TargetFrameLowering::processFunctionBeforeFrameFinalized(), llvm::TargetRegisterInfo::requiresFrameIndexScavenging(), llvm::TargetRegisterInfo::requiresRegisterScavenging(), and WarnStackSize.
char PEI::ID = 0 [static] |
Definition at line 35 of file PrologEpilogInserter.h.