coins.ir.hir
クラス TestHir

java.lang.Object
  |
  +--coins.ir.hir.TestHir

public class TestHir
extends java.lang.Object

TestHir class

 Test HIR
 User may tentatively add a method call in order to test some HIR
 expression or nullify (by changing to comment) some method calls in
 the TestHir constructor.
 addStatements: add some statements to the tail of main().
 testAdjustableDim: test adjustable dimension.
 testBlockStmt: test getBlockStmt().
 testVisitor: test HirVisitorModel1 and HirVisitorModel2.
 testSymTable: test symbol table.
               You may tentatively add some other statements.
 testBBlockIterator: testBBlockSubtreeIterator and test BBlockNodeIterator.
 testClone: test copyWithOperands.
 testHirComponents: get some information for each kind of HIR expressions
               by using HirIterator. You may tentatively add other statements.
 testHirModify: make a copy of block and add it at the tail of subprogram.
 testInf: test to add information to InfStmt.
 testNodeIterator: test HIR iterator by using next(), getNextStmt(),
               getNexeExecutableNode().
 testReplace: test to replace assignment statement to generated
               assignment statement.


フィールドの概要
 FlowRoot flowRoot
           
protected  HIR hir
           
 HirRoot hirRoot
           
 IoRoot ioRoot
           
protected  Sym sym
           
 SymRoot symRoot
           
 
コンストラクタの概要
TestHir(HirRoot pHirRoot, FlowRoot pFlowRoot)
          TestHir Test HIR and HIR related methods.
 
メソッドの概要
(パッケージプライベート)  void addStatements(SubpDefinition pSubpDef)
           
(パッケージプライベート)  boolean isCommutative(Exp pExp)
           
(パッケージプライベート)  Exp reorderOperands(Exp pExp)
           
(パッケージプライベート)  void testAdjustableDim()
           
(パッケージプライベート)  void testgetBlockStmt(SubpDefinition pSubpDef)
           
(パッケージプライベート)  void testSymTable()
           
(パッケージプライベート)  void testVisitor(SubpDefinition pSubpDef)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ioRoot

public final IoRoot ioRoot

symRoot

public final SymRoot symRoot

hirRoot

public final HirRoot hirRoot

flowRoot

public final FlowRoot flowRoot

hir

protected HIR hir

sym

protected Sym sym
コンストラクタの詳細

TestHir

public TestHir(HirRoot pHirRoot,
               FlowRoot pFlowRoot)
TestHir Test HIR and HIR related methods. Invoked when testHir option is given.

メソッドの詳細

testSymTable

void testSymTable()

testAdjustableDim

void testAdjustableDim()

testgetBlockStmt

void testgetBlockStmt(SubpDefinition pSubpDef)

testVisitor

void testVisitor(SubpDefinition pSubpDef)

addStatements

void addStatements(SubpDefinition pSubpDef)

reorderOperands

Exp reorderOperands(Exp pExp)

isCommutative

boolean isCommutative(Exp pExp)