LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Chooser Class Reference

Chooser - Something that chooses when to make a sample of the profiled code. More...

Inheritance diagram for Chooser:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void ProcessChoicePoint (BasicBlock *)=0
virtual void PrepFunction (Function *)=0
virtual ~Chooser ()

Detailed Description

Chooser - Something that chooses when to make a sample of the profiled code.

Definition at line 94 of file RSProfiling.cpp.


Constructor & Destructor Documentation

virtual Chooser::~Chooser  )  [inline, virtual]
 

Definition at line 102 of file RSProfiling.cpp.


Member Function Documentation

virtual void Chooser::PrepFunction Function  )  [pure virtual]
 

PrepFunction - is called once per function before other work is done. This gives the opertunity to insert new allocas and such.

Implemented in GlobalRandomCounter, GlobalRandomCounterOpt, and CycleCounter.

Referenced by ProfilerRS::runOnFunction().

virtual void Chooser::ProcessChoicePoint BasicBlock  )  [pure virtual]
 

ProcessChoicePoint - is called for each basic block inserted to choose between normal and sample code

Implemented in GlobalRandomCounter, GlobalRandomCounterOpt, and CycleCounter.

Referenced by ProfilerRS::runOnFunction().


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


This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.