org.jikesrvm.compilers.opt.driver
Class IRPrinter
java.lang.Object
org.jikesrvm.compilers.opt.driver.CompilerPhase
org.jikesrvm.compilers.opt.driver.IRPrinter
public class IRPrinter
- extends CompilerPhase
A trivial phase that can be inserted to dump the IR.
Constructor Summary |
IRPrinter(String m)
Constuct a phase to print the IR with a message. |
Methods inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase |
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, printingEnabled, reportAdditionalStats, setContainer, shouldPerform, verify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
msg
protected final String msg
IRPrinter
public IRPrinter(String m)
- Constuct a phase to print the IR with a message.
- Parameters:
m
- the message
getName
public final String getName()
- Specified by:
getName
in class CompilerPhase
- Returns:
- a String which is the name of the phase.
perform
public final void perform(IR ir)
- Print an IR
- Specified by:
perform
in class CompilerPhase
- Parameters:
ir
- the IR to print
newExecution
public CompilerPhase newExecution(IR ir)
- Return this instance of this phase
- Overrides:
newExecution
in class CompilerPhase
- Parameters:
ir
- not used
- Returns:
- this