org.jikesrvm.compilers.opt.mir2mc
Class FinalMIRExpansionDriver
java.lang.Object
org.jikesrvm.compilers.opt.driver.CompilerPhase
org.jikesrvm.compilers.opt.mir2mc.FinalMIRExpansionDriver
final class FinalMIRExpansionDriver
- extends CompilerPhase
A compiler phase that drives final MIR expansion.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FinalMIRExpansionDriver
FinalMIRExpansionDriver()
getName
public String getName()
- Specified by:
getName
in class CompilerPhase
- Returns:
- a String which is the name of the phase.
printingEnabled
public boolean printingEnabled(OptOptions options,
boolean before)
- Description copied from class:
CompilerPhase
- Returns true if the phase wants the IR dumped before and/or after it runs.
By default, printing is not enabled.
Subclasses should override this method if they want to provide IR dumping.
- Overrides:
printingEnabled
in class CompilerPhase
- Parameters:
options
- the compiler options for the compilationbefore
- true when invoked before perform, false otherwise.
- Returns:
- true if the IR should be printed, false otherwise.
newExecution
public CompilerPhase newExecution(IR ir)
- Description copied from class:
CompilerPhase
- This method is called immediately before performPhase. Phases
that do not need to create a new instance for each execution may
override this method to return this, but this must be done
carefully! Classes that don't override this method need to
override getClassConstructor.
- Overrides:
newExecution
in class CompilerPhase
- Parameters:
ir
- the IR that is about to be passed to performPhase
- Returns:
- an opt compiler phase on which performPhase may be invoked.
perform
public void perform(IR ir)
- Description copied from class:
CompilerPhase
- This is the method that actually does the work of the phase.
- Specified by:
perform
in class CompilerPhase
- Parameters:
ir
- the IR on which to apply the phase