public class LocalOptimizationPass extends CompilerPass
| Modifier and Type | Field and Description |
|---|---|
static List<Class<? extends CompilerPass>> |
DEPENDENCIES |
NO_DEPENDENCIES| Constructor and Description |
|---|
LocalOptimizationPass() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(IRScope s,
Object... data)
Meat of an individual pass.
|
List<Class<? extends CompilerPass>> |
getDependencies() |
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.
|
Object |
previouslyRun(IRScope scope)
If this pass has been previous run then return the data from that last run.
|
static void |
runLocalOptsOnInstrList(IRScope s,
ListIterator<Instr> instrs,
boolean preCFG) |
createPassInstance, createPassInstance, getPassesFromString, run, runpublic static List<Class<? extends CompilerPass>> DEPENDENCIES
public String getLabel()
CompilerPassgetLabel in class CompilerPasspublic List<Class<? extends CompilerPass>> getDependencies()
getDependencies in class CompilerPasspublic Object execute(IRScope s, 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 Object previouslyRun(IRScope scope)
CompilerPasspreviouslyRun in class CompilerPasspublic void invalidate(IRScope scope)
CompilerPassinvalidate in class CompilerPassscope - is where the pass stores its data.public static void runLocalOptsOnInstrList(IRScope s, ListIterator<Instr> instrs, boolean preCFG)
Copyright © 2001-2014 JRuby. All Rights Reserved.