coins.ir.hir
Class TestHir

java.lang.Object
  extended bycoins.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.


Field Summary
 FlowRoot flowRoot
           
protected  HIR hir
           
 HirRoot hirRoot
           
 IoRoot ioRoot
           
protected  Sym sym
           
 SymRoot symRoot
           
 
Constructor Summary
TestHir(HirRoot pHirRoot, FlowRoot pFlowRoot)
          TestHir Test HIR and HIR related methods.
 
Method Summary
(package private)  void addStatements(SubpDefinition pSubpDef)
           
(package private)  boolean isCommutative(Exp pExp)
           
(package private)  Exp reorderOperands(Exp pExp)
           
(package private)  void testAdjustableDim()
           
(package private)  void testgetBlockStmt(SubpDefinition pSubpDef)
           
(package private)  void testSymTable()
           
(package private)  void testVisitor(SubpDefinition pSubpDef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TestHir

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

Method Detail

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)