#include <xi-Module.h>
Public Member Functions | |
Module (int l, const char *n, ConstructList *c) | |
void | print (XStr &str) |
void | printChareNames () |
void | check () |
void | generate () |
void | setModule () |
void | prependConstruct (Construct *c) |
void | preprocess () |
void | genDepend (const char *cifile) |
void | genDecls (XStr &str) |
void | genDefs (XStr &str) |
void | genReg (XStr &str) |
void | setMain (void) |
int | isMain (void) |
bool | isTramTarget () |
void | printName () |
int | genAccels_spe_c_funcBodies (XStr &str) |
void | genAccels_spe_c_regFuncs (XStr &str) |
void | genAccels_spe_c_callInits (XStr &str) |
void | genAccels_spe_h_includes (XStr &str) |
void | genAccels_spe_h_fiCountDefs (XStr &str) |
void | genAccels_ppe_c_regFuncs (XStr &str) |
Private Attributes | |
int | _isMain |
const char * | name |
ConstructList * | clist |
Definition at line 8 of file xi-Module.h.
xi::Module::Module | ( | int | l, | |
const char * | n, | |||
ConstructList * | c | |||
) |
Definition at line 14 of file xi-Module.C.
References _isMain, clist, xi::AstNode::line, xi::AstChildren< Child >::recurse(), and xi::Construct::setModule().
void xi::Module::print | ( | XStr & | str | ) | [virtual] |
Implements xi::Printable.
Definition at line 20 of file xi-Module.C.
References clist, xi::Construct::external, name, and xi::AstChildren< Child >::print().
void xi::Module::printChareNames | ( | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 16 of file xi-Module.h.
References clist, and xi::AstChildren< Child >::printChareNames().
void xi::Module::check | ( | void | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 32 of file xi-Module.C.
References xi::AstChildren< Child >::check(), and clist.
void xi::Module::generate | ( | ) |
Generate the SPE code file contents ///
Generate the SPE header file contents ///
Generate this module's code (actually create the files) ///
Definition at line 36 of file xi-Module.C.
References xi::addLineNumbers(), clist, xi::desanitizeCode(), xi::die(), xi::fortranMode, genAccels_spe_c_funcBodies(), genAccels_spe_h_fiCountDefs(), genAccels_spe_h_includes(), xi::AstChildren< Child >::genDecls(), genDefs(), xi::AstChildren< Child >::genGlobalCode(), xi::AstChildren< Child >::genReg(), xi::XStr::get_string(), isMain(), isTramTarget(), name, xi::AstChildren< Child >::outputClosuresDecl(), xi::AstChildren< Child >::outputClosuresDef(), xi::templateGuardBegin(), and xi::templateGuardEnd().
void xi::Module::setModule | ( | ) |
void xi::Module::prependConstruct | ( | Construct * | c | ) | [inline] |
Definition at line 22 of file xi-Module.h.
References clist.
Referenced by xi::Entry::preprocess().
void xi::Module::preprocess | ( | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 188 of file xi-Module.C.
References clist, and xi::AstChildren< Child >::preprocess().
void xi::Module::genDepend | ( | const char * | cifile | ) |
void xi::Module::genDecls | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 196 of file xi-Module.C.
References clist, xi::Construct::external, xi::AstChildren< Child >::genDecls(), isMain(), and name.
void xi::Module::genDefs | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 211 of file xi-Module.C.
References clist, xi::Construct::external, genAccels_ppe_c_regFuncs(), xi::AstChildren< Child >::genDefs(), isMain(), name, xi::templateGuardBegin(), and xi::templateGuardEnd().
Referenced by generate().
void xi::Module::genReg | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 248 of file xi-Module.C.
References clist, xi::Construct::external, xi::AstChildren< Child >::genDefs(), and name.
void xi::Module::setMain | ( | void | ) | [inline] |
Definition at line 28 of file xi-Module.h.
References _isMain.
Referenced by Builder::Module::generateAst().
int xi::Module::isMain | ( | void | ) | [inline] |
Definition at line 29 of file xi-Module.h.
References _isMain.
Referenced by genAccels_spe_c_funcBodies(), genDecls(), genDefs(), and generate().
bool xi::Module::isTramTarget | ( | void | ) | [virtual] |
Reimplemented from xi::Construct.
Definition at line 256 of file xi-Module.C.
References clist, and xi::AstChildren< Child >::isTramTarget().
Referenced by generate().
void xi::Module::printName | ( | ) | [inline] |
Reimplemented from xi::AstNode.
Definition at line 263 of file xi-Module.C.
References clist, xi::Construct::external, genAccels_spe_c_callInits(), xi::AstChildren< Child >::genAccels_spe_c_funcBodies(), genAccels_spe_c_regFuncs(), isMain(), and name.
Referenced by generate().
void xi::Module::genAccels_spe_c_regFuncs | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 343 of file xi-Module.C.
References clist, xi::Construct::external, xi::AstChildren< Child >::genAccels_spe_c_regFuncs(), and name.
Referenced by genAccels_spe_c_funcBodies().
void xi::Module::genAccels_spe_c_callInits | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 353 of file xi-Module.C.
References clist, and xi::AstChildren< Child >::genAccels_spe_c_callInits().
Referenced by genAccels_spe_c_funcBodies().
void xi::Module::genAccels_spe_h_includes | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 359 of file xi-Module.C.
References clist, xi::Construct::external, xi::AstChildren< Child >::genAccels_spe_h_includes(), and name.
Referenced by generate().
void xi::Module::genAccels_spe_h_fiCountDefs | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 368 of file xi-Module.C.
References clist, xi::Construct::external, xi::AstChildren< Child >::genAccels_spe_h_fiCountDefs(), and name.
Referenced by generate().
void xi::Module::genAccels_ppe_c_regFuncs | ( | XStr & | str | ) | [virtual] |
Reimplemented from xi::AstNode.
Definition at line 377 of file xi-Module.C.
References clist, xi::Construct::external, xi::AstChildren< Child >::genAccels_ppe_c_regFuncs(), and name.
Referenced by genDefs().
int xi::Module::_isMain [private] |
const char* xi::Module::name [private] |
Definition at line 10 of file xi-Module.h.
Referenced by genAccels_ppe_c_regFuncs(), genAccels_spe_c_funcBodies(), genAccels_spe_c_regFuncs(), genAccels_spe_h_fiCountDefs(), genAccels_spe_h_includes(), genDecls(), genDefs(), genDepend(), generate(), genReg(), print(), and printName().
ConstructList* xi::Module::clist [private] |
Definition at line 11 of file xi-Module.h.
Referenced by check(), genAccels_ppe_c_regFuncs(), genAccels_spe_c_callInits(), genAccels_spe_c_funcBodies(), genAccels_spe_c_regFuncs(), genAccels_spe_h_fiCountDefs(), genAccels_spe_h_includes(), genDecls(), genDefs(), generate(), genReg(), isTramTarget(), Module(), prependConstruct(), preprocess(), print(), and printChareNames().