LLVM API Documentation

llvm::PointerTracking Class Reference

#include <PointerTracking.h>

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

List of all members.

Public Types

typedef ICmpInst::Predicate Predicate

Public Member Functions

 PointerTracking ()
virtual bool doInitialization (Module &M)
const SCEV * getAllocationElementCount (Value *P) const
const SCEV * getAllocationSizeInBytes (Value *V) const
void getPointerOffset (Value *Pointer, Value *&Base, const SCEV *&BaseSize, const SCEV *&Offset) const
enum SolverResult compareSCEV (const SCEV *A, Predicate Pred, const SCEV *B, const Loop *L)
bool conditionSufficient (const SCEV *LHS, Predicate Pred1, const SCEV *RHS, const SCEV *A, Predicate Pred2, const SCEV *B, const Loop *L)
enum SolverResult checkLimits (const SCEV *Offset, const SCEV *Limit, BasicBlock *BB)
virtual bool runOnFunction (Function &F)
virtual void getAnalysisUsage (AnalysisUsage &AU) const
void print (raw_ostream &OS, const Module *=0) const
virtual void print (std::ostream &OS, const Module *=0) const

Static Public Attributes

static char ID = 0


Detailed Description

Definition at line 52 of file PointerTracking.h.


Member Typedef Documentation

Definition at line 54 of file PointerTracking.h.


Constructor & Destructor Documentation

llvm::PointerTracking::PointerTracking (  ) 

Definition at line 29 of file PointerTracking.cpp.


Member Function Documentation

bool llvm::PointerTracking::doInitialization ( Module &  M  )  [virtual]

doInitialization - Virtual method overridden by subclasses to do any necessary per-module initialization.

Reimplemented from llvm::FunctionPass.

Definition at line 49 of file PointerTracking.cpp.

References llvm::FunctionType::get(), llvm::Module::getContext(), llvm::Module::getFunction(), llvm::Function::getFunctionType(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::Type::getInt8Ty(), llvm::PointerType::getUnqual(), and Ty.

const SCEV * llvm::PointerTracking::getAllocationElementCount ( Value *  P  )  const

Definition at line 160 of file PointerTracking.cpp.

References llvm::SequentialType::getElementType(), and llvm::Value::getType().

Referenced by print().

const SCEV * llvm::PointerTracking::getAllocationSizeInBytes ( Value *  V  )  const

Definition at line 166 of file PointerTracking.cpp.

References llvm::Value::getContext(), and llvm::Type::getInt8Ty().

Referenced by getPointerOffset().

void llvm::PointerTracking::getPointerOffset ( Value *  Pointer,
Value *&  Base,
const SCEV *&  BaseSize,
const SCEV *&  Offset 
) const

enum SolverResult llvm::PointerTracking::compareSCEV ( const SCEV *  A,
Predicate  Pred,
const SCEV *  B,
const Loop *  L 
)

bool llvm::PointerTracking::conditionSufficient ( const SCEV *  LHS,
Predicate  Pred1,
const SCEV *  RHS,
const SCEV *  A,
Predicate  Pred2,
const SCEV *  B,
const Loop *  L 
)

enum SolverResult llvm::PointerTracking::checkLimits ( const SCEV *  Offset,
const SCEV *  Limit,
BasicBlock *  BB 
)

Definition at line 190 of file PointerTracking.cpp.

References llvm::Unknown.

Referenced by print().

bool llvm::PointerTracking::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 31 of file PointerTracking.cpp.

References llvm::PredIteratorCache::clear().

void llvm::PointerTracking::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 42 of file PointerTracking.cpp.

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

void llvm::PointerTracking::print ( raw_ostream &  OS,
const Module *  M = 0 
) const

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

print - Print out the internal state of the pass. This is called by Analyze to print out the contents of an analysis. Otherwise it is not necessary to implement this method. Beware that the module pointer MAY be null. This automatically forwards to a virtual function that does not provide the Module* in case the analysis doesn't need it it can just be ignored.

Reimplemented from llvm::Pass.

Definition at line 255 of file PointerTracking.cpp.

References OS, and print().


Member Data Documentation

char llvm::PointerTracking::ID = 0 [static]

Definition at line 55 of file PointerTracking.h.


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