at.dms.kjc
Class BytecodeOptimizer

java.lang.Object
  extended by 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.


Constructor Summary
BytecodeOptimizer(int level)
          Creates an optimizer.
 
Method Summary
 CodeInfo run(CodeInfo info)
          Runs the optimizer on the given code info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytecodeOptimizer

public BytecodeOptimizer(int level)
Creates an optimizer.

Parameters:
level - the requested optimization level
Method Detail

run

public CodeInfo run(CodeInfo info)
Runs the optimizer on the given code info.

Parameters:
info - the code to optimize.