LLVM API Documentation
#include <LiveStackAnalysis.h>
Public Types | |
typedef SS2IntervalMap::iterator | iterator |
typedef SS2IntervalMap::const_iterator | const_iterator |
Public Member Functions | |
LiveStacks () | |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
unsigned | getNumIntervals () const |
LiveInterval & | getOrCreateInterval (int Slot, const TargetRegisterClass *RC) |
LiveInterval & | getInterval (int Slot) |
const LiveInterval & | getInterval (int Slot) const |
bool | hasInterval (int Slot) const |
const TargetRegisterClass * | getIntervalRegClass (int Slot) const |
VNInfo::Allocator & | getVNInfoAllocator () |
virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
virtual void | releaseMemory () |
virtual bool | runOnMachineFunction (MachineFunction &) |
runOnMachineFunction - pass entry point More... | |
virtual void | print (raw_ostream &O, const Module *=0) const |
print - Implement the dump method. More... | |
![]() | |
FunctionPass (char &pid) | |
Pass * | createPrinterPass (raw_ostream &O, const std::string &Banner) const |
createPrinterPass - Get a function printer pass. More... | |
virtual void | assignPassManager (PMStack &PMS, PassManagerType T) |
virtual PassManagerType | getPotentialPassManagerType () const |
Return what kind of Pass Manager can manage this pass. More... | |
![]() | |
Pass (PassKind K, char &pid) | |
virtual | ~Pass () |
PassKind | getPassKind () const |
virtual const char * | getPassName () const |
AnalysisID | getPassID () const |
getPassID - Return the PassID number that corresponds to this pass. More... | |
virtual bool | doInitialization (Module &) |
virtual bool | doFinalization (Module &) |
void | dump () const |
virtual void | preparePassManager (PMStack &) |
Check if available pass managers are suitable for this pass or not. More... | |
void | setResolver (AnalysisResolver *AR) |
AnalysisResolver * | getResolver () const |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
virtual void | verifyAnalysis () const |
virtual void | dumpPassStructure (unsigned Offset=0) |
template<typename AnalysisType > | |
AnalysisType * | getAnalysisIfAvailable () const |
bool | mustPreserveAnalysisID (char &AID) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis () const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis (Function &F) |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI, Function &F) |
Static Public Attributes | |
static char | ID = 0 |
Additional Inherited Members | |
![]() | |
static const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
![]() | |
MachineFunctionPass (char &ID) | |
Definition at line 27 of file LiveStackAnalysis.h.
typedef SS2IntervalMap::const_iterator llvm::LiveStacks::const_iterator |
Definition at line 49 of file LiveStackAnalysis.h.
typedef SS2IntervalMap::iterator llvm::LiveStacks::iterator |
Definition at line 48 of file LiveStackAnalysis.h.
|
inline |
Definition at line 44 of file LiveStackAnalysis.h.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializeLiveStacksPass().
|
inline |
Definition at line 50 of file LiveStackAnalysis.h.
Referenced by print().
|
inline |
Definition at line 52 of file LiveStackAnalysis.h.
|
inline |
Definition at line 51 of file LiveStackAnalysis.h.
Referenced by print().
|
inline |
Definition at line 53 of file LiveStackAnalysis.h.
|
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 36 of file LiveStackAnalysis.cpp.
References llvm::MachineFunctionPass::getAnalysisUsage().
|
inline |
Definition at line 59 of file LiveStackAnalysis.h.
References I.
|
inline |
Definition at line 66 of file LiveStackAnalysis.h.
References I.
|
inline |
|
inline |
Definition at line 55 of file LiveStackAnalysis.h.
LiveInterval & LiveStacks::getOrCreateInterval | ( | int | Slot, |
const TargetRegisterClass * | RC | ||
) |
Definition at line 58 of file LiveStackAnalysis.cpp.
References F(), llvm::TargetRegisterInfo::getCommonSubClass(), I, and llvm::TargetRegisterInfo::index2StackSlot().
|
inline |
Definition at line 86 of file LiveStackAnalysis.h.
|
inline |
Definition at line 73 of file LiveStackAnalysis.h.
|
virtual |
print - Implement the dump method.
Reimplemented from llvm::Pass.
Definition at line 74 of file LiveStackAnalysis.cpp.
References begin(), end(), getIntervalRegClass(), llvm::TargetRegisterClass::getName(), and I.
|
virtual |
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused.
Optionally implement this function to release pass memory when it is no longer used.
Reimplemented from llvm::Pass.
Definition at line 43 of file LiveStackAnalysis.cpp.
References llvm::BumpPtrAllocator::Reset().
|
virtual |
runOnMachineFunction - pass entry point
Implements llvm::MachineFunctionPass.
Definition at line 50 of file LiveStackAnalysis.cpp.
References llvm::TargetMachine::getRegisterInfo(), and llvm::MachineFunction::getTarget().
|
static |
Definition at line 43 of file LiveStackAnalysis.h.