LLVM API Documentation

llvm::RSProfilers_std Struct Reference

#include <RSProfiling.h>

Inheritance diagram for llvm::RSProfilers_std:
[legend]
Collaboration diagram for llvm::RSProfilers_std:
[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

Static Public Attributes

static char ID


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 19 of file lib/Transforms/Instrumentation/RSProfiling.h.


Member Function Documentation

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 
)


Member Data Documentation

Reimplemented from llvm::RSProfilers.

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


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