PPL Logo

xi::Entry Class Reference

#include <xi-symbol.h>

Inheritance diagram for xi::Entry:

Inheritance graph
[legend]
Collaboration diagram for xi::Entry:

Collaboration graph
[legend]

Public Member Functions

void setAccelParam (ParamList *apl)
void setAccelCodeBody (XStr *acb)
void setAccelCallbackName (XStr *acbn)
 Entry (int l, int a, Type *r, const char *n, ParamList *p, Value *sz=0, SdagConstruct *sc=0, const char *e=0, int connect=0, ParamList *connectPList=0)
void setChare (Chare *c)
int isConnectEntry (void)
int paramIsMarshalled (void)
int getStackSize (void)
int isThreaded (void)
int isSync (void)
int isIget (void)
int isConstructor (void)
int isExclusive (void)
int isImmediate (void)
int isSkipscheduler (void)
int isInline (void)
int isLocal (void)
int isCreate (void)
int isCreateHome (void)
int isCreateHere (void)
int isPython (void)
int isNoTrace (void)
int isNoKeep (void)
int isSdag (void)
int isAccel (void)
int isMemCritical (void)
int isReductionTarget (void)
void print (XStr &str)
void genIndexDecls (XStr &str)
void genPub (XStr &declstr, XStr &defstr, XStr &defconstr, int &connectPresent)
void genDecls (XStr &str)
void genDefs (XStr &str)
void genReg (XStr &str)
XStr genRegEp (bool isForRedn=false)
void preprocess ()
char * getEntryName ()
void generateEntryList (TList< CEntry * > &, SdagConstruct *)
void collectSdagCode (CParsedFile *pf, int &sdagPresent)
void propagateState (int)
void lookforCEntry (CEntry *centry)

Data Fields

XStrlabel
char * name
TParamListtargs
SdagConstructsdagCon
TList< CStateVar * > * stateVars
TList< CStateVar * > * stateVarsChildren
TList< CStateVar * > estateVars
CEntryentryPtr
const char * intExpr
ParamListparam
ParamListconnectParam
int isConnect
int isWhenEntry
ParamListaccelParam
XStraccelCodeBody
XStraccelCallbackName
int accel_numScalars
int accel_numArrays
int accel_dmaList_numReadOnly
int accel_dmaList_numReadWrite
int accel_dmaList_numWriteOnly
int accel_dmaList_scalarNeedsWrite

Private Member Functions

XStr proxyName (void)
XStr indexName (void)
void genCall (XStr &dest, const XStr &preCall, bool redn_wrapper=false)
XStr epStr (bool isForRedn=false, bool templateCall=false)
XStr epIdx (int fromProxy=1, bool isForRedn=false)
XStr epRegFn (int fromProxy=1, bool isForRedn=false)
XStr chareIdx (int fromProxy=1)
void genEpIdxDecl (XStr &str)
void genEpIdxDef (XStr &str)
void genChareDecl (XStr &str)
void genChareStaticConstructorDecl (XStr &str)
void genChareStaticConstructorDefs (XStr &str)
void genChareDefs (XStr &str)
void genArrayDefs (XStr &str)
void genArrayStaticConstructorDecl (XStr &str)
void genArrayStaticConstructorDefs (XStr &str)
void genArrayDecl (XStr &str)
void genGroupDecl (XStr &str)
void genGroupStaticConstructorDecl (XStr &str)
void genGroupStaticConstructorDefs (XStr &str)
void genGroupDefs (XStr &str)
void genPythonDecls (XStr &str)
void genPythonDefs (XStr &str)
void genPythonStaticDefs (XStr &str)
void genPythonStaticDocs (XStr &str)
void genAccelFullParamList (XStr &str, int makeRefs)
void genAccelFullCallList (XStr &str)
void genAccelIndexWrapperDecl_general (XStr &str)
void genAccelIndexWrapperDef_general (XStr &str)
void genAccelIndexWrapperDecl_spe (XStr &str)
void genAccelIndexWrapperDef_spe (XStr &str)
int genAccels_spe_c_funcBodies (XStr &str)
void genAccels_spe_c_regFuncs (XStr &str)
void genAccels_ppe_c_regFuncs (XStr &str)
XStr paramType (int withDefaultVals, int withEO=0, int useConst=1)
XStr paramComma (int withDefaultVals, int withEO=0)
XStr eo (int withDefaultVals, int priorComma=1)
XStr syncReturn (void)
XStr marshallMsg (void)
XStr callThread (const XStr &procName, int prependEntryName=0)

Private Attributes

int line
int entryCount
int attribs
TyperetType
Valuestacksize
const char * pythonDoc
int hasCallMarshall

Detailed Description

Definition at line 912 of file xi-symbol.h.


