coins.opt
クラス ConstFolding

java.lang.Object
  |
  +--coins.opt.ConstFolding
直系の既知のサブクラス:
ConstFoldingHir

public class ConstFolding
extends java.lang.Object

Constant folding basic logic class.


フィールドの概要
 FlowRoot flowRoot
           
(パッケージプライベート)  FlowResults fResults
           
protected  SubpFlow fSubpFlow
           
(パッケージプライベート) static int JAVA_BYTE_SIZE
           
(パッケージプライベート) static int JAVA_CHAR_SIZE
           
(パッケージプライベート) static int JAVA_INT_SIZE
           
(パッケージプライベート) static int JAVA_LONG_SIZE
           
(パッケージプライベート) static int JAVA_SHORT_SIZE
           
 
コンストラクタの概要
ConstFolding(FlowResults pResults)
          ConstFolding Creates new ConstFolding
 
メソッドの概要
 boolean doBBlock(BBlock pBBlock)
          Performs constant folding for the given BBlock
 boolean doSubp(SubpFlow pSubpFlow)
          Performs constant folding for the subprogram that corresponds to the given SubpFlow.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

JAVA_BYTE_SIZE

static final int JAVA_BYTE_SIZE
関連項目:
定数フィールド値

JAVA_CHAR_SIZE

static final int JAVA_CHAR_SIZE
関連項目:
定数フィールド値

JAVA_SHORT_SIZE

static final int JAVA_SHORT_SIZE
関連項目:
定数フィールド値

JAVA_INT_SIZE

static final int JAVA_INT_SIZE
関連項目:
定数フィールド値

JAVA_LONG_SIZE

static final int JAVA_LONG_SIZE
関連項目:
定数フィールド値

flowRoot

public final FlowRoot flowRoot

fResults

FlowResults fResults

fSubpFlow

protected SubpFlow fSubpFlow
コンストラクタの詳細

ConstFolding

public ConstFolding(FlowResults pResults)
ConstFolding Creates new ConstFolding

メソッドの詳細

doSubp

public boolean doSubp(SubpFlow pSubpFlow)
Performs constant folding for the subprogram that corresponds to the given SubpFlow.

戻り値:
true if the subprogram changed (optimized).

doBBlock

public boolean doBBlock(BBlock pBBlock)
Performs constant folding for the given BBlock

戻り値:
true if the underlying IR changed (optimized).