coins.mdf
Class Util

java.lang.Object
  extended bycoins.mdf.Util

class Util
extends java.lang.Object

The utilities for the MDF module.


Constructor Summary
(package private) Util(MdfEnvironment e, MacroFlowGraph g)
          Constructor:
 
Method Summary
(package private)  java.util.LinkedList findMtPreBlks(MacroTask mt, BBlock blk, java.util.LinkedList list)
          Get the list of the basic blocks which is on the path from the specified basic block to the entry basic block of the specified macro task.
(package private)  java.util.LinkedList findPostBlks(MacroTask mt, java.util.LinkedList list)
          Get the list of the macro tasks which is on the path from the specified macro task to the exit macro task of the current macro flow graph.
(package private)  java.util.LinkedList findPreBlks(MacroTask mt, java.util.LinkedList list)
          Get the list of the macro tasks which is on the path from the specified macro task to the entry macro task of the current macro flow graph.
(package private)  int numberOfConditions()
          Get the number of the conditions which construct the executable conditions.
(package private)  int vectorSize()
          Get the size of bit vector.
(package private)  int wordSize()
          Get the one word size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

Util(MdfEnvironment e,
     MacroFlowGraph g)
Constructor:

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

findPreBlks

java.util.LinkedList findPreBlks(MacroTask mt,
                                 java.util.LinkedList list)
Get the list of the macro tasks which is on the path from the specified macro task to the entry macro task of the current macro flow graph.

Parameters:
mt - The current macro task
list - The list of the macro tasks
Returns:
The list of the macro tasks

findPostBlks

java.util.LinkedList findPostBlks(MacroTask mt,
                                  java.util.LinkedList list)
Get the list of the macro tasks which is on the path from the specified macro task to the exit macro task of the current macro flow graph.

Parameters:
mt - The current macro task
list - The list of the macro tasks
Returns:
The list of the macro tasks

findMtPreBlks

java.util.LinkedList findMtPreBlks(MacroTask mt,
                                   BBlock blk,
                                   java.util.LinkedList list)
Get the list of the basic blocks which is on the path from the specified basic block to the entry basic block of the specified macro task.

Parameters:
mt - The current macro task
blk - The current basic block
list - The list of the basic blocks
Returns:
The list of the basic blocks

vectorSize

int vectorSize()
Get the size of bit vector. The size of 1 word are depended upon the target machine.

Returns:
The size of bit vector

wordSize

int wordSize()
Get the one word size. It is depend on the target machine architecture.

Returns:
The word size

numberOfConditions

int numberOfConditions()
Get the number of the conditions which construct the executable conditions.

Returns:
The number of the conditions which construct the executable conditions