LLVM API Documentation

llvm::LiveStacks Class Reference

#include <LiveStackAnalysis.h>

Inheritance diagram for llvm::LiveStacks:
[legend]
Collaboration diagram for llvm::LiveStacks:
[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 ()
void scaleNumbering (int factor)
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
BumpPtrAllocator & getVNInfoAllocator ()
virtual void getAnalysisUsage (AnalysisUsage &AU) const
virtual void releaseMemory ()
virtual bool runOnMachineFunction (MachineFunction &)
 runOnMachineFunction - pass entry point
virtual void print (std::ostream &O, const Module *=0) const
 print - Implement the dump method.
void print (std::ostream *O, const Module *M=0) const

Static Public Attributes

static char ID = 0


Detailed Description

Definition at line 27 of file LiveStackAnalysis.h.


Member Typedef Documentation

typedef SS2IntervalMap::iterator llvm::LiveStacks::iterator

Definition at line 44 of file LiveStackAnalysis.h.

typedef SS2IntervalMap::const_iterator llvm::LiveStacks::const_iterator

Definition at line 45 of file LiveStackAnalysis.h.


Constructor & Destructor Documentation

llvm::LiveStacks::LiveStacks (  )  [inline]

Definition at line 42 of file LiveStackAnalysis.h.


Member Function Documentation

const_iterator llvm::LiveStacks::begin (  )  const [inline]

Definition at line 46 of file LiveStackAnalysis.h.

Referenced by print(), and scaleNumbering().

const_iterator llvm::LiveStacks::end (  )  const [inline]

Definition at line 47 of file LiveStackAnalysis.h.

Referenced by print(), and scaleNumbering().

iterator llvm::LiveStacks::begin (  )  [inline]

Definition at line 48 of file LiveStackAnalysis.h.

iterator llvm::LiveStacks::end (  )  [inline]

Definition at line 49 of file LiveStackAnalysis.h.

void LiveStacks::scaleNumbering ( int  factor  ) 

Definition at line 29 of file LiveStackAnalysis.cpp.

References begin(), end(), LE, and LI.

unsigned llvm::LiveStacks::getNumIntervals (  )  const [inline]

Definition at line 53 of file LiveStackAnalysis.h.

LiveInterval& llvm::LiveStacks::getOrCreateInterval ( int  Slot,
const TargetRegisterClass *  RC 
) [inline]

Definition at line 55 of file LiveStackAnalysis.h.

References F, and llvm::getCommonSubClass().

Referenced by addStackInterval().

LiveInterval& llvm::LiveStacks::getInterval ( int  Slot  )  [inline]

Definition at line 69 of file LiveStackAnalysis.h.

const LiveInterval& llvm::LiveStacks::getInterval ( int  Slot  )  const [inline]

Definition at line 76 of file LiveStackAnalysis.h.

bool llvm::LiveStacks::hasInterval ( int  Slot  )  const [inline]

Definition at line 83 of file LiveStackAnalysis.h.

const TargetRegisterClass* llvm::LiveStacks::getIntervalRegClass ( int  Slot  )  const [inline]

Definition at line 87 of file LiveStackAnalysis.h.

Referenced by print().

BumpPtrAllocator& llvm::LiveStacks::getVNInfoAllocator (  )  [inline]

Definition at line 96 of file LiveStackAnalysis.h.

Referenced by addStackInterval().

void LiveStacks::getAnalysisUsage ( AnalysisUsage &  AU  )  const [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(), and llvm::AnalysisUsage::setPreservesAll().

void LiveStacks::releaseMemory (  )  [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 41 of file LiveStackAnalysis.cpp.

References llvm::BumpPtrAllocator::Reset().

bool LiveStacks::runOnMachineFunction ( MachineFunction &   )  [virtual]

runOnMachineFunction - pass entry point

Implements llvm::MachineFunctionPass.

Definition at line 48 of file LiveStackAnalysis.cpp.

void LiveStacks::print ( std::ostream &  O,
const Module *  = 0 
) const [virtual]

print - Implement the dump method.

Reimplemented from llvm::Pass.

Definition at line 55 of file LiveStackAnalysis.cpp.

References begin(), E, end(), getIntervalRegClass(), and llvm::TargetRegisterClass::getName().

Referenced by print().

void llvm::LiveStacks::print ( std::ostream *  O,
const Module *  M = 0 
) const [inline]

Reimplemented from llvm::Pass.

Definition at line 106 of file LiveStackAnalysis.h.

References M, and print().


Member Data Documentation

char LiveStacks::ID = 0 [static]

Definition at line 41 of file LiveStackAnalysis.h.


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