LLVM API Documentation

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)
BumpPtrAllocatorgetVNInfoAllocator ()
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 26 of file LiveStackAnalysis.h.


Member Typedef Documentation

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

Definition at line 40 of file LiveStackAnalysis.h.

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

Definition at line 41 of file LiveStackAnalysis.h.


Constructor & Destructor Documentation

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

Definition at line 38 of file LiveStackAnalysis.h.


Member Function Documentation

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

Definition at line 42 of file LiveStackAnalysis.h.

Referenced by print().

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

Definition at line 43 of file LiveStackAnalysis.h.

Referenced by print().

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

Definition at line 44 of file LiveStackAnalysis.h.

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

Definition at line 45 of file LiveStackAnalysis.h.

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

Definition at line 46 of file LiveStackAnalysis.h.

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

Definition at line 48 of file LiveStackAnalysis.h.

References F, and I.

Referenced by addStackInterval().

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

Definition at line 55 of file LiveStackAnalysis.h.

Referenced by addStackInterval().

void LiveStacks::getAnalysisUsage ( AnalysisUsage  )  const [virtual]

getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.

Reimplemented from llvm::Pass.

Definition at line 27 of file LiveStackAnalysis.cpp.

References llvm::Pass::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 32 of file LiveStackAnalysis.cpp.

References llvm::BumpPtrAllocator::Reset().

bool LiveStacks::runOnMachineFunction ( MachineFunction  )  [virtual]

runOnMachineFunction - pass entry point

Implements llvm::MachineFunctionPass.

Definition at line 38 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 45 of file LiveStackAnalysis.cpp.

References begin(), E, end(), and I.

Referenced by print().

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

Reimplemented from llvm::Pass.

Definition at line 65 of file LiveStackAnalysis.h.

References M, and print().


Member Data Documentation

char LiveStacks::ID = 0 [static]

Definition at line 37 of file LiveStackAnalysis.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.