soot.baf.toolkits.base
Class PeepholeOptimizer
java.lang.Object
|
+--soot.Transformer
|
+--soot.BodyTransformer
|
+--soot.baf.toolkits.base.PeepholeOptimizer
- public class PeepholeOptimizer
- extends BodyTransformer
Driver class to run peepholes on the Baf IR. The peepholes applied
must implement the Peephole interface. Peepholes are loaded dynamically
by the soot runtime; the runtime reads the file peephole.dat, in order to
determine which peepholes to apply.
- See Also:
Peephole
,
ExamplePeephole
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PeepholeOptimizer
public PeepholeOptimizer(Singletons.Global g)
v
public static PeepholeOptimizer v()
internalTransform
protected void internalTransform(Body body,
java.lang.String phaseName,
java.util.Map options)
- The method that drives the optimizations.
- Overrides:
- internalTransform in class BodyTransformer
- Tags copied from class: BodyTransformer
- Parameters:
b
- the body on which to apply the transformationphaseName
- the phasename for this transform; not typically used by implementations.options
- the actual computed options; a combination of default options and Scene specified options.