com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IMasterOptimizer<T> |
![]() |
Definition of a master optimizer, whose role is to manage and orchestrate the execution of individual optimizers.
Note about optimizer groups: currently, the way optimizers are run is as follows:
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int | getMode() | ||||||||||
abstract List<OptimizerEntry<T>> |
getRegisteredOptimizers(int groupId)
Get a copy of the lists of optimizer entries registered with this MO and belonging to the
provided optimizer group.
| ||||||||||
abstract List<OptimizerEntry<T>> |
getRegisteredOptimizers()
Get a copy of the list of optimizer entries registered with this MO.
| ||||||||||
abstract T |
getTarget()
Get the target onto which the optimizations will be performed.
| ||||||||||
abstract int |
perform()
Perform an optimization round.
| ||||||||||
abstract void |
registerInstrumenter(IMasterOptimizerInstrumenter<T> instrumenter)
Register an instrumenter.
| ||||||||||
abstract OptimizerEntry<T> |
registerOptimizer(int group, IOptimizer<T> opt)
Register an optimizer, with its default priority.
| ||||||||||
abstract OptimizerEntry<T> |
registerOptimizer(IOptimizer<T> opt)
Register an optimizer to the main group, with its default priority.
| ||||||||||
abstract OptimizerEntry<T> |
registerOptimizer(int group, IOptimizer<T> opt, double priority)
Register an optimizer.
| ||||||||||
abstract int | setMode(int mode) | ||||||||||
abstract void |
setTarget(T t)
Set the optimizer's target.
| ||||||||||
abstract boolean |
unregisterInstrumenter(IMasterOptimizerInstrumenter<T> instrumenter)
Unregister an instrumenter
| ||||||||||
abstract boolean |
unregisterOptimizer(OptimizerEntry<T> entry)
Remove an optimizer.
|
Get a copy of the lists of optimizer entries registered with this MO and belonging to the provided optimizer group.
Get a copy of the list of optimizer entries registered with this MO.
Get the target onto which the optimizations will be performed.
Perform an optimization round.
Register an instrumenter. Instrumenters will be called following their registration order.
Register an optimizer, with its default priority.
Register an optimizer to the main group, with its default priority.
Register an optimizer.
Set the optimizer's target.
Unregister an instrumenter