public class LocalOptimizationPass extends CompilerPass
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.Class<? extends CompilerPass>> |
DEPENDENCIES |
(package private) boolean |
locallyOptimized |
NO_DEPENDENCIES| Constructor and Description |
|---|
LocalOptimizationPass() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(IRScope s,
java.lang.Object... data)
Meat of an individual pass.
|
java.util.List<java.lang.Class<? extends CompilerPass>> |
getDependencies() |
java.lang.String |
getLabel()
What is the user-friendly name of this compiler pass
|
void |
invalidate(IRScope scope)
The data that this pass is responsible for will get invalidated so that
if this pass is then execute()d it will generate new pass data.
|
java.lang.Object |
previouslyRun(IRScope scope)
If this pass has been previous run then return the data from that last run.
|
private static void |
recordSimplification(Variable res,
Operand val,
java.util.Map<Operand,Operand> valueMap,
java.util.Map<Variable,java.util.List<Variable>> simplificationMap) |
static void |
runLocalOptsOnInstrList(IRScope s,
java.util.ListIterator<Instr> instrs,
boolean preCFG) |
createPassInstance, createPassInstance, getPassesFromString, run, runboolean locallyOptimized
public static java.util.List<java.lang.Class<? extends CompilerPass>> DEPENDENCIES
public java.lang.String getLabel()
CompilerPassgetLabel in class CompilerPasspublic java.util.List<java.lang.Class<? extends CompilerPass>> getDependencies()
getDependencies in class CompilerPasspublic java.lang.Object execute(IRScope s, java.lang.Object... data)
CompilerPassexecute in class CompilerPasss - is the scope to run this pass ondata - is the data supplied to this pass to use to execute the passpublic java.lang.Object previouslyRun(IRScope scope)
CompilerPasspreviouslyRun in class CompilerPasspublic void invalidate(IRScope scope)
CompilerPassinvalidate in class CompilerPassscope - is where the pass stores its data.private static void recordSimplification(Variable res, Operand val, java.util.Map<Operand,Operand> valueMap, java.util.Map<Variable,java.util.List<Variable>> simplificationMap)