coins.mdf
クラス FinishCondition

java.lang.Object
  |
  +--coins.mdf.Conditions
        |
        +--coins.mdf.FinishCondition

public class FinishCondition
extends Conditions

The status when a macro task finish execution. This condition is used by the dynamic scheduler.


フィールドの概要
protected  int elemSize
          The size of the elements of this condition
protected  MdfEnvironment env
           
protected  boolean[] isReady
          The condition whether the bit is ready
protected  MacroFlowGraph mfg
          The current macro flow graph
protected  int[][] vector
          The conditions which set into the executable conditions when the macro task finishes executing
protected  int vectSize
          Ths size of the bit vector
 
コンストラクタの概要
FinishCondition(MdfEnvironment e, MacroFlowGraph g)
          Constructor:
 
メソッドの概要
protected  int[] bitVector(int id)
          Get the bit vector which means the condition when the specified macro task is finished executing.
(パッケージプライベート)  Stmt finishCond(MacroTask src, MacroTask dst)
          Get the HIR statement which means the conditions when the macro task `src' is finished.
protected  void showVector(java.lang.String name)
          Debug print of the bit vector.
 java.lang.String toString()
          Get the string image of the bit vector.
 java.lang.String toString(MacroTask mt)
          Get the string image of the bit vector which is belong to the specified macro task.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

env

protected final MdfEnvironment env

mfg

protected final MacroFlowGraph mfg
The current macro flow graph


vector

protected final int[][] vector
The conditions which set into the executable conditions when the macro task finishes executing


elemSize

protected final int elemSize
The size of the elements of this condition


vectSize

protected final int vectSize
Ths size of the bit vector


isReady

protected final boolean[] isReady
The condition whether the bit is ready

コンストラクタの詳細

FinishCondition

public FinishCondition(MdfEnvironment e,
                       MacroFlowGraph g)
Constructor:

パラメータ:
e - The environment of the MDF module
g - The current macro flow graph
メソッドの詳細

finishCond

Stmt finishCond(MacroTask src,
                MacroTask dst)
Get the HIR statement which means the conditions when the macro task `src' is finished. If the macro task `dst' is not equal to `null', that means `src' includes a conditional branch and `dst' is decided as the next macro task.

パラメータ:
src - The macro task which is finished
dst - The macro task which is decided as the next macro task
戻り値:
The HIR statement which means a report the current condition to the scheduler

bitVector

protected int[] bitVector(int id)
Get the bit vector which means the condition when the specified macro task is finished executing.

パラメータ:
id - The unique number of each macro tasks
戻り値:
The bit vector which means the condition for the dynamic scheduler

showVector

protected void showVector(java.lang.String name)
Debug print of the bit vector.

パラメータ:
name - The name of the bit vector

toString

public java.lang.String toString()
Get the string image of the bit vector.

オーバーライド:
クラス java.lang.Object 内の toString
戻り値:
The string image of the bit vector

toString

public java.lang.String toString(MacroTask mt)
Get the string image of the bit vector which is belong to the specified macro task.

パラメータ:
mt - The target macro task
戻り値:
The string image of the bit vector