public final class DominatorsPhase extends CompilerPhase
| Modifier and Type | Field and Description |
|---|---|
private static Constructor<CompilerPhase> |
constructor
Constructor for this compiler phase
|
private boolean |
unfactor
Should we unfactor the CFG?
|
container| Constructor and Description |
|---|
DominatorsPhase(boolean unfactor) |
| Modifier and Type | Method and Description |
|---|---|
Constructor<CompilerPhase> |
getClassConstructor()
Get a constructor object for this compiler phase
|
String |
getName()
Return a string representation of this phase
|
void |
perform(IR ir)
Main driver for the dominator calculation.
|
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?
|
dumpIR, dumpIR, getCompilerPhaseConstructor, getCompilerPhaseConstructor, newExecution, performPhase, reportAdditionalStats, setContainer, verifyprivate final boolean unfactor
private static final Constructor<CompilerPhase> constructor
public DominatorsPhase(boolean unfactor)
unfactor - Should we unfactor the CFG before computing
dominators?public Constructor<CompilerPhase> getClassConstructor()
getClassConstructor in class CompilerPhasepublic boolean shouldPerform(OptOptions options)
shouldPerform in class CompilerPhaseoptions - controlling compiler optionstruepublic String getName()
getName in class CompilerPhasepublic boolean printingEnabled(OptOptions options, boolean before)
printingEnabled in class CompilerPhaseoptions - controlling compiler optionsbefore - query controlfalsepublic void perform(IR ir)
perform in class CompilerPhaseir - the IR on which to apply the phase