LLVM API Documentation

llvm::RSProfilers_std Struct Reference

#include <RSProfiling.h>

Inheritance diagram for llvm::RSProfilers_std:

Inheritance graph
[legend]
Collaboration diagram for llvm::RSProfilers_std:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

RSProfilers_std - a simple support class for profilers that handles most of the work of chaining and tracking inserted code.

Definition at line 18 of file lib/Transforms/Instrumentation/RSProfiling.h.


Member Function Documentation

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.

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.

References LI, and profcode.


Member Data Documentation

std::set<Value*> llvm::RSProfilers_std::profcode

Definition at line 19 of file lib/Transforms/Instrumentation/RSProfiling.h.

Referenced by IncrementCounterInBlock(), and isProfiling().


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