|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Backend.CSAHack.Graph.Graph
harpoon.Backend.CSAHack.FlowGraph.FlowGraph
harpoon.Backend.CSAHack.FlowGraph.AssemFlowGraph
public class AssemFlowGraph
A flow graph whose nodes correspond to machine instructions.
Instr
Constructor Summary | |
---|---|
AssemFlowGraph(Instr root,
UseDefer ud,
boolean twoWord)
Construct an AssemFlowGraph from a list of instructions. |
Method Summary | |
---|---|
TempList |
def(Node n)
The set of temporaries defined by this instruction or block |
Instr |
instr(Node n)
|
boolean |
isMove(Node n)
True if this node represents a move instruction, i.e. one that can be deleted if def=use. |
Node |
newNode()
Create a new node in the flow graph that does not correspond to an instruction. |
Node |
newNode(Instr i)
Create a new node in the flow graph corresponding to the instruction passed as parameter. |
TempList |
use(Node n)
The set of temporaries used by this instruction or block |
Methods inherited from class harpoon.Backend.CSAHack.FlowGraph.FlowGraph |
---|
show |
Methods inherited from class harpoon.Backend.CSAHack.Graph.Graph |
---|
addEdge, nodes, rmEdge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssemFlowGraph(Instr root, UseDefer ud, boolean twoWord)
Method Detail |
---|
public Instr instr(Node n)
n
- a node in the flow graph.
public TempList def(Node n)
FlowGraph
def
in class FlowGraph
n
- a node in the flow graph.
Temp
public TempList use(Node n)
FlowGraph
use
in class FlowGraph
n
- a node in the flow graph.
Temp
public boolean isMove(Node n)
FlowGraph
isMove
in class FlowGraph
n
- a node in the flow graph.
public Node newNode()
newNode
in class Graph
public Node newNode(Instr i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |