public class LiveVariableNode extends FlowGraphNode
_bb, _prob
Constructor and Description |
---|
LiveVariableNode(DataFlowProblem prob,
BasicBlock n) |
Modifier and Type | Method and Description |
---|---|
boolean |
applyTransferFunction()
Compute "OUT/IN" for the current node! The choice of "IN/OUT" is determined by the direction of data flow.
|
void |
buildDataFlowVars(Instr i)
Builds the data-flow variables (or facts) for a particular instruction.
|
void |
compute_MEET(CFG.CFG_Edge edge,
FlowGraphNode pred)
"MEET" current solution of "IN/OUT" with "OUT/IN(pred)",
where "pred" is a predecessor of the current node!
The choice of "IN/OUT" is determined by the direction of data flow.
|
void |
init()
Initialize this data flow node for solving the current problem
This is done after building dataflow variables for the problem.
|
void |
initSolnForNode()
Initialize this data flow node to compute the new solution
This is done before iteratively calling the MEET operator.
|
java.lang.String |
toString() |
buildDataFlowVars, computeDataFlowInfo, finalizeSolnForNode, getBB
public LiveVariableNode(DataFlowProblem prob, BasicBlock n)
public void init()
FlowGraphNode
init
in class FlowGraphNode
public void buildDataFlowVars(Instr i)
FlowGraphNode
buildDataFlowVars
in class FlowGraphNode
public void initSolnForNode()
FlowGraphNode
initSolnForNode
in class FlowGraphNode
public void compute_MEET(CFG.CFG_Edge edge, FlowGraphNode pred)
FlowGraphNode
compute_MEET
in class FlowGraphNode
public boolean applyTransferFunction()
FlowGraphNode
applyTransferFunction
in class FlowGraphNode
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2009 JRuby Team. All Rights Reserved.