|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.GraphEdge
org.jtool.jxplatform.graph.pdg.Dependence
org.jtool.jxplatform.graph.pdg.DD
A data dependence edge of PDGs.
| Field Summary | |
protected PDGNode |
loopCarriedNode
A loop carried node if this edge carries a variable for loop. |
protected JxVariable |
var
A variable that this edge carries. |
| Fields inherited from class org.jtool.jxplatform.graph.GraphEdge |
dst, sort, src |
| Fields inherited from interface org.jtool.jxplatform.graph.GraphEdgeSort |
antiDependence, CDs, DDs, deforderDependence, defuseDependence, fallControlDependence, fallThroughFlow, falseControlDependence, falseControlFlow, flows, outputDependence, parameterFlow, parameterIn, parameterOut, trueControlDependence, trueControlFlow |
| Constructor Summary | |
protected |
DD()
Creates a new, empty object. |
protected |
DD(PDGNode src,
PDGNode dst)
Creates a new edge. |
protected |
DD(PDGNode src,
PDGNode dst,
JxVariable jv)
Creates a new edge. |
| Method Summary | |
boolean |
equals(GraphElement elem)
Tests if this edge equals to a given edge. |
PDGNode |
getLoopCarriedNode()
Returns the loop carried node of this edge. |
JxVariable |
getVariable()
Returns the variable carried by this edge. |
boolean |
hasLoopCarriedNode()
Tests if this edge has a loop carried node. |
boolean |
isAnti()
Tests if this edge is an anti dependence. |
boolean |
isDefOrder()
Tests if this edge is a def-order dependence. |
boolean |
isDefUse()
Tests if this edge is a def-use dependence. |
boolean |
isOutput()
Tests if this edge is an output dependence. |
boolean |
isParameterIn()
Tests if this edge is a parameter-in dependence. |
boolean |
isParameterOut()
Tests if this edge is a parameter-out dependence. |
void |
print(java.lang.StringBuffer buf)
Collects information about this edge for printing. |
protected void |
setAnti()
Sets this edge as the anti dependence. |
protected void |
setDefOrder()
Sets this edge as the def-order dependence. |
protected void |
setDefUse()
Sets this edge as the def-use dependence. |
protected void |
setLoopCarriedNode(PDGNode node)
Sets a loop carried node of this edge. |
protected void |
setOutput()
Sets this edge as the output dependence. |
protected void |
setParameterIn()
Sets this edge as the parameter-in data dependence. |
protected void |
setParameterOut()
Sets this edge as the parameter-out dependence. |
protected void |
setVariable(JxVariable jv)
Sets a variable carried by this edge. |
| Methods inherited from class org.jtool.jxplatform.graph.pdg.Dependence |
isCD, isDD, print, write |
| Methods inherited from class org.jtool.jxplatform.graph.GraphEdge |
getDstNode, getSort, getSrcNode, setDstNode, setSort, setSrcNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JxVariable var
protected PDGNode loopCarriedNode
null. This means that this edge has no loop carreied node.
| Constructor Detail |
protected DD()
protected DD(PDGNode src,
PDGNode dst)
src - A source node of this edge.dst - A destination node of this edge.
protected DD(PDGNode src,
PDGNode dst,
JxVariable jv)
src - A source node of this edge.dst - A destination node of this edge.jv - A variable carried by this edge.| Method Detail |
protected void setVariable(JxVariable jv)
jv - A varible.public JxVariable getVariable()
protected void setLoopCarriedNode(PDGNode node)
node - A PDG node which carries any variable for loop.public PDGNode getLoopCarriedNode()
public boolean hasLoopCarriedNode()
true if this edge has a loop carried node, otherwise false.public boolean equals(GraphElement elem)
equals in interface GraphElementequals in class Dependenceelem - A edge to be checked.
true if the edges are equal, otherwise false.protected void setDefUse()
public boolean isDefUse()
true if this edge is a def-use dependence, otherwise false.protected void setDefOrder()
public boolean isDefOrder()
true if this edge is a def-order dependence, otherwise false.protected void setOutput()
public boolean isOutput()
true if this edge is an output dependence, otherwise false.protected void setAnti()
public boolean isAnti()
true if this edge is an anti dependence, otherwise false.protected void setParameterIn()
public boolean isParameterIn()
true if this edge is a parameter-in dependence, otherwise false.protected void setParameterOut()
public boolean isParameterOut()
true if this edge is a parameter-out dependence, otherwise false.public void print(java.lang.StringBuffer buf)
print in class Dependencebuf - The information about the edge.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||