public class RangeTest extends java.lang.Object implements DDTest
Constructor and Description |
---|
RangeTest(SubscriptPair pair)
Constructs a range test problem from the given subscript pair.
|
Modifier and Type | Method and Description |
---|---|
static void |
compressDV(java.util.List<DependenceVector> dvs)
Compresses direction vectors as much as possible.
|
java.util.LinkedList<Loop> |
getCommonEnclosingLoops()
Returns the list of loops that commonly enclose the subscript pair.
|
static RangeTest |
getInstance(SubscriptPair pair)
Returns an instance of a range test problem with the specified subscript
pair.
|
boolean |
isTestEligible()
Checks if this test can proceed.
|
boolean |
testDependence(DependenceVector dvec)
Test dependence on the specified direction vector.
|
java.lang.String |
toString()
Returns a string that shows a snapshot of the current range test problem.
|
public RangeTest(SubscriptPair pair)
pair
- the subscript pair to be tested for dependency.public static RangeTest getInstance(SubscriptPair pair)
pair
matches one in the history cache.public boolean testDependence(DependenceVector dvec)
testDependence
in interface DDTest
dvec
- direction vector to be tested on.public boolean isTestEligible()
isTestEligible
in interface DDTest
public java.util.LinkedList<Loop> getCommonEnclosingLoops()
getCommonEnclosingLoops
in interface DDTest
public static void compressDV(java.util.List<DependenceVector> dvs)
public java.lang.String toString()
toString
in class java.lang.Object