public class InsertInstructionCounters extends CompilerPhase
Note: The counters are added at the end of HIR, so the counts will NOT reflect any changes to the code that occur after HIR.
container| Constructor and Description |
|---|
InsertInstructionCounters() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
CompilerPhase |
newExecution(IR ir)
Return this instance of this phase.
|
void |
perform(IR ir)
Insert a counter on every instruction, and group counts by
opcode type.
|
boolean |
shouldPerform(OptOptions options)
This method determines if the phase should be run, based on the
Options object it is passed.
|
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, printingEnabled, reportAdditionalStats, setContainer, verifypublic InsertInstructionCounters()
public CompilerPhase newExecution(IR ir)
newExecution in class CompilerPhaseir - not usedpublic final boolean shouldPerform(OptOptions options)
CompilerPhaseshouldPerform in class CompilerPhaseoptions - the compiler options for the compilationpublic final String getName()
getName in class CompilerPhasepublic final void perform(IR ir)
perform in class CompilerPhaseir - the governing IR