Constructor & Destructor Documentation

xi::Entry::Entry ( int  l,
int  a,
Type r,
const char *  n,
ParamList p,
Value sz = 0,
SdagConstruct sc = 0,
const char *  e = 0,
int  connect = 0,
ParamList connectPList = 0 
)


Member Function Documentation

XStr xi::Entry::proxyName ( void   )  [inline, private]

Definition at line 920 of file xi-symbol.h.

References xi::Member::container, and xi::Chare::proxyName().

XStr xi::Entry::indexName ( void   )  [inline, private]

void xi::Entry::genCall ( XStr dest,
const XStr preCall,
bool  redn_wrapper = false 
) [private]

XStr xi::Entry::epStr ( bool  isForRedn = false,
bool  templateCall = false 
) [private]

XStr xi::Entry::epIdx ( int  fromProxy = 1,
bool  isForRedn = false 
) [private]

XStr xi::Entry::epRegFn ( int  fromProxy = 1,
bool  isForRedn = false 
) [private]

Definition at line 3068 of file xi-symbol.C.

References epStr(), and indexName().

Referenced by genIndexDecls().

XStr xi::Entry::chareIdx ( int  fromProxy = 1  )  [private]

Definition at line 3077 of file xi-symbol.C.

References indexName().

Referenced by genChareStaticConstructorDefs(), and genGroupStaticConstructorDefs().

void xi::Entry::genEpIdxDecl ( XStr str  )  [private]

void xi::Entry::genEpIdxDef ( XStr str  )  [private]

void xi::Entry::genChareDecl ( XStr str  )  [private]

void xi::Entry::genChareStaticConstructorDecl ( XStr str  )  [private]

void xi::Entry::genChareStaticConstructorDefs ( XStr str  )  [private]

void xi::Entry::genChareDefs ( XStr str  )  [private]

void xi::Entry::genArrayDefs ( XStr str  )  [private]

void xi::Entry::genArrayStaticConstructorDecl ( XStr str  )  [private]

void xi::Entry::genArrayStaticConstructorDefs ( XStr str  )  [private]

void xi::Entry::genArrayDecl ( XStr str  )  [private]

void xi::Entry::genGroupDecl ( XStr str  )  [private]

void xi::Entry::genGroupStaticConstructorDecl ( XStr str  )  [private]

void xi::Entry::genGroupStaticConstructorDefs ( XStr str  )  [private]

void xi::Entry::genGroupDefs ( XStr str  )  [private]

void xi::Entry::genPythonDecls ( XStr str  )  [private, virtual]

void xi::Entry::genPythonDefs ( XStr str  )  [private, virtual]

Reimplemented from xi::Member.

Definition at line 3559 of file xi-symbol.C.

References xi::Chare::baseName(), xi::Member::container, isPython(), name, and print().

void xi::Entry::genPythonStaticDefs ( XStr str  )  [private, virtual]

Reimplemented from xi::Member.

Definition at line 3587 of file xi-symbol.C.

References xi::Chare::baseName(), xi::Member::container, isPython(), and name.

void xi::Entry::genPythonStaticDocs ( XStr str  )  [private, virtual]

Reimplemented from xi::Member.

Definition at line 3593 of file xi-symbol.C.

References isPython(), name, and pythonDoc.

void xi::Entry::genAccelFullParamList ( XStr str,
int  makeRefs 
) [private]

void xi::Entry::genAccelFullCallList ( XStr str  )  [private]

void xi::Entry::genAccelIndexWrapperDecl_general ( XStr str  )  [private]

Definition at line 3684 of file xi-symbol.C.

References epStr(), and genAccelFullParamList().

Referenced by genIndexDecls().

void xi::Entry::genAccelIndexWrapperDef_general ( XStr str  )  [private]

Definition at line 3690 of file xi-symbol.C.

References epStr(), genAccelFullParamList(), and xi::Member::makeDecl().

Referenced by genDefs().

void xi::Entry::genAccelIndexWrapperDecl_spe ( XStr str  )  [private]

Definition at line 3708 of file xi-symbol.C.

References epStr(), and genAccelFullParamList().

Referenced by genIndexDecls().

void xi::Entry::genAccelIndexWrapperDef_spe ( XStr str  )  [private]

int xi::Entry::genAccels_spe_c_funcBodies ( XStr str  )  [private, virtual]

void xi::Entry::genAccels_spe_c_regFuncs ( XStr str  )  [private, virtual]

Reimplemented from xi::Construct.

Definition at line 4227 of file xi-symbol.C.

References epStr(), indexName(), and isAccel().

void xi::Entry::genAccels_ppe_c_regFuncs ( XStr str  )  [private, virtual]

Reimplemented from xi::Construct.

