opt
Interface Optimization


public interface Optimization

Defines a generic interface for Optimizations: Two phase operation, analysis and transformation.


Method Summary
 void analyze()
          Perform analyzation for optimization.
 boolean isVerbose()
          Returns true, if in verbose mode.
 void setEntryBlock(BasicBlock block)
          Sets the current root of a CFG.
 void setMethodName(java.lang.String name)
          Sets the current CFGs method name.
 void setVerbose(boolean verbose)
          Sets verbose mode.
 BasicBlock transform()
          Perform actual optimization on CFG.
 

Method Detail

setEntryBlock

void setEntryBlock(BasicBlock block)
Sets the current root of a CFG.

Parameters:
block - BasicBlock

setMethodName

void setMethodName(java.lang.String name)
Sets the current CFGs method name.

Parameters:
name - Name

analyze

void analyze()
Perform analyzation for optimization.


transform

BasicBlock transform()
Perform actual optimization on CFG.

Returns:

setVerbose

void setVerbose(boolean verbose)
Sets verbose mode.

Parameters:
verbose - on/off.

isVerbose

boolean isVerbose()
Returns true, if in verbose mode.

Returns:
verbose?