coins.mdf
クラス ChangeStructure

java.lang.Object
  |
  +--coins.mdf.ChangeStructure

class ChangeStructure
extends java.lang.Object

Change the structure of the program into `switch-case' structure. Each `case' structure include one macro-task. This class also insert OpenMP pragmas, and wrap the `switch-case' structure up in `while' loop.


フィールドの概要
static int THR
          The threshold of debug output
 
コンストラクタの概要
(パッケージプライベート) ChangeStructure(MdfEnvironment e, MacroFlowGraph graph)
          Constructor.
 
メソッドの概要
(パッケージプライベート)  BlockStmt makeGetTask()
          Generate the dynamic scheduler
(パッケージプライベート)  BlockStmt makeInitTask()
          Generate the initialize part of the MDF program.
(パッケージプライベート)  BlockStmt makeSwitchBody(HirList labelList)
          Generate the body part of the `switch-case' structure.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

THR

public static final int THR
The threshold of debug output

関連項目:
定数フィールド値
コンストラクタの詳細

ChangeStructure

ChangeStructure(MdfEnvironment e,
                MacroFlowGraph graph)
          throws PassException
Constructor. Change the structure of the program.

パラメータ:
e - The environment of the MDF module
graph - The current macro flow graph
例外:
PassException - Any exception in the MDF module
メソッドの詳細

makeInitTask

BlockStmt makeInitTask()
Generate the initialize part of the MDF program.

戻り値:
The initialize part

makeGetTask

BlockStmt makeGetTask()
Generate the dynamic scheduler

戻り値:
The dynamic scheduler

makeSwitchBody

BlockStmt makeSwitchBody(HirList labelList)
                   throws PassException
Generate the body part of the `switch-case' structure.

戻り値:
The body part of the `switch-case' structure
例外:
PassException - Any exception in MDF module