LLVM API Documentation

llvm::RSProfilers Struct Reference

#include <RSProfiling.h>

Inheritance diagram for llvm::RSProfilers:
[legend]
Collaboration diagram for llvm::RSProfilers:
[legend]

List of all members.

Public Member Functions

 RSProfilers ()
virtual bool isProfiling (Value *v)=0

Static Public Attributes

static char ID = 0


Detailed Description

RSProfilers - The basic Random Sampling Profiler Interface Any profiler that implements this interface can be transformed by the random sampling pass to be sample based rather than always on.

The only exposed function can be queried to find out if an instruction was original or if it was inserted by the profiler. Implementations of this interface are expected to chain to other implementations, such that multiple profilers can be support simultaniously.

Definition at line 28 of file include/llvm/Transforms/RSProfiling.h.


Constructor & Destructor Documentation

llvm::RSProfilers::RSProfilers (  )  [inline]

Definition at line 30 of file include/llvm/Transforms/RSProfiling.h.


Member Function Documentation

virtual bool llvm::RSProfilers::isProfiling ( Value *  v  )  [pure virtual]

isProfiling - This method returns true if the value passed it was inserted by the profiler.

Implemented in llvm::RSProfilers_std.

Referenced by llvm::RSProfilers_std::isProfiling().


Member Data Documentation

char RSProfilers::ID = 0 [static]

Reimplemented in llvm::RSProfilers_std.

Definition at line 29 of file include/llvm/Transforms/RSProfiling.h.


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