coins.mdf
Class DataDependence

java.lang.Object
  extended bycoins.mdf.DataDependence

public class DataDependence
extends java.lang.Object

Find data dependences between macro tasks.


Field Summary
static int THR
          The threshold of debug output
static int THR2
          The threshold of debug output
 
Constructor Summary
DataDependence(MdfEnvironment e, MacroFlowGraph g)
          Constructor:
 
Method Summary
 java.util.LinkedList depend(MacroTask mt)
          Return the list of macro tasks which are data depended by `mt'.
(package private)  void print()
          Debug print
(package private)  java.util.LinkedList threadPrivateVariable()
          Return the list of variables which uses thread private.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THR

public static final int THR
The threshold of debug output

See Also:
Constant Field Values

THR2

public static final int THR2
The threshold of debug output

See Also:
Constant Field Values
Constructor Detail

DataDependence

public DataDependence(MdfEnvironment e,
                      MacroFlowGraph g)
               throws PassException
Constructor:

Parameters:
e - The environment of the MDF module
g - The current macro flow graph
Method Detail

depend

public java.util.LinkedList depend(MacroTask mt)
Return the list of macro tasks which are data depended by `mt'.

Parameters:
mt - The current macro task
Returns:
The list of macro tasks which are data depended by `mt'

threadPrivateVariable

java.util.LinkedList threadPrivateVariable()
                                     throws PassException
Return the list of variables which uses thread private. Thread private variables mean that the variables defined and used in the same macro task, not LIVE OUT from the macro task.

Returns:
The list of variables which uses thread private
Throws:
PassException - Any exception in it

print

void print()
Debug print