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()
getDefaultOptions
public java.lang.String getDefaultOptions()
- Overrides:
getDefaultOptions
in class BodyTransformer
- Following copied from class:
soot.BodyTransformer
- Returns:
- the default options for this transform.
getDeclaredOptions
public java.lang.String getDeclaredOptions()
- Overrides:
getDeclaredOptions
in class BodyTransformer
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
- Following copied from class:
soot.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.