coins.casttohir
クラス ToHirInit
java.lang.Object
|
+--coins.casttohir.ToHirInit
- final class ToHirInit
- extends java.lang.Object
Converet initializer of ASTree to HIR-C expression.
* @auther Shuichi Fukuda
メソッドの概要 |
(パッケージプライベート) void |
createAssignStmts(Stmt stmt,
Var var,
Expr expr)
Create initiation statements for lval variable by analyzing
AST initiator expr and add the created statements to the
parameter stmt which is either BlockStmt or LabeledStmt. |
(パッケージプライベート) Exp |
createSetData(Var lval,
Expr expr)
Create initializer. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fDbgLevel
protected int fDbgLevel
ToHirInit
ToHirInit(ToHir tohir,
ToHirC toc)
- Constructor.
- パラメータ:
tohir
- Offers cooperation with the object of other packages.
createSetData
Exp createSetData(Var lval,
Expr expr)
- Create initializer.
- パラメータ:
lval
- Variable to be initialized.expr
- Initial data expression (AST).
- 戻り値:
- Initializer expression.
createAssignStmts
void createAssignStmts(Stmt stmt,
Var var,
Expr expr)
- Create initiation statements for lval variable by analyzing
AST initiator expr and add the created statements to the
parameter stmt which is either BlockStmt or LabeledStmt.
- パラメータ:
stmt
- Statement (BlockStmt or LabeledStmt) to which initializer statements are added.expr
- Initiation expression in the form of AST.