LLVM API Documentation

llvm::RSProfilers Struct Reference

#include <RSProfiling.h>

Inheritance diagram for llvm::RSProfilers:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool isProfiling (Value *v)=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 25 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.


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