Package 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
-
-
Constructor Summary
Constructors Constructor Description PeepholeOptimizer(Singletons.Global g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinternalTransform(Body body, String phaseName, Map<String,String> options)The method that drives the optimizations.static PeepholeOptimizerv()-
Methods inherited from class soot.BodyTransformer
transform, transform, transform
-
-
-
-
Constructor Detail
-
PeepholeOptimizer
public PeepholeOptimizer(Singletons.Global g)
-
-
Method Detail
-
v
public static PeepholeOptimizer v()
-
internalTransform
protected void internalTransform(Body body, String phaseName, Map<String,String> options)
The method that drives the optimizations.- Specified by:
internalTransformin classBodyTransformer- Parameters:
body- 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.
-
-