LLVM API Documentation

Public Types | Public Member Functions | Static Public Attributes
llvm::LiveStacks Class Reference

#include <LiveStackAnalysis.h>

Inheritance diagram for llvm::LiveStacks:
Inheritance graph
[legend]
Collaboration diagram for llvm::LiveStacks:
Collaboration graph
[legend]

List of all members.

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
LiveIntervalgetOrCreateInterval (int Slot, const TargetRegisterClass *RC)
LiveIntervalgetInterval (int Slot)
const LiveIntervalgetInterval (int Slot) const
bool hasInterval (int Slot) const
const TargetRegisterClassgetIntervalRegClass (int Slot) const
VNInfo::AllocatorgetVNInfoAllocator ()
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

Detailed Description

Definition at line 27 of file LiveStackAnalysis.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 50 of file LiveStackAnalysis.h.

Referenced by print().

Definition at line 52 of file LiveStackAnalysis.h.

Definition at line 51 of file LiveStackAnalysis.h.

Referenced by print().

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().

Definition at line 59 of file LiveStackAnalysis.h.

References I.

Definition at line 66 of file LiveStackAnalysis.h.

References I.

Definition at line 77 of file LiveStackAnalysis.h.

References I.

Referenced by print().

Definition at line 55 of file LiveStackAnalysis.h.

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().


Member Data Documentation

char LiveStacks::ID = 0 [static]

Definition at line 43 of file LiveStackAnalysis.h.


The documentation for this class was generated from the following files: