All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class FlowGraph.AssemFlowGraph

java.lang.Object
   |
   +----Graph.Graph
           |
           +----FlowGraph.FlowGraph
                   |
                   +----FlowGraph.AssemFlowGraph

public class AssemFlowGraph
extends FlowGraph

Constructor Index

 o AssemFlowGraph(InstrList)
This implementation builds a flowgraph node for every instruction.

Method Index

 o def(Node)
The set of temporaries defined by this instruction or block
 o instr(Node)
 o isMove(Node)
True if this node represents a move instruction, i.e.
 o show(PrintWriter, TempMap)
 o use(Node)
The set of temporaries used by this instruction or block

Constructors

 o AssemFlowGraph
 public AssemFlowGraph(InstrList instrs)
This implementation builds a flowgraph node for every instruction. A better implementation would build a node per basic block and allow forward and backward traversal of the instructions in the block.

Methods

 o instr
 public Instr instr(Node n)
 o def
 public TempList def(Node node)
The set of temporaries defined by this instruction or block

Overrides:
def in class FlowGraph
 o use
 public TempList use(Node node)
The set of temporaries used by this instruction or block

Overrides:
use in class FlowGraph
 o isMove
 public boolean isMove(Node node)
True if this node represents a move instruction, i.e.

Overrides:
isMove in class FlowGraph
 o show
 public void show(PrintWriter out,
                  TempMap m)

All Packages  Class Hierarchy  This Package  Previous  Next  Index