public class XMPrewriteExpr
extends java.lang.Object
Constructor and Description |
---|
XMPrewriteExpr(XMPglobalDecl globalDecl) |
Modifier and Type | Method and Description |
---|---|
static Xobject |
calcLtoG(XMPtemplate t,
int ti,
Xobject expr,
XMPglobalDecl globalDecl) |
static Xobject |
createRewriteAlignedArrayFunc(XMPalignedArray alignedArray,
int arrayDimCount,
XobjList getAddrFuncArgs,
boolean forloop) |
static XobjList |
normArrayRefList(XobjList refExprList,
XMPalignedArray alignedArray) |
void |
rewrite(FuncDefBlock def) |
static void |
rewriteArrayRefInLoop(Xobject expr,
XMPglobalDecl globalDecl,
Block block,
BlockList loopBody,
XobjList loopIterList) |
static void |
rewriteLoopIndexInLoop(Xobject expr,
java.lang.String loopIndexName,
XMPtemplate templateObj,
int templateIndex,
XMPglobalDecl globalDecl,
Block block) |
void |
rewriteVarDecl(Xobject varDecl,
boolean isLocal) |
public XMPrewriteExpr(XMPglobalDecl globalDecl)
public void rewrite(FuncDefBlock def)
public static XobjList normArrayRefList(XobjList refExprList, XMPalignedArray alignedArray)
public static Xobject createRewriteAlignedArrayFunc(XMPalignedArray alignedArray, int arrayDimCount, XobjList getAddrFuncArgs, boolean forloop) throws XMPexception
XMPexception
public static void rewriteArrayRefInLoop(Xobject expr, XMPglobalDecl globalDecl, Block block, BlockList loopBody, XobjList loopIterList) throws XMPexception
XMPexception
public static void rewriteLoopIndexInLoop(Xobject expr, java.lang.String loopIndexName, XMPtemplate templateObj, int templateIndex, XMPglobalDecl globalDecl, Block block) throws XMPexception
XMPexception
public static Xobject calcLtoG(XMPtemplate t, int ti, Xobject expr, XMPglobalDecl globalDecl) throws XMPexception
XMPexception
public void rewriteVarDecl(Xobject varDecl, boolean isLocal)