LLVM API Documentation
#include <RSProfiling.h>
Public Member Functions | |
| virtual bool | isProfiling (Value *v) |
| virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
| void | IncrementCounterInBlock (BasicBlock *BB, unsigned CounterNum, GlobalValue *CounterArray) |
Public Attributes | |
| std::set< Value * > | profcode |
Static Public Attributes | |
| static char | ID |
Definition at line 19 of file lib/Transforms/Instrumentation/RSProfiling.h.
| bool RSProfilers_std::isProfiling | ( | Value * | v | ) | [virtual] |
isProfiling - This method returns true if the value passed it was inserted by the profiler.
Implements llvm::RSProfilers.
Definition at line 331 of file RSProfiling.cpp.
References llvm::RSProfilers::isProfiling(), LI, and profcode.
| void RSProfilers_std::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 363 of file RSProfiling.cpp.
References llvm::AnalysisUsage::addRequired().
| void RSProfilers_std::IncrementCounterInBlock | ( | BasicBlock * | BB, | |
| unsigned | CounterNum, | |||
| GlobalValue * | CounterArray | |||
| ) |
Definition at line 339 of file RSProfiling.cpp.
References llvm::ConstantInt::get(), llvm::BasicBlock::getFirstNonPHI(), llvm::ConstantExpr::getGetElementPtr(), llvm::Constant::getNullValue(), Indices, InsertPos, llvm::Type::Int32Ty, and profcode.
char llvm::RSProfilers_std::ID [static] |
Reimplemented from llvm::RSProfilers.
Definition at line 20 of file lib/Transforms/Instrumentation/RSProfiling.h.
| std::set<Value*> llvm::RSProfilers_std::profcode |
Definition at line 21 of file lib/Transforms/Instrumentation/RSProfiling.h.
Referenced by IncrementCounterInBlock(), and isProfiling().