ic.opt
Class Optimization
java.lang.Object
ic.opt.Optimization
public abstract class Optimization
- extends Object
To create an optimization, simply subclass this class and define
optimize(md) to compute any dataflow information necessary to
perform the optimization on md and then modify the method's TAC
list. You can either provide methods in your TACList class to
modify an existing list, or you can construct a new list to replace
the old one.
Method Summary |
abstract void |
optimize(MethodDecl md)
Apply the optimization to the method md. |
void |
optimize(Program p)
Apply the optimization to each Method in p. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Optimization
public Optimization()
optimize
public void optimize(Program p)
- Apply the optimization to each Method in p.
optimize
public abstract void optimize(MethodDecl md)
- Apply the optimization to the method md.