Definition at line 4234 of file xi-symbol.C.

References epStr(), indexName(), and isAccel().

XStr xi::Entry::paramType ( int  withDefaultVals,
int  withEO = 0,
int  useConst = 1 
) [private]

XStr xi::Entry::paramComma ( int  withDefaultVals,
int  withEO = 0 
) [private]

XStr xi::Entry::eo ( int  withDefaultVals,
int  priorComma = 1 
) [private]

XStr xi::Entry::syncReturn ( void   )  [private]

Definition at line 3107 of file xi-symbol.C.

References xi::Type::isVoid(), and retType.

Referenced by genArrayDefs(), genChareDefs(), and genGroupDefs().

XStr xi::Entry::marshallMsg ( void   )  [private]

XStr xi::Entry::callThread ( const XStr procName,
int  prependEntryName = 0 
) [private]

Definition at line 4474 of file xi-symbol.C.

References xi::Chare::baseName(), xi::Member::container, getStackSize(), xi::Member::makeDecl(), and name.

Referenced by genDefs().

void xi::Entry::setAccelParam ( ParamList apl  )  [inline]

Definition at line 992 of file xi-symbol.h.

References accelParam.

void xi::Entry::setAccelCodeBody ( XStr acb  )  [inline]

Definition at line 993 of file xi-symbol.h.

References accelCodeBody.

void xi::Entry::setAccelCallbackName ( XStr acbn  )  [inline]

Definition at line 994 of file xi-symbol.h.

References accelCallbackName.

void xi::Entry::setChare ( Chare c  )  [virtual]

int xi::Entry::isConnectEntry ( void   )  [inline]

Definition at line 1006 of file xi-symbol.h.

References isConnect.

int xi::Entry::paramIsMarshalled ( void   )  [inline]

Definition at line 1007 of file xi-symbol.h.

References xi::ParamList::isMarshalled(), and param.

Referenced by generateEntryList(), and xi::SdagConstruct::generateWhen().

int xi::Entry::getStackSize ( void   )  [inline]

Definition at line 1008 of file xi-symbol.h.

References xi::Value::getIntVal(), and stacksize.

Referenced by callThread().

int xi::Entry::isThreaded ( void   )  [inline]

Definition at line 1009 of file xi-symbol.h.

References attribs.

Referenced by Entry(), genDefs(), genIndexDecls(), print(), and setChare().

int xi::Entry::isSync ( void   )  [inline]

int xi::Entry::isIget ( void   )  [inline]

Definition at line 1011 of file xi-symbol.h.

References attribs.

Referenced by Entry(), genArrayDecl(), genArrayDefs(), genDecls(), and genDefs().

int xi::Entry::isConstructor ( void   )  [inline]

int xi::Entry::isExclusive ( void   )  [inline]

Definition at line 1013 of file xi-symbol.h.

References attribs.

Referenced by genDefs(), and setChare().

int xi::Entry::isImmediate ( void   )  [inline]

Definition at line 1014 of file xi-symbol.h.

References attribs.

Referenced by genArrayDefs(), genChareDefs(), genGroupDecl(), and genGroupDefs().

int xi::Entry::isSkipscheduler ( void   )  [inline]

Definition at line 1015 of file xi-symbol.h.

References attribs.

Referenced by genArrayDefs(), genChareDefs(), and genGroupDefs().

int xi::Entry::isInline ( void   )  [inline]

Definition at line 1016 of file xi-symbol.h.

References attribs.

Referenced by genArrayDefs(), genChareDefs(), and genGroupDefs().

int xi::Entry::isLocal ( void   )  [inline]

Definition at line 1017 of file xi-symbol.h.

References attribs.

Referenced by Entry(), genArrayDecl(), genArrayDefs(), genChareDefs(), genDefs(), genGroupDecl(), and genGroupDefs().

int xi::Entry::isCreate ( void   )  [inline]

Definition at line 1018 of file xi-symbol.h.

References attribs.

int xi::Entry::isCreateHome ( void   )  [inline]

Definition at line 1019 of file xi-symbol.h.

References attribs.

Referenced by genArrayDefs().

int xi::Entry::isCreateHere ( void   )  [inline]

Definition at line 1020 of file xi-symbol.h.

References attribs.

Referenced by genArrayDefs().

int xi::Entry::isPython ( void   )  [inline]

Definition at line 1021 of file xi-symbol.h.

References attribs.

Referenced by Entry(), genPythonDecls(), genPythonDefs(), genPythonStaticDefs(), and genPythonStaticDocs().

int xi::Entry::isNoTrace ( void   )  [inline]

Definition at line 1022 of file xi-symbol.h.

References attribs.

Referenced by genArrayDefs(), and genGroupDefs().

