public class BasicType extends Xtype
Xtype.TypeInfo
Modifier and Type | Field and Description |
---|---|
static int |
BOOL |
static int |
CHAR |
static int |
DOUBLE |
static int |
DOUBLE_COMPLEX |
static int |
DOUBLE_IMAGINARY |
static int |
F_CHARACTER |
static int |
F_NUMERIC |
static int |
F_NUMERIC_ALL |
static int |
FLOAT |
static int |
FLOAT_COMPLEX |
static int |
FLOAT_IMAGINARY |
static int |
GCC_BUILTIN_VA_LIST |
static int |
INT |
static int |
LONG |
static int |
LONG_DOUBLE |
static int |
LONG_DOUBLE_COMPLEX |
static int |
LONG_DOUBLE_IMAGINARY |
static int |
LONGLONG |
static int |
SHORT |
static int |
UNDEF |
static int |
UNSIGNED_CHAR |
static int |
UNSIGNED_INT |
static int |
UNSIGNED_LONG |
static int |
UNSIGNED_LONGLONG |
static int |
UNSIGNED_SHORT |
static int |
VOID |
ARRAY, BASIC, bind, bind_name, boolType, charType, copied, coshape, doubleComplexType, doubleType, ENUM, F_ARRAY, F_COARRAY, FcharacterType, FcharacterWithLenType, FcomplexType, FexternalIntFunctionType, FexternalLogicalFunctionType, FexternalSubroutineType, Fint4Type, Fint8Type, FintFunctionType, FintType, floatComplexType, floatType, FlogicalFunctionType, FlogicalType, FnumericalAllFunctionType, FnumericAllType, FnumericType, FrealType, FsubroutineType, fTypeParamValues, FuintPtrType, FUNCTION, FvoidType, gccBuiltinVaListType, indvarPtrType, indvarType, intType, is_coarray, longDoubleComplexType, longdoubleType, longlongType, longType, POINTER, shortType, stringType, STRUCT, tag, TQ_ARRAY_STATIC, TQ_CONST, TQ_FABSTRACT, TQ_FALLOCATABLE, TQ_FASYNCHRONOUS, TQ_FCLASS, TQ_FCONTIGUOUS, TQ_FCRAY_POINTER, TQ_FDEFERRED, TQ_FELEMENTAL, TQ_FEXTERNAL, TQ_FIMPURE, TQ_FINTENT_IN, TQ_FINTENT_INOUT, TQ_FINTENT_OUT, TQ_FINTERNAL, TQ_FINTERNAL_PRIVATE, TQ_FINTRINSIC, TQ_FMODULE, TQ_FOPTIONAL, TQ_FPARAMETER, TQ_FPOINTER, TQ_FPRIVATE, TQ_FPROCEDURE, TQ_FPROGRAM, TQ_FPROTECTED, TQ_FPUBLIC, TQ_FPURE, TQ_FRECURSIVE, TQ_FSAVE, TQ_FSEQUENCE, TQ_FTARGET, TQ_FUNC_STATIC, TQ_FVALUE, TQ_FVOLATILE, TQ_GLOBAL, TQ_INLINE, TQ_LOCAL, TQ_RESTRICT, TQ_VOLATILE, type_infos, UNION, unsignedcharType, unsignedlonglongType, unsignedlongType, unsignedshortType, unsignedType, voidPtrType, voidType, XMP_CO_ARRAY
Constructor and Description |
---|
BasicType(int basic_type) |
BasicType(int basic_type,
long typeQualFlags) |
BasicType(int basic_type,
java.lang.String id,
long typeQualFlags,
Xobject gccAttrs,
Xobject fkind,
Xobject flen) |
BasicType(int basic_type,
java.lang.String id,
long typeQualFlags,
Xobject gccAttrs,
Xobject fkind,
Xobject flen,
Xobject[] codimensions)
constructor
|
Modifier and Type | Method and Description |
---|---|
static Xtype |
Conversion(Xtype lt,
Xtype rt) |
Xtype |
copy(java.lang.String id)
create copy
|
int |
getBasicType()
return basic type
|
int |
getElementLength(Block block)
Fortran: get Fortran type element length (bytes) in integer
|
Xobject |
getElementLengthExpr(Block block)
Fortran: get Fortran type element length (bytes) in Expr
|
Xobject |
getFkind()
Fortran: get kind parameter
|
Xobject |
getFlen()
Fortran: get len parameter
|
Xobject |
getTotalArraySizeExpr(Block block)
Fortran: get Fortran array size or 1 for scalar
|
static Xtype.TypeInfo |
getTypeInfo(int bt) |
static Xtype.TypeInfo |
getTypeInfoByCName(java.lang.String name) |
static Xtype.TypeInfo |
getTypeInfoByFName(java.lang.String name) |
static Xtype.TypeInfo |
getTypeInfoByName(java.lang.String name) |
boolean |
isBool()
return if is bool type
|
boolean |
isComplexOrImaginary()
return if is complex or imaginary type
|
boolean |
isFlenAssumedShape()
Fortran: return if len parameter is variable value
|
boolean |
isFlenAssumedSize()
Fortran: return if len parameter is variable value
|
boolean |
isFlenVariable()
Fortran: return if len parameter is variable value
|
boolean |
isFloating()
return if is float type
|
boolean |
isIntegral()
return if is integral type
|
boolean |
isNumeric()
return if is numeric type
|
boolean |
isUnsigned()
C: return if is unsigned type
|
boolean |
isVoid()
return if is void type
|
void |
setFlen(Xobject x) |
Array, Array, assign, convertFindexRange, convertToAssumedShape, copy, copyCodimensions, equals, Farray, Function, generateId, getArrayAdjSize, getArrayDim, getArrayElementType, getArraySize, getArraySizeExpr, getBaseRefType, getBind, getBindName, getCodimensions, getCorank, getFarraySizeExpr, getFTypeParamValues, getFuncParam, getFuncResultName, getGccAttributes, getKind, getKindName, getMemberList, getMemberType, getMoeList, getNumDimensions, getOriginal, getPass, getPassArgName, getProcList, getRef, getTagIdent, getTagName, getTypeQualFlags, getXcodeCId, getXcodeFId, hideCodimensions, Id, inherit, isArray, isArrayStatic, isBasic, isCoarray, isConst, isEnum, isExtended, isFabstract, isFallocatable, isFarray, isFassumedShape, isFassumedSize, isFasynchronous, isFcharacter, isFclass, isFcontiguous, isFcrayPointer, isFdeferred, isFelemental, isFexternal, isFfixedShape, isFimpure, isFintentIN, isFintentINOUT, isFintentOUT, isFinternal, isFinternalPrivate, isFintrinsic, isFmodule, isFoptional, isFparameter, isFpointer, isFprivate, isFprocedure, isFprogram, isFprotected, isFpublic, isFpure, isFrecursive, isFsave, isFsequence, isFsubroutine, isFtarget, isFuncProto, isFuncStatic, isFunction, isFvalue, isFvolatile, isGlobal, isInline, isNoArraySize, isPointer, isQualified, isRestrict, isStruct, isUnion, isVariableArray, isVolatile, Pointer, Pointer, removeCodimensions, setBind, setBindName, setCodimensions, setFTypeParamValues, setFuncResultName, setGccAttributes, setIsArrayStatic, setIsCoarray, setIsConst, setIsFabstract, setIsFallocatable, setIsFasynchronous, setIsFclass, setIsFcontiguous, setIsFcrayPointer, setIsFdeferred, setIsFelemental, setIsFexternal, setIsFimpure, setIsFintentIN, setIsFintentINOUT, setIsFintentOUT, setIsFinternal, setIsFinternalPrivate, setIsFintrinsic, setIsFmodule, setIsFoptional, setIsFparameter, setIsFpointer, setIsFprivate, setIsFprocedure, setIsFprogram, setIsFprotected, setIsFpublic, setIsFpure, setIsFrecursive, setIsFsave, setIsFsequence, setIsFtarget, setIsFuncStatic, setIsFvalue, setIsGlobal, setIsInline, setIsRestrict, setIsVoaltile, setKind, setPass, setPassArgName, setRef, setTagIdent, setTypeQualFlags, toString, unsetIsFsave, unsetIsFtarget, VoidPtrOrFuintPtr, wasCoarray
public static final int UNDEF
public static final int VOID
public static final int BOOL
public static final int CHAR
public static final int UNSIGNED_CHAR
public static final int SHORT
public static final int UNSIGNED_SHORT
public static final int INT
public static final int UNSIGNED_INT
public static final int LONG
public static final int UNSIGNED_LONG
public static final int LONGLONG
public static final int UNSIGNED_LONGLONG
public static final int FLOAT
public static final int DOUBLE
public static final int LONG_DOUBLE
public static final int FLOAT_IMAGINARY
public static final int DOUBLE_IMAGINARY
public static final int LONG_DOUBLE_IMAGINARY
public static final int FLOAT_COMPLEX
public static final int DOUBLE_COMPLEX
public static final int LONG_DOUBLE_COMPLEX
public static final int GCC_BUILTIN_VA_LIST
public static final int F_CHARACTER
public static final int F_NUMERIC
public static final int F_NUMERIC_ALL
public BasicType(int basic_type, java.lang.String id, long typeQualFlags, Xobject gccAttrs, Xobject fkind, Xobject flen, Xobject[] codimensions)
public BasicType(int basic_type)
public BasicType(int basic_type, long typeQualFlags)
public int getBasicType()
getBasicType
in class Xtype
public static final Xtype.TypeInfo getTypeInfo(int bt)
public static final Xtype.TypeInfo getTypeInfoByName(java.lang.String name)
public static final Xtype.TypeInfo getTypeInfoByCName(java.lang.String name)
public static final Xtype.TypeInfo getTypeInfoByFName(java.lang.String name)
public boolean isUnsigned()
Xtype
isUnsigned
in class Xtype
public boolean isIntegral()
Xtype
isIntegral
in class Xtype
public boolean isBool()
Xtype
public boolean isFloating()
Xtype
isFloating
in class Xtype
public boolean isComplexOrImaginary()
Xtype
isComplexOrImaginary
in class Xtype
public boolean isNumeric()
Xtype
public boolean isVoid()
Xtype
public void setFlen(Xobject x)
public boolean isFlenVariable()
Xtype
isFlenVariable
in class Xtype
public boolean isFlenAssumedShape()
Xtype
isFlenAssumedShape
in class Xtype
public boolean isFlenAssumedSize()
Xtype
isFlenAssumedSize
in class Xtype
public Xobject getTotalArraySizeExpr(Block block)
Xtype
getTotalArraySizeExpr
in class Xtype
public Xobject getElementLengthExpr(Block block)
Xtype
getElementLengthExpr
in class Xtype
public int getElementLength(Block block)
Xtype
getElementLength
in class Xtype