coins.ffront
クラス ComplexConstNode
java.lang.Object
|
+--coins.ffront.Pair
|
+--coins.ffront.ComplexConstNode
- すべての実装インタフェース:
- HasConstValue, Node
- public class ComplexConstNode
- extends Pair
- implements HasConstValue
Complex constant
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ComplexConstNode
public ComplexConstNode(Node pReal,
Node pImag,
FirToHir pfHir)
getReal
Node getReal()
getImag
Node getImag()
print
public void print(int level,
java.lang.String spaces)
- 定義:
- インタフェース
Node
内の print
- オーバーライド:
- クラス
Pair
内の print
makeExp
public Exp makeExp()
- Make HIR Exp node of this complex constant.
- 定義:
- インタフェース
Node
内の makeExp
- オーバーライド:
- クラス
Pair
内の makeExp
- 戻り値:
- HIR Exp.
makeArgAddr
public Exp makeArgAddr(FStmt pCallStmt)
- Make HIR Exp node from this complex constant
as a call-by-address parameter in pCallStmt.
typedef struct { float _real; float _imag; } _complex_struct;
_complex_struct dummyName;
dummyName._real = left;
dummyName._imag = right;
return Exp node of address of dummyName
- 定義:
- インタフェース
Node
内の makeArgAddr
- オーバーライド:
- クラス
Pair
内の makeArgAddr
- パラメータ:
pCallStmt
-
- 戻り値:
- HIR Exp.
makeRealExp
Exp makeRealExp(Node pNode)
getConstValue
public FNumber getConstValue()
- 定義:
- インタフェース
HasConstValue
内の getConstValue