at.dms.backend
Class ControlFlow

java.lang.Object
  extended by at.dms.backend.ControlFlow

public class ControlFlow
extends Object

This is the entry point of the backend, this class constructs the control flow graf and applies optimizations


Constructor Summary
ControlFlow(at.dms.backend.MethodEnv env, InstructionHandle start, HandlerInfo[] handlers)
          Creates a new instruction handle.
 
Method Summary
static at.dms.backend.BasicBlock findBasicBlock(InstructionHandle handle)
           
 InstructionHandle getInstructions()
           
 void optimize()
           
protected static void setMarked(at.dms.backend.BasicBlock[] bblocks, boolean marked)
           
 void trace()
          Prints a trace of the control flow structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlFlow

public ControlFlow(at.dms.backend.MethodEnv env,
                   InstructionHandle start,
                   HandlerInfo[] handlers)
Creates a new instruction handle. (Probably buggy description from cut and paste -- deleted references to wrong parameters)

Method Detail

trace

public void trace()
Prints a trace of the control flow structure


optimize

public void optimize()

getInstructions

public InstructionHandle getInstructions()

findBasicBlock

public static at.dms.backend.BasicBlock findBasicBlock(InstructionHandle handle)

setMarked

protected static final void setMarked(at.dms.backend.BasicBlock[] bblocks,
                                      boolean marked)