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, verify
private 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 CompilerPhase
public boolean shouldPerform(OptOptions options)
shouldPerform
in class CompilerPhase
options
- controlling compiler optionstrue
public String getName()
getName
in class CompilerPhase
public boolean printingEnabled(OptOptions options, boolean before)
printingEnabled
in class CompilerPhase
options
- controlling compiler optionsbefore
- query controlfalse
public void perform(IR ir)
perform
in class CompilerPhase
ir
- the IR on which to apply the phase