cetus.analysis
Class DDGraph.Arc

java.lang.Object
  extended by cetus.analysis.DDGraph.Arc
Enclosing class:
DDGraph

public static class DDGraph.Arc
extends java.lang.Object


Constructor Summary
DDGraph.Arc(DDArrayAccessInfo expr1, DDArrayAccessInfo expr2, DependenceVector directionVector)
          Creates a dependence arc from source expr1 to sink expr2 with the relevant direction vector
DDGraph.Arc(DDGraph.Arc a)
           
 
Method Summary
 boolean belongsToLoop(Loop loop)
           
 boolean containsLoopCarriedDependence()
           
 byte getDependenceType()
           
 DependenceVector getDirectionVector()
           
 DDArrayAccessInfo getSink()
           
 Statement getSinkStatement()
           
 DDArrayAccessInfo getSource()
           
 Statement getSourceStatement()
           
 boolean isCarried(Loop l)
           
 void setDependenceType(int source_type, int sink_type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDGraph.Arc

public DDGraph.Arc(DDArrayAccessInfo expr1,
                   DDArrayAccessInfo expr2,
                   DependenceVector directionVector)
Creates a dependence arc from source expr1 to sink expr2 with the relevant direction vector

Parameters:
expr1 - - Contains all information related to source array access
expr2 - - Contains all information related to sink array access
directionVector -

DDGraph.Arc

public DDGraph.Arc(DDGraph.Arc a)
Method Detail

getSource

public DDArrayAccessInfo getSource()

getSink

public DDArrayAccessInfo getSink()

getSourceStatement

public Statement getSourceStatement()

getSinkStatement

public Statement getSinkStatement()

getDependenceType

public byte getDependenceType()

getDirectionVector

public DependenceVector getDirectionVector()

setDependenceType

public void setDependenceType(int source_type,
                              int sink_type)

belongsToLoop

public boolean belongsToLoop(Loop loop)

isCarried

public boolean isCarried(Loop l)

containsLoopCarriedDependence

public boolean containsLoopCarriedDependence()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object