at.dms.kjc
Class BytecodeOptimizer
java.lang.Object
at.dms.kjc.BytecodeOptimizer
public class BytecodeOptimizer
- extends Object
This class encapsulates the bytecode optimization calls.
Depending on the requested optimization level, it will choose
the optimizer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BytecodeOptimizer
public BytecodeOptimizer(int level)
- Creates an optimizer.
- Parameters:
level
- the requested optimization level
run
public CodeInfo run(CodeInfo info)
- Runs the optimizer on the given code info.
- Parameters:
info
- the code to optimize.