LLVM API Documentation

llvm::LiveValues Class Reference

#include <LiveValues.h>

Inheritance diagram for llvm::LiveValues:
[legend]
Collaboration diagram for llvm::LiveValues:
[legend]

List of all members.

Public Member Functions

 LiveValues ()
virtual void getAnalysisUsage (AnalysisUsage &AU) const
virtual bool runOnFunction (Function &F)
virtual void releaseMemory ()
bool isUsedInBlock (const Value *V, const BasicBlock *BB)
bool isLiveThroughBlock (const Value *V, const BasicBlock *BB)
bool isKilledInBlock (const Value *V, const BasicBlock *BB)

Static Public Attributes

static char ID = 0

Classes

struct  Memo


Detailed Description

LiveValues - Analysis that provides liveness information for LLVM IR Values.

Definition at line 31 of file LiveValues.h.


Constructor & Destructor Documentation

LiveValues::LiveValues (  ) 

Definition at line 26 of file LiveValues.cpp.


Member Function Documentation

void LiveValues::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 28 of file LiveValues.cpp.

References llvm::AnalysisUsage::addRequired(), and llvm::AnalysisUsage::setPreservesAll().

bool LiveValues::runOnFunction ( Function &  F  )  [virtual]

runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.

Implements llvm::FunctionPass.

Definition at line 34 of file LiveValues.cpp.

void LiveValues::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 43 of file LiveValues.cpp.

bool LiveValues::isUsedInBlock ( const Value *  V,
const BasicBlock *  BB 
)

isUsedInBlock - Test if the given value is used in the given block.

Definition at line 49 of file LiveValues.cpp.

References M.

bool LiveValues::isLiveThroughBlock ( const Value *  V,
const BasicBlock *  BB 
)

isLiveThroughBlock - Test if the given value is known to be live-through the given block, meaning that the block is properly dominated by the value's definition, and there exists a block reachable from it that contains a use. This uses a conservative approximation that errs on the side of returning false.

isLiveThroughBlock - Test if the given value is known to be live-through the given block, meaning that the block is properly dominated by the value's definition, and there exists a block reachable from it that contains a use. This uses a conservative approximation that errs on the side of returning false.

Definition at line 60 of file LiveValues.cpp.

References M.

bool LiveValues::isKilledInBlock ( const Value *  V,
const BasicBlock *  BB 
)

isKilledInBlock - Test if the given value is known to be killed in the given block, meaning that the block contains a use of the value, and no blocks reachable from the block contain a use. This uses a conservative approximation that errs on the side of returning false.

isKilledInBlock - Test if the given value is known to be killed in the given block, meaning that the block contains a use of the value, and no blocks reachable from the block contain a use. This uses a conservative approximation that errs on the side of returning false.

Definition at line 71 of file LiveValues.cpp.

References M.


Member Data Documentation

char LiveValues::ID = 0 [static]

Definition at line 70 of file LiveValues.h.


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