LLVM API Documentation
#include <PointerTracking.h>
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 |
Definition at line 52 of file PointerTracking.h.
Definition at line 54 of file PointerTracking.h.
| llvm::PointerTracking::PointerTracking | ( | ) |
Definition at line 29 of file PointerTracking.cpp.
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.
Definition at line 160 of file PointerTracking.cpp.
References llvm::SequentialType::getElementType(), and llvm::Value::getType().
Referenced by print().
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 |
Definition at line 198 of file PointerTracking.cpp.
References getAllocationSizeInBytes(), llvm::ScalarEvolution::getMinusSCEV(), llvm::ScalarEvolution::getSCEV(), llvm::Value::getUnderlyingObject(), and llvm::Value::stripPointerCasts().
Referenced by print().
| 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().
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 |
Definition at line 218 of file PointerTracking.cpp.
References llvm::AlwaysFalse, llvm::AlwaysTrue, Base, checkLimits(), E, getAllocationElementCount(), getPointerOffset(), llvm::inst_begin(), llvm::inst_end(), Offset, S, and llvm::Unknown.
Referenced by print().
| 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.
char llvm::PointerTracking::ID = 0 [static] |
Definition at line 55 of file PointerTracking.h.