
Data Structures | |
| class | CEntry |
| class | TList |
| class | CParsedFile |
| struct | CStateVar |
| class | CToken |
| class | MacroDefinition |
| class | perElemGenC |
| Apply fn_ on each Construct in the list l, passing it arg as the target. More... | |
| class | Prefix |
| class | Value |
| class | ValueList |
| class | Construct |
| class | ConstructList |
| class | Type |
| class | BuiltinType |
| class | NamedType |
| class | PtrType |
| class | ReferenceType |
| class | TypeList |
| class | Parameter |
| class | ParamList |
| class | FuncType |
| class | TParam |
| class | TParamList |
| class | TParamType |
| class | TParamVal |
| class | Scope |
| class | UsingScope |
| class | Template |
| class | TEntity |
| class | TVar |
| class | TType |
| class | TFunc |
| class | TName |
| class | TVarList |
| class | Member |
| class | MemberList |
| class | Chare |
| class | MainChare |
| class | Array |
| class | Group |
| class | NodeGroup |
| class | MsgVar |
| class | MsgVarList |
| class | Message |
| class | Entry |
| class | EntryList |
| class | AccelBlock |
| class | Module |
| class | ModuleList |
| class | Readonly |
| class | InitCall |
| class | PUPableClass |
| class | IncludeFile |
| class | ClassDeclaration |
| class | SdagConstruct |
| class | XStr |
| class | Printable |
Enumerations | |
| enum | EToken { DEFAULT = 1, SIDENT = 2, SLBRACE = 3, SRBRACE = 4, SLB = 5, SRB = 6, SLP = 7, SRP = 8, SCOLON = 9, SSTAR = 10, SCHAR = 11, SSTRING = 12, SNEW_LINE = 13, SCLASS = 14, SENTRY = 15, SSDAGENTRY = 16, SOVERLAP = 17, SWHEN = 18, SIF = 19, SWHILE = 20, SFOR = 21, SFORALL = 22, SATOMIC = 23, SCOMMA = 24, SELSE = 25, SSEMICOLON = 26, SPARAMLIST = 27, SPARAMETER = 28, SVARTYPELIST = 29, SVARTYPE = 30, SFUNCTYPE = 31, SSIMPLETYPE = 32, SBUILTINTYPE = 33, SONEPTRTYPE = 34, SPTRTYPE = 35, SINT = 36, SLONG = 37, SSHORT = 38, SUNSIGNED = 39, SDOUBLE = 40, SVOID = 41, SFLOAT = 42, SCONST = 43, SEQUAL = 44, SAMPERESIGN = 45, SLITERAL = 46, SNUMBER = 47, SFORWARD = 48, SCONNECT = 49, SPUBLISHES = 50, SOVERLAP_END = 51, SWHEN_END = 52, SIF_END = 53, SELSE_END = 54, SWHILE_END = 55, SFOR_END = 56, SFOR_ENDALL = 57, SMATCHED_CPP_CODE = 100, SINT_EXPR = 101, SWSPACE = 102, SSLIST = 103, SELIST = 104, SOLIST = 105, SOLIST_END = 106 } |
| enum | forWhom { forAll = 0, forIndividual = 1, forSection = 2, forPython = 3, forIndex = -1 } |
Functions | |
| static void | generateWhenCode (XStr &op, SdagConstruct *cn) |
| SdagConstruct * | buildAtomic (const char *code, SdagConstruct *pub_list, const char *trace_name) |
| void | generateSignature (XStr &str, const XStr *name, const char *suffix, TList< CStateVar * > *params) |
| void | generateSignature (XStr &decls, XStr &defs, const Entry *entry, bool declareStatic, const char *returnType, const XStr *name, bool isEnd, TList< CStateVar * > *params) |
| void | generateSignature (XStr &decls, XStr &defs, const Chare *chare, bool declareStatic, const char *returnType, const XStr *name, bool isEnd, TList< CStateVar * > *params) |
| void | endMethod (XStr &op) |
| void | RemoveSdagComments (char *str) |
| void | Indent (int indent) |
| void | resetNumbers (void) |
| void | pH (int, const char *,...) |
| int | macroDefined (const char *str, int istrue) |
| void | splitScopedName (const char *name, const char **scope, const char **basename) |
| FILE * | openFile (char *interfacefile) |
| ModuleList * | Parse (FILE *fp) |
| void | abortxi (char *name) |
| void | die (const char *why, int line) |
| char * | fortranify (const char *s, const char *suff1="", const char *suff2="", const char *suff3="") |
| void | templateGuardBegin (bool templateOnly, XStr &str) |
| void | templateGuardEnd (XStr &str) |
| template<typename T, typename U, typename A> | |
| void | perElemGen (list< T * > &l, A &arg_, void(U::*fn_)(A &), void(*between_)(A &)) |
| template<typename T, typename U, typename A> | |
| void | perElemGen (list< T * > &l, A &arg_, void(U::*fn_)(A &)) |
| template<typename T, typename U, typename A> | |
| void | perElemGen (list< T * > &l, A *arg_, void(U::*fn_)(A *), void(*between_)(A *)) |
| template<typename T, typename U, typename A> | |
| void | perElemGen (list< T * > &l, A *arg_, void(U::*fn_)(A *)) |
| void | newLine (XStr &str) |
| static const char * | forWhomStr (forWhom w) |
| static void | disambig_proxy (XStr &str, const XStr &super) |
| static void | disambig_reduction_client (XStr &str, const XStr &super) |
| static void | disambig_group (XStr &str, const XStr &super) |
| XStr | indexSuffix2object (const XStr &indexSuffix) |
| static void | disambig_array (XStr &str, const XStr &super) |
| XStr | generateTemplateSpec (TVarList *tspec) |
| XStr | makeIdent (const XStr &in) |
| int | isatty (int) |
Variables | |
| int | numSdagEntries = 0 |
| int | numSlists = 0 |
| int | numOverlaps = 0 |
| int | numWhens = 0 |
| int | numFors = 0 |
| int | numIfs = 0 |
| int | numElses = 0 |
| int | numEntries = 0 |
| int | numOlists = 0 |
| int | numWhiles = 0 |
| int | numAtomics = 0 |
| int | numForwards = 0 |
| int | numForalls = 0 |
| int | numConnects = 0 |
| FILE * | fh |
| static TList< MacroDefinition * > | macros |
| int | fortranMode |
| int | internalMode |
| const char * | cur_file |
| const char * | python_doc |
| static const char * | CIClassStart |
| static const char * | CIClassEnd |
| static const char * | CIMsgClassAnsi |
| enum xi::EToken |
| enum xi::forWhom |
Definition at line 44 of file xi-symbol.h.
| static void xi::generateWhenCode | ( | XStr & | op, | |
| SdagConstruct * | cn | |||
| ) | [static] |
Definition at line 15 of file CEntry.C.
References xi::XStr::append(), xi::XStr::charstar(), xi::SdagConstruct::generateBeginExec(), xi::SdagConstruct::generateDummyBeginExecute(), xi::SdagConstruct::generateTlineEndCall(), xi::SdagConstruct::label, xi::SdagConstruct::nodeNum, and xi::SdagConstruct::stateVars.
Referenced by xi::CEntry::generateCode().
| SdagConstruct * xi::buildAtomic | ( | const char * | code, | |
| SdagConstruct * | pub_list, | |||
| const char * | trace_name | |||
| ) |
Definition at line 11 of file CSdagConstruct.C.
References free(), RemoveSdagComments(), SATOMIC, and xi::SdagConstruct::traceName.
| void xi::generateSignature | ( | XStr & | str, | |
| const XStr * | name, | |||
| const char * | suffix, | |||
| TList< CStateVar * > * | params | |||
| ) |
Definition at line 1177 of file CSdagConstruct.C.
Referenced by xi::SdagConstruct::generateAtomic(), xi::SdagConstruct::generateConnect(), xi::SdagConstruct::generateElse(), xi::SdagConstruct::generateFor(), xi::SdagConstruct::generateForall(), xi::SdagConstruct::generateForward(), xi::SdagConstruct::generateIf(), xi::CParsedFile::generateInitFunction(), xi::SdagConstruct::generateOlist(), xi::SdagConstruct::generateOverlap(), xi::CParsedFile::generateRegisterEp(), xi::SdagConstruct::generateSdagEntry(), generateSignature(), xi::SdagConstruct::generateSlist(), xi::SdagConstruct::generateTraceEp(), xi::SdagConstruct::generateWhen(), and xi::SdagConstruct::generateWhile().
| void xi::generateSignature | ( | XStr & | decls, | |
| XStr & | defs, | |||
| const Entry * | entry, | |||
| bool | declareStatic, | |||
| const char * | returnType, | |||
| const XStr * | name, | |||
| bool | isEnd, | |||
| TList< CStateVar * > * | params | |||
| ) |
Definition at line 1183 of file CSdagConstruct.C.
References generateSignature(), and xi::Member::getContainer().
| void xi::generateSignature | ( | XStr & | decls, | |
| XStr & | defs, | |||
| const Chare * | chare, | |||
| bool | declareStatic, | |||
| const char * | returnType, | |||
| const XStr * | name, | |||
| bool | isEnd, | |||
| TList< CStateVar * > * | params | |||
| ) |
Definition at line 1191 of file CSdagConstruct.C.
References xi::CStateVar::arrayLength, xi::Chare::baseName(), xi::TList< T >::begin(), xi::CStateVar::byRef, xi::XStr::charstar(), xi::TList< T >::end(), xi::CStateVar::isVoid, xi::CStateVar::name, xi::TList< T >::next(), templateGuardBegin(), xi::TEntity::tspec(), and xi::CStateVar::type.
| void xi::endMethod | ( | XStr & | op | ) |
Definition at line 1237 of file CSdagConstruct.C.
References templateGuardEnd().
Referenced by xi::SdagConstruct::generateAtomic(), xi::SdagConstruct::generateConnect(), xi::SdagConstruct::generateElse(), xi::SdagConstruct::generateFor(), xi::SdagConstruct::generateForall(), xi::SdagConstruct::generateForward(), xi::SdagConstruct::generateIf(), xi::CParsedFile::generateInitFunction(), xi::SdagConstruct::generateOlist(), xi::SdagConstruct::generateOverlap(), xi::CParsedFile::generateRegisterEp(), xi::SdagConstruct::generateSdagEntry(), xi::SdagConstruct::generateSlist(), xi::SdagConstruct::generateTraceEp(), xi::SdagConstruct::generateWhen(), and xi::SdagConstruct::generateWhile().
| void xi::RemoveSdagComments | ( | char * | str | ) |
| void xi::Indent | ( | int | indent | ) |
Definition at line 7 of file sdag-globals.C.
References printf().
Referenced by xi::CToken::print(), and xi::CEntry::print().
| void xi::resetNumbers | ( | void | ) |
Definition at line 28 of file sdag-globals.C.
References numAtomics, numConnects, numElses, numEntries, numForalls, numFors, numForwards, numIfs, numOlists, numOverlaps, numSdagEntries, numSlists, numWhens, and numWhiles.
Referenced by xi::Chare::genDecls().
| void xi::pH | ( | int | , | |
| const char * | , | |||
| ... | ||||
| ) |
| void xi::splitScopedName | ( | const char * | name, | |
| const char ** | scope, | |||
| const char ** | basename | |||
| ) |
| FILE* xi::openFile | ( | char * | interfacefile | ) |
| ModuleList* xi::Parse | ( | FILE * | fp | ) |
| void xi::abortxi | ( | char * | name | ) |
| void xi::die | ( | const char * | why, | |
| int | line | |||
| ) |
Definition at line 35 of file xi-symbol.C.
References cur_file.
Referenced by xi::ParamList::checkParamList(), xi::Entry::Entry(), xi::Entry::genAccelIndexWrapperDef_spe(), xi::Entry::genCall(), xi::Entry::genDecls(), xi::Entry::genDefs(), xi::Message::genDefs(), xi::Module::generate(), xi::Type::genIndexName(), xi::PtrType::genMsgProxyName(), xi::Type::genMsgProxyName(), xi::NamedType::genProxyName(), xi::Type::genProxyName(), xi::Entry::genPythonDecls(), xi::Readonly::genReg(), xi::Parameter::marshallArraySizes(), and xi::Entry::preprocess().
| char* xi::fortranify | ( | const char * | s, | |
| const char * | suff1 = "", |
|||
| const char * | suff2 = "", |
|||
| const char * | suff3 = "" | |||
| ) |
Definition at line 45 of file xi-symbol.C.
References c.
Referenced by xi::Entry::genCall(), xi::Entry::genDefs(), xi::Readonly::genDefs(), and xi::Chare::genDefs().
| void xi::templateGuardBegin | ( | bool | templateOnly, | |
| XStr & | str | |||
| ) |
Definition at line 70 of file xi-symbol.C.
Referenced by xi::PUPableClass::genDefs(), xi::Entry::genDefs(), xi::Readonly::genDefs(), xi::Module::genDefs(), xi::Message::genDefs(), xi::Chare::genDefs(), xi::Module::generate(), xi::CEntry::generateCode(), generateSignature(), and xi::Chare::genRegisterMethodDef().
| void xi::templateGuardEnd | ( | XStr & | str | ) |
Definition at line 76 of file xi-symbol.C.
Referenced by endMethod(), xi::PUPableClass::genDefs(), xi::Entry::genDefs(), xi::Readonly::genDefs(), xi::Module::genDefs(), xi::Message::genDefs(), xi::Chare::genDefs(), xi::Module::generate(), xi::CEntry::generateCode(), and xi::Chare::genRegisterMethodDef().
| void xi::perElemGen | ( | list< T * > & | l, | |
| A & | arg_, | |||
| void(U::*)(A &) | fn_, | |||
| void(*)(A &) | between_ | |||
| ) | [inline] |
Definition at line 140 of file xi-symbol.C.
Referenced by xi::MemberList::genAccels_ppe_c_regFuncs(), xi::ConstructList::genAccels_ppe_c_regFuncs(), xi::MemberList::genAccels_spe_c_callInits(), xi::ConstructList::genAccels_spe_c_callInits(), xi::MemberList::genAccels_spe_c_regFuncs(), xi::ConstructList::genAccels_spe_c_regFuncs(), xi::MemberList::genAccels_spe_h_fiCountDefs(), xi::ConstructList::genAccels_spe_h_fiCountDefs(), xi::MemberList::genAccels_spe_h_includes(), xi::ConstructList::genAccels_spe_h_includes(), xi::MemberList::genDecls(), xi::ConstructList::genDecls(), xi::MemberList::genDefs(), xi::ConstructList::genDefs(), xi::ModuleList::genDepends(), xi::MemberList::genIndexDecls(), xi::MemberList::genPythonDecls(), xi::MemberList::genPythonDefs(), xi::MemberList::genPythonStaticDefs(), xi::MemberList::genPythonStaticDocs(), xi::MemberList::genReg(), xi::ConstructList::genReg(), xi::MemberList::lookforCEntry(), xi::ModuleList::print(), xi::MemberList::print(), xi::ConstructList::print(), xi::MemberList::setChare(), xi::ConstructList::setExtern(), and xi::ConstructList::setModule().
| void xi::perElemGen | ( | list< T * > & | l, | |
| A & | arg_, | |||
| void(U::*)(A &) | fn_ | |||
| ) | [inline] |
Definition at line 149 of file xi-symbol.C.
| void xi::perElemGen | ( | list< T * > & | l, | |
| A * | arg_, | |||
| void(U::*)(A *) | fn_, | |||
| void(*)(A *) | between_ | |||
| ) | [inline] |
Definition at line 155 of file xi-symbol.C.
| void xi::perElemGen | ( | list< T * > & | l, | |
| A * | arg_, | |||
| void(U::*)(A *) | fn_ | |||
| ) | [inline] |
Definition at line 164 of file xi-symbol.C.
| void xi::newLine | ( | XStr & | str | ) |
Definition at line 169 of file xi-symbol.C.
Referenced by xi::MemberList::genDecls(), xi::ConstructList::genDecls(), xi::MemberList::genDefs(), xi::ConstructList::genDefs(), xi::MemberList::genIndexDecls(), xi::MemberList::genPythonDecls(), xi::MemberList::genPythonDefs(), xi::MemberList::genReg(), and xi::ConstructList::genReg().
| static const char* xi::forWhomStr | ( | forWhom | w | ) | [static] |
Definition at line 750 of file xi-symbol.C.
References forAll, forIndex, forIndividual, forPython, and forSection.
Referenced by xi::NamedType::genProxyName(), and xi::Chare::proxyPrefix().
| static void xi::disambig_proxy | ( | XStr & | str, | |
| const XStr & | super | |||
| ) | [static] |
Definition at line 1028 of file xi-symbol.C.
Referenced by disambig_array(), disambig_group(), and xi::Chare::genSubDecls().
| static void xi::disambig_reduction_client | ( | XStr & | str, | |
| const XStr & | super | |||
| ) | [static] |
| static void xi::disambig_group | ( | XStr & | str, | |
| const XStr & | super | |||
| ) | [static] |
Definition at line 1203 of file xi-symbol.C.
References disambig_proxy(), and disambig_reduction_client().
Referenced by xi::Group::genSubDecls().
| XStr xi::indexSuffix2object | ( | const XStr & | indexSuffix | ) |
| static void xi::disambig_array | ( | XStr & | str, | |
| const XStr & | super | |||
| ) | [static] |
Definition at line 1375 of file xi-symbol.C.
References disambig_proxy(), and disambig_reduction_client().
Referenced by xi::Array::genSubDecls().
| XStr xi::generateTemplateSpec | ( | TVarList * | tspec | ) |
Definition at line 2219 of file xi-symbol.C.
References xi::TVarList::genLong().
Referenced by xi::Entry::genArrayDecl(), xi::Entry::genChareDecl(), xi::Entry::genGroupDecl(), xi::Entry::genIndexDecls(), xi::Template::genSpec(), and xi::Member::makeDecl().
| XStr xi::makeIdent | ( | const XStr & | in | ) |
Definition at line 2535 of file xi-symbol.C.
References xi::XStr::get_string_const().
Referenced by xi::Readonly::genDefs(), and xi::Readonly::genReg().
Definition at line 13 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numSlists = 0 |
Definition at line 14 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numOverlaps = 0 |
Definition at line 15 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numWhens = 0 |
Definition at line 16 of file sdag-globals.C.
Referenced by xi::CParsedFile::generateDependencyMergePoints(), xi::CParsedFile::generateInitFunction(), xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numFors = 0 |
Definition at line 17 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numIfs = 0 |
Definition at line 18 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numElses = 0 |
Definition at line 19 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numEntries = 0 |
Definition at line 20 of file sdag-globals.C.
Referenced by xi::CEntry::CEntry(), TraceUtilization::compressNRecentSumDetail(), xi::CParsedFile::generateInitFunction(), printCompressedBuf(), resetNumbers(), TraceSummaryBOC::sumData(), TraceSummaryBOC::write(), and SumLogPool::write().
| int xi::numOlists = 0 |
Definition at line 21 of file sdag-globals.C.
Referenced by xi::CParsedFile::generateDependencyMergePoints(), xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numWhiles = 0 |
Definition at line 22 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numAtomics = 0 |
Definition at line 23 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numForwards = 0 |
Definition at line 24 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numForalls = 0 |
Definition at line 25 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| int xi::numConnects = 0 |
Definition at line 26 of file sdag-globals.C.
Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().
| FILE* xi::fh |
Referenced by CollideGrid3d::world2grid().
TList<MacroDefinition *> xi::macros [static] |
Definition at line 21 of file xi-symbol.C.
Referenced by xi::Entry::genCall(), xi::Entry::genDefs(), xi::Readonly::genDefs(), xi::Chare::genDefs(), xi::Module::generate(), main(), and xi::Entry::setChare().
Definition at line 22 of file xi-symbol.C.
Referenced by xi::Entry::genRegEp(), xi::Chare::genRegisterMethodDef(), and main().
| const char * xi::cur_file |
| const char* xi::python_doc |
const char* xi::CIClassStart [static] |
Initial value:
"{\n" " public:\n"
Definition at line 829 of file xi-symbol.C.
Referenced by xi::Chare::genDecls(), xi::Chare::genPythonDecls(), xi::Array::genSubDecls(), xi::Group::genSubDecls(), and xi::Chare::genSubDecls().
const char* xi::CIClassEnd [static] |
Initial value:
"};\n"
Definition at line 834 of file xi-symbol.C.
Referenced by xi::Chare::genDecls(), xi::Chare::genPythonDecls(), xi::Array::genSubDecls(), xi::Group::genSubDecls(), and xi::Chare::genSubDecls().
const char* xi::CIMsgClassAnsi [static] |
Initial value:
"{\n" " public:\n" " static int __idx;\n" " void* operator new(size_t, void*p) { return p; }\n" " void* operator new(size_t);\n" " void* operator new(size_t, int*, const int);\n" " void* operator new(size_t, int*);\n" "#if CMK_MULTIPLE_DELETE\n" " void operator delete(void*p, void*){dealloc(p);}\n" " void operator delete(void*p){dealloc(p);}\n" " void operator delete(void*p, int*, const int){dealloc(p);}\n" " void operator delete(void*p, int*){dealloc(p);}\n" "#endif\n" " void operator delete(void*p, size_t){dealloc(p);}\n" " static void* alloc(int,size_t, int*, int);\n" " static void dealloc(void *p);\n"
Definition at line 1898 of file xi-symbol.C.
Referenced by xi::Message::genAllocDecl().
1.5.5