public class XMPalignedArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK |
static int |
BLOCK_CYCLIC |
static int |
CYCLIC |
static int |
DUPLICATION |
static int |
GBLOCK |
static int |
NOT_ALIGNED |
Constructor and Description |
---|
XMPalignedArray(java.lang.String name,
Xtype type,
ArrayType arrayType,
int dim,
java.util.Vector<Ident> accIdVector,
Ident arrayId,
Ident descId,
Ident addrId,
XMPtemplate alignTemplate) |
XMPalignedArray(java.lang.String name,
Xtype type,
ArrayType arrayType,
int dim,
java.util.Vector<Ident> accIdVector,
Ident arrayId,
Ident descId,
Ident addrId,
XMPtemplate alignTemplate,
Xobject addrObj) |
Modifier and Type | Method and Description |
---|---|
boolean |
canOptimized() |
boolean |
checkRealloc() |
static int |
convertDistMannerToAlignManner(int distManner) |
static void |
createAlignFunctionCalls(XMPalignedArray alignedArray,
XMPglobalDecl globalDecl,
XobjList alignSourceList,
XobjList alignSubscriptVarList,
XobjList alignSubscriptExprList,
XMPtemplate templateObj,
PragmaBlock pb,
Block parentBlock,
Ident arrayId,
int arrayDim,
java.lang.String arrayName,
Ident arrayDescId,
boolean isLocalPragma,
boolean isPointer,
boolean isParameter,
boolean isStaticDesc) |
Ident |
getAccIdAt(int index) |
java.util.Vector<Ident> |
getAccIdVector() |
Ident |
getAddrId() |
Xobject |
getAddrIdVoidAddr() |
Xobject |
getAddrIdVoidRef() |
Xobject |
getAddrObj() |
int |
getAlignMannerAt(int index) |
java.lang.String |
getAlignMannerStringAt(int index) |
Xobject |
getAlignNormExprAt(int index) |
Xobject |
getAlignSubscriptExprAt(int alignSourceIndex) |
java.lang.Integer |
getAlignSubscriptIndexAt(int alignSourceIndex) |
XMPtemplate |
getAlignTemplate() |
Ident |
getArrayId() |
Xtype |
getArrayType() |
Ident |
getDescId() |
int |
getDim() |
Ident |
getFlagId() |
Ident |
getGtolTemp0IdAt(int index) |
Ident |
getMultiArrayId() |
java.lang.String |
getName() |
XMPshadow |
getShadowAt(int index) |
Xtype |
getType() |
boolean |
hasShadow() |
boolean |
isLocal() |
boolean |
isParameter() |
boolean |
isPointer() |
boolean |
isStaticDesc() |
boolean |
isStructure() |
void |
normArraySize(int index,
Xobject normExpr) |
boolean |
realloc() |
void |
setAlignMannerAt(int manner,
int index) |
void |
setAlignNormExprAt(Xobject alignNormExpr,
int index) |
void |
setAlignSubscriptExprAt(Xobject alignSubscriptExpr,
int alignSourceIndex) |
void |
setAlignSubscriptIndexAt(int alignSubscriptIndex,
int alignSourceIndex) |
void |
setFlagId(Ident id) |
void |
setGtolTemp0IdAt(Ident temp0Id,
int index) |
void |
setHasShadow() |
void |
setIsLocal() |
void |
setIsParameter() |
void |
setIsPointer() |
void |
setIsStaticDesc(boolean flag) |
void |
setMultiArrayId(Ident id) |
void |
setOptimized(boolean flag) |
void |
setShadowAt(XMPshadow shadow,
int index) |
void |
setStructure(boolean arg) |
static void |
translateAlign(XobjList alignDecl,
XMPglobalDecl globalDecl,
boolean isLocalPragma,
PragmaBlock pb,
Xobject structVar) |
static void |
translateLocalAlias(XobjList localAliasDecl,
XMPglobalDecl globalDecl,
boolean isLocalPragma,
PragmaBlock pb) |
public static final int NOT_ALIGNED
public static final int DUPLICATION
public static final int BLOCK
public static final int CYCLIC
public static final int BLOCK_CYCLIC
public static final int GBLOCK
public XMPalignedArray(java.lang.String name, Xtype type, ArrayType arrayType, int dim, java.util.Vector<Ident> accIdVector, Ident arrayId, Ident descId, Ident addrId, XMPtemplate alignTemplate)
public void setMultiArrayId(Ident id)
public Ident getMultiArrayId()
public boolean canOptimized()
public void setOptimized(boolean flag)
public static int convertDistMannerToAlignManner(int distManner)
public void setStructure(boolean arg)
public boolean isStructure()
public Xobject getAddrObj()
public java.lang.String getName()
public Xtype getType()
public Xtype getArrayType()
public int getDim()
public void setAlignMannerAt(int manner, int index)
public int getAlignMannerAt(int index)
public java.lang.String getAlignMannerStringAt(int index) throws XMPexception
XMPexception
public java.util.Vector<Ident> getAccIdVector()
public Ident getAccIdAt(int index)
public void setGtolTemp0IdAt(Ident temp0Id, int index)
public Ident getGtolTemp0IdAt(int index)
public void setAlignSubscriptIndexAt(int alignSubscriptIndex, int alignSourceIndex)
public java.lang.Integer getAlignSubscriptIndexAt(int alignSourceIndex)
public void setAlignSubscriptExprAt(Xobject alignSubscriptExpr, int alignSourceIndex)
public Xobject getAlignSubscriptExprAt(int alignSourceIndex)
public void setAlignNormExprAt(Xobject alignNormExpr, int index)
public Xobject getAlignNormExprAt(int index)
public Ident getArrayId()
public Ident getDescId()
public Ident getAddrId()
public Xobject getAddrIdVoidRef()
public Xobject getAddrIdVoidAddr()
public void setHasShadow()
public boolean hasShadow()
public void setIsParameter()
public boolean isParameter()
public void setIsLocal()
public boolean isLocal()
public void setIsPointer()
public boolean isPointer()
public void setShadowAt(XMPshadow shadow, int index)
public XMPshadow getShadowAt(int index)
public XMPtemplate getAlignTemplate()
public void setIsStaticDesc(boolean flag)
public boolean isStaticDesc()
public void setFlagId(Ident id)
public Ident getFlagId()
public boolean checkRealloc() throws XMPexception
XMPexception
public boolean realloc() throws XMPexception
XMPexception
public void normArraySize(int index, Xobject normExpr)
public static void createAlignFunctionCalls(XMPalignedArray alignedArray, XMPglobalDecl globalDecl, XobjList alignSourceList, XobjList alignSubscriptVarList, XobjList alignSubscriptExprList, XMPtemplate templateObj, PragmaBlock pb, Block parentBlock, Ident arrayId, int arrayDim, java.lang.String arrayName, Ident arrayDescId, boolean isLocalPragma, boolean isPointer, boolean isParameter, boolean isStaticDesc)
public static void translateAlign(XobjList alignDecl, XMPglobalDecl globalDecl, boolean isLocalPragma, PragmaBlock pb, Xobject structVar) throws XMPexception
XMPexception
public static void translateLocalAlias(XobjList localAliasDecl, XMPglobalDecl globalDecl, boolean isLocalPragma, PragmaBlock pb) throws XMPexception
XMPexception