An instance of this class is created for each method that is instrumented by the adaptive system.
Contains necessary infrastructure to perform counter-based sampling used with the instrumentation sampling code (PLDI'01) (see InstrumentationSamplingFramework)
The following OPT phase inserts counters on all instructions in the IR.
An CompilerPhase that inserts a method invocation counter on the first basic block of the method.
An opt compiler phase that inserts yieldpoint counters.
Transforms the method so that instrumentation is sampled, rather than executed exhaustively.
This phase takes converts "instrumentation instructions" that were inserted by previous instrumentation phases and "lowers" them, converting them to the actual instructions that perform the instrumentation.