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(InstrList)
- This implementation builds a flowgraph node for every instruction.
-
def(Node)
- The set of temporaries defined by this instruction or block
-
instr(Node)
-
-
isMove(Node)
- True if this node represents a move instruction,
i.e.
-
show(PrintWriter, TempMap)
-
-
use(Node)
- The set of temporaries used by this instruction or block
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.
instr
public Instr instr(Node n)
def
public TempList def(Node node)
- The set of temporaries defined by this instruction or block
- Overrides:
- def in class FlowGraph
use
public TempList use(Node node)
- The set of temporaries used by this instruction or block
- Overrides:
- use in class FlowGraph
isMove
public boolean isMove(Node node)
- True if this node represents a move instruction,
i.e.
- Overrides:
- isMove in class FlowGraph
show
public void show(PrintWriter out,
TempMap m)
All Packages Class Hierarchy This Package Previous Next Index