org.jikesrvm.compilers.opt.driver
Class IRPrinter

java.lang.Object
  extended by org.jikesrvm.compilers.opt.driver.CompilerPhase
      extended by org.jikesrvm.compilers.opt.driver.IRPrinter

public class IRPrinter
extends CompilerPhase

A trivial phase that can be inserted to dump the IR.


Field Summary
protected  String msg
           
 
Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
container
 
Constructor Summary
IRPrinter(String m)
          Constuct a phase to print the IR with a message.
 
Method Summary
 String getName()
           
 CompilerPhase newExecution(IR ir)
          Return this instance of this phase
 void perform(IR ir)
          Print an IR
 
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
 

Field Detail

msg

protected final String msg
Constructor Detail

IRPrinter

public IRPrinter(String m)
Constuct a phase to print the IR with a message.

Parameters:
m - the message
Method Detail

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