public final class PostDominatorsPhase extends CompilerPhase
Modifier and Type | Field and Description |
---|---|
private boolean |
unfactor
Should we unfactor the CFG?
|
container
Constructor and Description |
---|
PostDominatorsPhase(boolean unfactor) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return a string representation of this phase
|
void |
perform(IR ir)
Main driver for the post-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, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, newExecution, performPhase, reportAdditionalStats, setContainer, verify
private final boolean unfactor
public PostDominatorsPhase(boolean unfactor)
unfactor
- Should we unfactor the CFG before computing
dominators?public boolean shouldPerform(OptOptions options)
true
. The parent composite phase will
dictate.shouldPerform
in class CompilerPhase
options
- controlling compiler optionspublic 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