|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ffront.TypeUtility
| Field Summary | |
(package private) FirToHir |
fHir
|
(package private) HirUtility |
fHirUtil
|
(package private) HIR |
hir
|
(package private) HirRoot |
hirRoot
|
(package private) Sym |
sym
|
(package private) SymRoot |
symRoot
|
| Constructor Summary | |
TypeUtility(FirToHir fth)
|
|
| Method Summary | |
(package private) FortranCharacterExp |
castFortranCharacterExp(Exp exp)
|
(package private) Type |
charArray(int length)
|
(package private) void |
dp(java.lang.String msg)
|
(package private) Type |
getArrayType(Type array_type,
FirList dims,
DeclManager declMgr)
make Vector type. |
Type |
getBoolType()
|
Type |
getCharType()
|
StructType |
getComplexDoubleStructType()
Return Double Complex type as a StructType |
StructType |
getComplexStructType()
Return Complex type as a StructType |
(package private) Exp |
getDimSizeParamExp(Node n,
DeclManager declMgr)
|
Elem |
getDoubleImagPart()
|
Elem |
getDoubleRealPart()
|
Type |
getDoubleType()
|
Type |
getEntryType()
|
(package private) Exp |
getFortranCharacterLengthExp(Type type,
Node hint)
|
(package private) Exp |
getFortranCharacterLengthExp(Type type,
java.lang.String name)
|
(package private) Exp |
getFortranCharacterVectorLengthExp(VectorType type,
java.lang.String name)
|
Type |
getGlobalStructType(java.lang.String type_name,
java.lang.String[] names,
Type[] types)
make global struct. |
Elem |
getImagPart()
|
Elem |
getImagPart(StructType type)
|
Type |
getIntType()
|
Elem |
getRealPart()
|
Elem |
getRealPart(StructType type)
|
Type |
getRealType()
|
(package private) Type |
getType(int typeKind)
Make Sym Type from F77 Type kind |
(package private) Type |
getType(int typeKind,
int length)
Make Sym Type from F77 Type kind and length |
(package private) Type |
getType(Pair pTypeName)
Make Sym Type from F77 Type Pair F77 Type is Pair(type name, optional length spec) |
(package private) Type |
getVectorBaseType(VectorType vt)
Get vector base type if base type is char, return char vector type. |
Type |
getVoidType()
|
(package private) boolean |
isComplexType(Type type)
|
(package private) boolean |
isDoubleComplexType(Type type)
|
(package private) boolean |
isFortranCharacterType(Type type)
check if type is fortran character type, in other words, coins' Vector |
(package private) boolean |
isFortranCharacterVectorType(VectorType type)
check if type is vector of fortran character type. |
(package private) Type |
makeVectorType(Type type,
int dimnum,
Exp[] dim_lp,
Exp[] dim_up,
int[] dim_lows,
int[] dim_upps)
|
void |
popSymTable()
|
SymTable |
pushSymTable(Sym pSym)
|
(package private) Elem |
searchElem(java.lang.String ident,
Type type)
search "ident" element from Struct or Union type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
FirToHir fHir
HirUtility fHirUtil
Sym sym
HIR hir
SymRoot symRoot
HirRoot hirRoot
| Constructor Detail |
public TypeUtility(FirToHir fth)
| Method Detail |
Exp getDimSizeParamExp(Node n,
DeclManager declMgr)
Type getArrayType(Type array_type,
FirList dims,
DeclManager declMgr)
dims - dimension information
Type makeVectorType(Type type,
int dimnum,
Exp[] dim_lp,
Exp[] dim_up,
int[] dim_lows,
int[] dim_upps)
Type getType(Pair pTypeName)
pTypeName -
Type getType(int typeKind,
int length)
typeKind - length -
Type getType(int typeKind)
typeKind -
Type charArray(int length)
public Type getEntryType()
boolean isComplexType(Type type)
boolean isDoubleComplexType(Type type)
public StructType getComplexStructType()
typedef struct{
float _real;
float _imag;
} _complex_struct;
public StructType getComplexDoubleStructType()
typedef struct{
double _real;
double _imag;
} _complex_struct;
public Elem getRealPart()
public Elem getImagPart()
public Elem getDoubleRealPart()
public Elem getDoubleImagPart()
public Elem getRealPart(StructType type)
public Elem getImagPart(StructType type)
public Type getGlobalStructType(java.lang.String type_name,
java.lang.String[] names,
Type[] types)
struct stname{
int a;
float b;
int c[10];
};
Elem searchElem(java.lang.String ident,
Type type)
Type getVectorBaseType(VectorType vt)
boolean isFortranCharacterType(Type type)
boolean isFortranCharacterVectorType(VectorType type)
FortranCharacterExp castFortranCharacterExp(Exp exp)
Exp getFortranCharacterLengthExp(Type type,
Node hint)
Exp getFortranCharacterLengthExp(Type type,
java.lang.String name)
Exp getFortranCharacterVectorLengthExp(VectorType type,
java.lang.String name)
public SymTable pushSymTable(Sym pSym)
public void popSymTable()
public Type getRealType()
public Type getDoubleType()
public Type getIntType()
public Type getBoolType()
public Type getVoidType()
public Type getCharType()
void dp(java.lang.String msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||