org.jikesrvm.compilers.opt.controlflow
Class DominatorTreePhase

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

public final class DominatorTreePhase
extends CompilerPhase

Driver routine for dominator tree computation


Field Summary
 
Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
container
 
Constructor Summary
DominatorTreePhase()
           
 
Method Summary
 String getName()
          Returns "Dominator Tree"
 void perform(IR ir)
          Main driver.
 boolean printingEnabled(OptOptions options, boolean before)
          Should the IR be printed before and/or after this phase?
 boolean shouldPerform(OptOptions options)
          Should this phase be performed?
 
Methods inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, newExecution, performPhase, reportAdditionalStats, setContainer, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DominatorTreePhase

public DominatorTreePhase()
Method Detail

shouldPerform

public boolean shouldPerform(OptOptions options)
Should this phase be performed?

Overrides:
shouldPerform in class CompilerPhase
Parameters:
options - controlling compiler options
Returns:
true or false

getName

public String getName()
Returns "Dominator Tree"

Specified by:
getName in class CompilerPhase
Returns:
"Dominator Tree"

printingEnabled

public boolean printingEnabled(OptOptions options,
                               boolean before)
Should the IR be printed before and/or after this phase?

Overrides:
printingEnabled in class CompilerPhase
Parameters:
options - controlling compiler options
before - query control
Returns:
true or false.

perform

public void perform(IR ir)
Main driver.

Specified by:
perform in class CompilerPhase
Parameters:
ir - the governing IR