Package soot.baf.toolkits.base
Interface Peephole
-
- All Known Implementing Classes:
ExamplePeephole
public interface PeepholeInterface to be implemented by peepholes acting on the Baf IR.- See Also:
PeepholeOptimizer,ExamplePeephole
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapply(Body b)Entry point for a peephole.
-
-
-
Method Detail
-
apply
boolean apply(Body b)
Entry point for a peephole. This method is repeatedly called by the peephole driver, until a fixed-point is reached over all peepholes.- Parameters:
b- Body to apply peephole to.- Returns:
- true if the peephole changed in any way the Body it acted on. false otherwise.
-
-