int xi::Entry::isNoKeep ( void   )  [inline]

Definition at line 1023 of file xi-symbol.h.

References attribs.

int xi::Entry::isSdag ( void   )  [inline, virtual]

Reimplemented from xi::Member.

Definition at line 1024 of file xi-symbol.h.

References sdagCon.

Referenced by collectSdagCode(), and setChare().

int xi::Entry::isAccel ( void   )  [inline]

int xi::Entry::isMemCritical ( void   )  [inline]

Definition at line 1029 of file xi-symbol.h.

References attribs.

int xi::Entry::isReductionTarget ( void   )  [inline]

Definition at line 1030 of file xi-symbol.h.

References attribs.

Referenced by genDefs(), genIndexDecls(), and genReg().

void xi::Entry::print ( XStr str  )  [virtual]

void xi::Entry::genIndexDecls ( XStr str  )  [virtual]

void xi::Entry::genPub ( XStr declstr,
XStr defstr,
XStr defconstr,
int connectPresent 
) [virtual]

void xi::Entry::genDecls ( XStr str  )  [virtual]

void xi::Entry::genDefs ( XStr str  )  [virtual]

void xi::Entry::genReg ( XStr str  )  [virtual]

XStr xi::Entry::genRegEp ( bool  isForRedn = false  ) 

void xi::Entry::preprocess (  )  [virtual]

char* xi::Entry::getEntryName (  )  [inline]

Definition at line 1040 of file xi-symbol.h.

References name.

Referenced by xi::SdagConstruct::generateWhen(), and genPub().

void xi::Entry::generateEntryList ( TList< CEntry * > &  CEntrylist,
SdagConstruct thisWhen 
)

void xi::Entry::collectSdagCode ( CParsedFile pf,
int sdagPresent 
) [virtual]

Reimplemented from xi::Member.

Definition at line 3014 of file xi-symbol.C.

References isSdag(), and xi::CParsedFile::nodeList.

void xi::Entry::propagateState ( int   ) 

void xi::Entry::lookforCEntry ( CEntry centry  )  [virtual]

Reimplemented from xi::Member.

Definition at line 2694 of file xi-symbol.C.

References xi::CEntry::decl_entry, xi::CEntry::entry, isWhenEntry, name, param, and xi::CEntry::paramlist.


Field Documentation

int xi::Entry::line [private]

Reimplemented from xi::Construct.

Definition at line 914 of file xi-symbol.h.

Referenced by Entry(), genDecls(), genDefs(), and setChare().

Definition at line 914 of file xi-symbol.h.

Referenced by Entry(), epStr(), and setChare().

Definition at line 917 of file xi-symbol.h.

Referenced by Entry(), getStackSize(), and print().

const char* xi::Entry::pythonDoc [private]

Definition at line 918 of file xi-symbol.h.

Referenced by Entry(), and genPythonStaticDocs().

Definition at line 924 of file xi-symbol.h.

Referenced by genDefs(), genIndexDecls(), and setChare().

Definition at line 972 of file xi-symbol.h.

Referenced by genReg(), and xi::SdagConstruct::labelNodes().

Definition at line 974 of file xi-symbol.h.

Referenced by genReg().

Definition at line 977 of file xi-symbol.h.

Referenced by isSdag().

Definition at line 979 of file xi-symbol.h.

Definition at line 980 of file xi-symbol.h.

Referenced by generateEntryList(), and xi::SdagConstruct::propagateState().

Definition at line 981 of file xi-symbol.h.

Referenced by generateEntryList(), and xi::SdagConstruct::generateWhen().

const char* xi::Entry::intExpr

Definition at line 982 of file xi-symbol.h.

Referenced by generateEntryList(), and xi::SdagConstruct::generateWhen().

Definition at line 984 of file xi-symbol.h.

Referenced by genPub().

Definition at line 985 of file xi-symbol.h.

Referenced by genPub(), and isConnectEntry().

Definition at line 986 of file xi-symbol.h.

Referenced by Entry(), and lookforCEntry().

Definition at line 990 of file xi-symbol.h.

Referenced by setAccelCodeBody().

Definition at line 991 of file xi-symbol.h.

Referenced by setAccelCallbackName().

Definition at line 998 of file xi-symbol.h.

Referenced by genAccelIndexWrapperDef_spe(), and preprocess().

Definition at line 1000 of file xi-symbol.h.

Referenced by genAccelIndexWrapperDef_spe(), and preprocess().

Definition at line 1001 of file xi-symbol.h.

Referenced by genAccelIndexWrapperDef_spe(), and preprocess().


The documentation for this class was generated from the following files:

Generated on Fri May 25 08:06:22 2012 for Charm++ by  doxygen 1.5.5