public class XMPutil
extends java.lang.Object
Constructor and Description |
---|
XMPutil() |
Modifier and Type | Method and Description |
---|---|
static XobjList |
castList(Xtype type,
XobjList list) |
static int |
countElmts(XobjList list) |
static int |
countElmts(XobjList list,
int constant) |
static int |
countElmts(XobjList list,
java.lang.String string) |
static XMPpair<Ident,Xtype> |
findTypedVar(java.lang.String name,
PragmaBlock pb) |
static XMPalignedArray |
findXMPalignedArray(java.lang.String arrayName,
XMPglobalDecl globalDecl,
XMPsymbolTable localXMPsymbolTable) |
static Xobject |
foldIntConstant(Xobject expr) |
static Xobject |
getArrayElmt(Xtype type,
int dim) |
static long |
getArrayElmtCount(Xtype type) |
static Xobject |
getArrayElmtsObj(Xtype type) |
static java.lang.String |
getArrayName(Xobject expr) |
static int |
getFirstIndex(XobjList list,
int constant) |
static int |
getFirstIndex(XobjList list,
java.lang.String string) |
static int |
getLastIndex(XobjList list,
int constant) |
static int |
getLastIndex(XobjList list,
java.lang.String string) |
static XobjList |
getLoopIter(CforBlock b,
java.lang.String indVarName) |
static XobjList |
getLoopIterListFromOnRef(XobjList loopIterList) |
static java.lang.String |
getTypeName(Xtype type) |
static Xobject |
getVar(Xobject obj) |
static java.lang.String |
getXobjSymbolName(Xobject x) |
static boolean |
hasElmt(XobjList list,
int constant) |
static boolean |
hasElmt(XobjList list,
java.lang.String string) |
static boolean |
hasIdent(XobjList list,
java.lang.String string) |
static java.lang.Boolean |
is_AllConstant(XMPnodes n) |
static java.lang.Boolean |
is_AllConstant(XMPtemplate t) |
static java.lang.Boolean |
is_Constant(Xobject obj,
int index) |
static boolean |
isIntegerType(Xtype type) |
static void |
putLoopIter(CforBlock b,
java.lang.String indVarName,
XobjList loopIter) |
public static Xobject getArrayElmtsObj(Xtype type) throws XMPexception
XMPexception
public static java.lang.String getXobjSymbolName(Xobject x) throws XMPexception
XMPexception
public static XMPalignedArray findXMPalignedArray(java.lang.String arrayName, XMPglobalDecl globalDecl, XMPsymbolTable localXMPsymbolTable)
public static void putLoopIter(CforBlock b, java.lang.String indVarName, XobjList loopIter)
public static long getArrayElmtCount(Xtype type) throws XMPexception
XMPexception
public static Xobject getArrayElmt(Xtype type, int dim) throws XMPexception
XMPexception
public static XMPpair<Ident,Xtype> findTypedVar(java.lang.String name, PragmaBlock pb) throws XMPexception
XMPexception
public static boolean isIntegerType(Xtype type)
public static java.lang.String getTypeName(Xtype type)
public static int countElmts(XobjList list)
public static int countElmts(XobjList list, int constant)
public static int countElmts(XobjList list, java.lang.String string)
public static boolean hasElmt(XobjList list, int constant)
public static boolean hasElmt(XobjList list, java.lang.String string)
public static boolean hasIdent(XobjList list, java.lang.String string)
public static int getFirstIndex(XobjList list, int constant)
public static int getFirstIndex(XobjList list, java.lang.String string)
public static int getLastIndex(XobjList list, int constant)
public static int getLastIndex(XobjList list, java.lang.String string)
public static java.lang.Boolean is_Constant(Xobject obj, int index)
public static java.lang.Boolean is_AllConstant(XMPnodes n)
public static java.lang.Boolean is_AllConstant(XMPtemplate t)
public static java.lang.String getArrayName(Xobject expr)