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
AssemFlowGraph is an implementation of FlowGraph that constructs a control flow graph based on a sequence of Assem instructions.

See Also:
Instr, FlowGraph

Constructor Index

 o AssemFlowGraph(InstrList)
Construct a FlowGraph from a list of Assem instructions.

Method Index

 o def(Node)
The set of temporaries defined by this instruction.
 o instr(Node)
Get the instruction associated with this node of the graph.
 o isMove(Node)
True if the instruction is a MOVE.
 o nodes()
A special version of the nodes() method that always returns the nodes ordered the same way as the list of instructions passed to the AssemFlowGraph constructor function.
 o use(Node)
The set of temporaries used by this instruction.

Constructors

 o AssemFlowGraph
 public AssemFlowGraph(InstrList instrs)
Construct a FlowGraph from a list of Assem instructions.

Methods

 o instr
 public Instr instr(Node n)
Get the instruction associated with this node of the graph.

 o isMove
 public boolean isMove(Node n)
True if the instruction is a MOVE.

Overrides:
isMove in class FlowGraph
See Also:
MOVE
 o def
 public TempList def(Node n)
The set of temporaries defined by this instruction.

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

Overrides:
use in class FlowGraph
 o nodes
 public NodeList nodes()
A special version of the nodes() method that always returns the nodes ordered the same way as the list of instructions passed to the AssemFlowGraph constructor function.

Overrides:
nodes in class Graph

All Packages  Class Hierarchy  This Package  Previous  Next  Index