LLVM API Documentation
#include <RSProfiling.h>
Inheritance diagram for llvm::RSProfilers_std:
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 |
Definition at line 18 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 324 of file RSProfiling.cpp.
void RSProfilers_std::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | 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 355 of file RSProfiling.cpp.
References llvm::AnalysisUsage::addRequired().
void RSProfilers_std::IncrementCounterInBlock | ( | BasicBlock * | BB, | |
unsigned | CounterNum, | |||
GlobalValue * | CounterArray | |||
) |
Definition at line 332 of file RSProfiling.cpp.
References BB, llvm::BasicBlock::begin(), llvm::ConstantInt::get(), llvm::ConstantSInt::get(), llvm::ConstantExpr::getGetElementPtr(), llvm::Constant::getNullValue(), InsertPos, llvm::Type::IntTy, profcode, and llvm::Type::UIntTy.
std::set<Value*> llvm::RSProfilers_std::profcode |
Definition at line 19 of file lib/Transforms/Instrumentation/RSProfiling.h.
Referenced by IncrementCounterInBlock(), and isProfiling().