LLVM API Documentation

llvm::GCFunctionInfo Class Reference

#include <GCMetadata.h>

Collaboration diagram for llvm::GCFunctionInfo:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< GCPoint >
::iterator 
iterator
typedef std::vector< GCRoot >
::iterator 
roots_iterator
typedef std::vector< GCRoot >
::const_iterator 
live_iterator

Public Member Functions

 GCFunctionInfo (const Function &F, GCStrategy &S)
 ~GCFunctionInfo ()
const FunctiongetFunction () const
GCStrategygetStrategy ()
void addStackRoot (int Num, Constant *Metadata)
void addSafePoint (GC::PointKind Kind, unsigned Num)
uint64_t getFrameSize () const
void setFrameSize (uint64_t S)
iterator begin ()
iterator end ()
size_t size () const
roots_iterator roots_begin ()
roots_iterator roots_end ()
size_t roots_size () const
live_iterator live_begin (const iterator &p)
live_iterator live_end (const iterator &p)
size_t live_size (const iterator &p) const


Detailed Description

GCFunctionInfo - Garbage collection metadata for a single function.

Definition at line 81 of file GCMetadata.h.


Member Typedef Documentation

Definition at line 83 of file GCMetadata.h.

Definition at line 84 of file GCMetadata.h.

typedef std::vector<GCRoot>::const_iterator llvm::GCFunctionInfo::live_iterator

Definition at line 85 of file GCMetadata.h.


Constructor & Destructor Documentation

GCFunctionInfo::GCFunctionInfo ( const Function F,
GCStrategy S 
)

Definition at line 59 of file GCMetadata.cpp.

GCFunctionInfo::~GCFunctionInfo (  ) 

Definition at line 62 of file GCMetadata.cpp.


Member Function Documentation

const Function& llvm::GCFunctionInfo::getFunction (  )  const [inline]

getFunction - Return the function to which this metadata applies.

Definition at line 110 of file GCMetadata.h.

GCStrategy& llvm::GCFunctionInfo::getStrategy (  )  [inline]

getStrategy - Return the GC strategy for the function.

Definition at line 114 of file GCMetadata.h.

void llvm::GCFunctionInfo::addStackRoot ( int  Num,
Constant Metadata 
) [inline]

addStackRoot - Registers a root that lives on the stack. Num is the stack object ID for the alloca (if the code generator is

Definition at line 119 of file GCMetadata.h.

void llvm::GCFunctionInfo::addSafePoint ( GC::PointKind  Kind,
unsigned  Num 
) [inline]

addSafePoint - Notes the existence of a safe point. Num is the ID of the label just prior to the safe point (if the code generator is using MachineModuleInfo).

Definition at line 126 of file GCMetadata.h.

uint64_t llvm::GCFunctionInfo::getFrameSize (  )  const [inline]

getFrameSize/setFrameSize - Records the function's frame size.

Definition at line 132 of file GCMetadata.h.

void llvm::GCFunctionInfo::setFrameSize ( uint64_t  S  )  [inline]

Definition at line 133 of file GCMetadata.h.

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

begin/end - Iterators for safe points.

Definition at line 137 of file GCMetadata.h.

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

Definition at line 138 of file GCMetadata.h.

size_t llvm::GCFunctionInfo::size (  )  const [inline]

Definition at line 139 of file GCMetadata.h.

roots_iterator llvm::GCFunctionInfo::roots_begin (  )  [inline]

roots_begin/roots_end - Iterators for all roots in the function.

Definition at line 143 of file GCMetadata.h.

Referenced by live_begin().

roots_iterator llvm::GCFunctionInfo::roots_end (  )  [inline]

Definition at line 144 of file GCMetadata.h.

Referenced by live_end().

size_t llvm::GCFunctionInfo::roots_size (  )  const [inline]

Definition at line 145 of file GCMetadata.h.

Referenced by live_size().

live_iterator llvm::GCFunctionInfo::live_begin ( const iterator p  )  [inline]

live_begin/live_end - Iterators for live roots at a given safe point.

Definition at line 149 of file GCMetadata.h.

References roots_begin().

live_iterator llvm::GCFunctionInfo::live_end ( const iterator p  )  [inline]

Definition at line 150 of file GCMetadata.h.

References roots_end().

size_t llvm::GCFunctionInfo::live_size ( const iterator p  )  const [inline]

Definition at line 151 of file GCMetadata.h.

References roots_size().


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.