Package org.jruby.ir.passes
Class LocalOptimizationPass
java.lang.Object
org.jruby.ir.passes.CompilerPass
org.jruby.ir.passes.LocalOptimizationPass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(FullInterpreterContext fic, Object... data) Meat of an individual pass.getLabel()
What is the user-friendly name of this compiler passShorter labelstatic Instr
optInstr
(FullInterpreterContext fic, Instr instr, Map<Operand, Operand> valueMap, Map<Variable, List<Variable>> simplificationMap) static org.jruby.ir.passes.LocalOptimizationPass.Result
static void
runLocalOptsOnInstrArray
(FullInterpreterContext fic, Instr[] instrs) Methods inherited from class org.jruby.ir.passes.CompilerPass
createPassInstance, createPassInstance, equals, getDependencies, getPassesFromString, hashCode, invalidate, previouslyRun, run, run, run
-
Constructor Details
-
LocalOptimizationPass
public LocalOptimizationPass()
-
-
Method Details
-
getLabel
Description copied from class:CompilerPass
What is the user-friendly name of this compiler pass- Specified by:
getLabel
in classCompilerPass
-
getShortLabel
Description copied from class:CompilerPass
Shorter label- Overrides:
getShortLabel
in classCompilerPass
-
execute
Description copied from class:CompilerPass
Meat of an individual pass. run will call this after dependency resolution.- Specified by:
execute
in classCompilerPass
- Parameters:
fic
- is the FullInterpreterContext to run this pass ondata
- is the data supplied to this pass to use to execute the pass
-
optInstr
-
runLocalOptsOnInstrArray
-
runLocalOptsOnBasicBlock
public static org.jruby.ir.passes.LocalOptimizationPass.Result runLocalOptsOnBasicBlock(FullInterpreterContext fic, BasicBlock b)
-