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 () |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
void | releaseMemory () override |
bool | runOnMachineFunction (MachineFunction &) override |
runOnMachineFunction - pass entry point | |
void | print (raw_ostream &O, const Module *=nullptr) const override |
print - Implement the dump method. | |
Static Public Attributes | |
static char | ID = 0 |
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.
llvm::LiveStacks::LiveStacks | ( | ) | [inline] |
Definition at line 44 of file LiveStackAnalysis.h.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializeLiveStacksPass().
const_iterator llvm::LiveStacks::begin | ( | ) | const [inline] |
Definition at line 50 of file LiveStackAnalysis.h.
Referenced by print().
iterator llvm::LiveStacks::begin | ( | ) | [inline] |
Definition at line 52 of file LiveStackAnalysis.h.
const_iterator llvm::LiveStacks::end | ( | ) | const [inline] |
Definition at line 51 of file LiveStackAnalysis.h.
Referenced by print().
iterator llvm::LiveStacks::end | ( | ) | [inline] |
Definition at line 53 of file LiveStackAnalysis.h.
void LiveStacks::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 38 of file LiveStackAnalysis.cpp.
References llvm::MachineFunctionPass::getAnalysisUsage().
LiveInterval& llvm::LiveStacks::getInterval | ( | int | Slot | ) | [inline] |
Definition at line 59 of file LiveStackAnalysis.h.
References I.
const LiveInterval& llvm::LiveStacks::getInterval | ( | int | Slot | ) | const [inline] |
Definition at line 66 of file LiveStackAnalysis.h.
References I.
const TargetRegisterClass* llvm::LiveStacks::getIntervalRegClass | ( | int | Slot | ) | const [inline] |
unsigned llvm::LiveStacks::getNumIntervals | ( | ) | const [inline] |
Definition at line 55 of file LiveStackAnalysis.h.
LiveInterval & LiveStacks::getOrCreateInterval | ( | int | Slot, |
const TargetRegisterClass * | RC | ||
) |
Definition at line 60 of file LiveStackAnalysis.cpp.
References F(), llvm::TargetRegisterInfo::getCommonSubClass(), I, and llvm::TargetRegisterInfo::index2StackSlot().
VNInfo::Allocator& llvm::LiveStacks::getVNInfoAllocator | ( | ) | [inline] |
Definition at line 86 of file LiveStackAnalysis.h.
bool llvm::LiveStacks::hasInterval | ( | int | Slot | ) | const [inline] |
Definition at line 73 of file LiveStackAnalysis.h.
void LiveStacks::print | ( | raw_ostream & | O, |
const Module * | = nullptr |
||
) | const [override, virtual] |
print - Implement the dump method.
Reimplemented from llvm::Pass.
Definition at line 76 of file LiveStackAnalysis.cpp.
References begin(), end(), getIntervalRegClass(), llvm::TargetRegisterClass::getName(), and I.
void LiveStacks::releaseMemory | ( | ) | [override, 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 45 of file LiveStackAnalysis.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Reset().
bool LiveStacks::runOnMachineFunction | ( | MachineFunction & | MF | ) | [override, virtual] |
runOnMachineFunction - pass entry point
Implements llvm::MachineFunctionPass.
Definition at line 52 of file LiveStackAnalysis.cpp.
References llvm::TargetSubtargetInfo::getRegisterInfo(), and llvm::MachineFunction::getSubtarget().
char LiveStacks::ID = 0 [static] |
Definition at line 43 of file LiveStackAnalysis.h.