|
OpenADFortTk (basic)
|
Classes | |
| class | AdjustFunctions |
| class | PUXlationContext |
| class | ConvertModuleTypeFctr |
| struct | sort_CondVal |
| class | MyDGNode |
| class | MyDGEdge |
| class | XAIF_DOMErrorHandler |
| class | XAIF_ElemFilter |
| class | XAIF_ScopeElemFilter |
| class | XAIF_SymbolElemFilter |
| class | XAIF_DimensionBoundsElemFilter |
| class | XAIF_CFGElemFilter |
| class | XAIF_BBElemFilter |
| class | XAIF_BBStmtElemFilter |
| class | XAIF_DerivPropStmt |
| class | XAIF_SAXErrorHandler |
| class | XAIF_SAXHandler |
| class | XercesStrX |
| struct | XAIFEdgePositionCompare |
| struct | replaceIfLocal |
| class | XlateExpression |
| class | XlateStmt |
| class | XlationContext |
Typedefs | |
| typedef std::map< std::string, OA::OA_ptr< MyDGNode > > | VertexIdToMyDGNodeMap |
Enumerations | |
| enum | AlgorithmType { ALG_NULL, ALG_BB_PATCHING } |
Functions | |
| static int | real_main (int argc, char **argv) |
| static int | main_SAX (PU_Info *pu_forest, const char *xaiffilenm, bool validate) |
| static int | main_DOM (PU_Info *pu_forest, const char *xaiffilenm, bool validate) |
| static int | XercesInit () |
| static int | XercesFini () |
| static void | TranslateCFG (WN *wn_pu, const xercesc::DOMElement *cfgElem, PUXlationContext &ctxt) |
| static WN * | xlate_CFG (WN *wn_pu, OA::OA_ptr< OA::DGraph::DGraphInterface > cfg, OA::OA_ptr< MyDGNode > root, PUXlationContext &ctxt, unsigned &startLabel_r, bool structuredCF) |
| static WN * | TranslateBasicBlock (WN *wn_pu, const xercesc::DOMElement *bbElem, PUXlationContext &ctxt, bool skipMarkeredGotoAndLabels, unsigned endLabel) |
| static void | TranslateBB_OLD (WN *wn_pu, const xercesc::DOMElement *bbElem, PUXlationContext &ctxt) |
| static void | xlate_BasicBlock_OLD (WN *wn_pu, const xercesc::DOMElement *bbElem, PUXlationContext &ctxt) |
| static void | xlate_BBCond_OLD (WN *wn_pu, const xercesc::DOMElement *bbElem, PUXlationContext &ctxt) |
| static bool | FindNextStmtInterval (const xercesc::DOMElement *bbElem, fortTkSupport::IdList< fortTkSupport::WNId > *bbIdList, fortTkSupport::WNIdToWNMap *wnmap, WN *blkWN, xercesc::DOMElement *&begXAIF, xercesc::DOMElement *&endXAIF, WN *&begWN, WN *&endWN) |
| static WN * | FindIntervalBoundary (const xercesc::DOMElement *elem, fortTkSupport::IdList< fortTkSupport::WNId > *bbIdList, fortTkSupport::WNIdToWNMap *wnmap, WN *blkWN, int boundary) |
| static WN * | FindWNBlock (const xercesc::DOMElement *bbElem, fortTkSupport::IdList< fortTkSupport::WNId > *idlist, PUXlationContext &ctxt) |
| static WN * | FindSafeInsertionPoint (WN *blckWN, WN *stmtWN) |
| static void | RemoveFromWhirlIdMaps (WN *wn, fortTkSupport::WNToWNIdMap *wn2idmap, fortTkSupport::WNIdToWNMap *id2wnmap) |
| static void | xlate_SymbolTable (const xercesc::DOMElement *elem, const char *scopeId, PU_Info *pu, PUXlationContext &ctxt) |
| static void | xlate_Symbol (const xercesc::DOMElement *elem, const char *scopeId, PU_Info *pu, PUXlationContext &ctxt, bool doTempSymbols) |
| static WN * | CreateOpenADReplacementBeg (const char *placeholder) |
| static WN * | CreateOpenADReplacementEnd () |
| static WN * | CreateIfCondition (WN *condWN) |
| static ST * | CreateST (const xercesc::DOMElement *elem, SYMTAB_IDX level, const char *nm, fortTkSupport::XAIFSymToSymbolMap &symMap, const char *scopeId) |
| static ST * | ConvertIntoGlobalST (ST *st) |
| static void | ConvertToActiveType (ST *st) |
| static void | ConvertStructMemberToActiveType (TY_IDX base_ty, TY_IDX ref_ty, UINT field_id) |
| static void | ConvertScalarizedRefToActiveType (WN *wn) |
| static FLD_HANDLE | TY_Lookup_FLD (TY_IDX struct_ty, TY_IDX ref_ty, UINT64 ref_ofst, unsigned short eqInst=1) |
| static TY_IDX | MY_Make_Array_Type (TY_IDX elem_ty, INT32 ndim, bool fixed, const INT64 *lower, const INT64 *upper) |
| static TY_IDX | XAIFTyToWHIRLTy (const char *type, const TYPE_ID mtype) |
| static OA::OA_ptr < OA::DGraph::DGraphInterface > | CreateCFGraph (const xercesc::DOMElement *elem) |
| void | TranslateCFG (PU_Info *pu_forest, const xercesc::DOMElement *cfgElem, PUXlationContext &ctxt) |
| static WN * | xlate_CFG_BasicBlock (WN *wn_pu, OA::OA_ptr< MyDGNode > curBB, PUXlationContext &ctxt, bool skipMarkeredGotoAndLabels, unsigned newCurBBLbl, unsigned newNextBBLbl, unsigned endLabel) |
| static WN * | xlate_CFG_BranchMulti (OA::OA_ptr< MyDGNode > curNode, WN *condWN, unsigned lastLbl, vector< OA::OA_ptr< MyDGEdge > > &outedges, map< OA::OA_ptr< MyDGNode >, unsigned > &nodeToLblMap) |
| static pair< WN *, OA::OA_ptr < MyDGNode > > | xlate_CFGstruct (WN *wn_pu, OA::OA_ptr< OA::DGraph::DGraphInterface > cfg, OA::OA_ptr< MyDGNode > startNode, set< xercesc::DOMElement * > &xlated, PUXlationContext &ctxt, unsigned int &startLabel_r) |
| static WN * | xlate_CFGunstruct (WN *wn_pu, OA::OA_ptr< OA::DGraph::DGraphInterface > cfg, OA::OA_ptr< MyDGNode > startNode, set< xercesc::DOMElement * > &xlated, PUXlationContext &ctxt, unsigned int &startLabel_r) |
| static WN * | xlate_CFG (WN *wn_pu, OA::OA_ptr< OA::DGraph::DGraphInterface > cfg, OA::OA_ptr< MyDGNode > root, PUXlationContext &ctxt, unsigned int &startLabel_r, bool structuredCF) |
| OA::OA_ptr< std::list < OA::OA_ptr < OA::DGraph::NodeInterface > > > | getOrderedSinkNodesList (OA::OA_ptr< OA::DGraph::DGraphInterface > cfg, OA::OA_ptr< OA::DGraph::NodeInterface > pNode) |
| void | getReversePostDFSListR (OA::OA_ptr< OA::DGraph::DGraphInterface > cfg, OA::OA_ptr< OA::DGraph::NodeInterface > pNode, std::map< OA::OA_ptr< OA::DGraph::NodeInterface >, bool > &visitMap, OA::OA_ptr< std::list< OA::OA_ptr< OA::DGraph::NodeInterface > > > pList) |
| OA::OA_ptr< std::list < OA::OA_ptr < OA::DGraph::NodeInterface > > > | getReversePostDFSList (OA::OA_ptr< OA::DGraph::DGraphInterface > cfg) |
| fortTkSupport::Symbol * | GetSymbol (const xercesc::DOMElement *elem, PUXlationContext &ctxt) |
| fortTkSupport::Symbol * | GetOrCreateSymbol (const char *sname, PUXlationContext &ctxt) |
| fortTkSupport::Symbol * | GetOrCreateBogusTmpSymbol (PUXlationContext &ctxt) |
| void | xlate_Scope (const xercesc::DOMElement *elem, PUXlationContext &ctxt) |
| bool | GetBoolAttr (const xercesc::DOMElement *elem, XMLCh *attr, bool default_val) |
| int | GetIntAttr (const xercesc::DOMElement *elem, XMLCh *attr, int default_val) |
| bool | GetHasConditionAttr (const xercesc::DOMElement *elem) |
| unsigned int | GetCondAttr (const xercesc::DOMElement *elem) |
| bool | GetActiveAttr (const xercesc::DOMElement *elem) |
| bool | GetDerivAttr (const xercesc::DOMElement *elem) |
| unsigned int | GetPositionAttr (const xercesc::DOMElement *elem) |
| bool | IsTagPresent (const xercesc::DOMElement *elem, const char *tag) |
| bool | IsTagPresent (const char *annotstr, const char *tag) |
| fortTkSupport::SymTabId | GetSymTabId (const xercesc::DOMElement *elem) |
| fortTkSupport::SymId | GetSymId (const xercesc::DOMElement *elem) |
| fortTkSupport::PUId | GetPUId (const xercesc::DOMElement *elem) |
| fortTkSupport::WNId | GetWNId (const xercesc::DOMElement *elem) |
| fortTkSupport::IdList < fortTkSupport::WNId > * | GetWNIdList (const xercesc::DOMElement *elem) |
| std::string | GetIntrinsicKey (const xercesc::DOMElement *elem) |
| PREG_IDX | GetPregId (const xercesc::DOMElement *elem) |
| template<class T > | |
| T | GetId (const xercesc::DOMElement *elem, const char *tag) |
| template<class T > | |
| fortTkSupport::IdList< T > * | GetIdList (const xercesc::DOMElement *elem, const char *tag) |
| template<class T > | |
| T | GetId (const char *idstr, const char *tag) |
| template<class T > | |
| fortTkSupport::IdList< T > * | GetIdList (const char *idstr, const char *tag) |
| WN * | CreateCallToIntrin (TYPE_ID rtype, const char *fname, unsigned int argc) |
| WN * | CreateCallToIntrin (TYPE_ID rtype, const char *fname, std::vector< WN * > &args) |
| WN * | CreateIntrinsicCall (OPERATOR opr, INTRINSIC intrn, TYPE_ID rtype, TYPE_ID dtype, std::vector< WN * > &args) |
| WN * | CreateBoolConst (unsigned int val) |
| void | DeclareActiveTypes () |
| TYPE_ID | XAIFFETypeToWHIRLMTy (const char *anFETypeName) |
| OA::OA_ptr< MyDGNode > | GetSuccessor (OA::OA_ptr< MyDGNode > node, bool succIsOutEdge) |
| OA::OA_ptr< MyDGNode > | GetSuccessorAlongEdge (OA::OA_ptr< MyDGNode > node, unsigned int condition, bool succIsOutEdge) |
| static std::string | DumpDotGraph_GetNodeName (OA::OA_ptr< MyDGNode > n) |
| void | DDumpDotGraph (OA::OA_ptr< OA::DGraph::DGraphInterface > graph) |
| void | DumpDotGraph (std::ostream &os, OA::OA_ptr< OA::DGraph::DGraphInterface > graph) |
| void | TranslateIR (PU_Info *pu_forest, const xercesc::DOMDocument *doc) |
| WN * | CreateParm (WN *arg, UINT32 flag) |
| static void | XercesPrintNode (std::ostream &os, const DOMNode *n, int iter) |
| static void | XercesPrintTree (std::ostream &os, const DOMNode *n, int ilevel) |
| void | XercesPrintNode (std::ostream &os, const DOMNode *n) |
| void | XercesPrintTree (std::ostream &os, const DOMNode *n) |
| std::ostream & | operator<< (std::ostream &os, const DOMElement &elem) |
| void | XercesDumpNode (const DOMNode *n) |
| void | XercesDumpTree (const DOMNode *n) |
| void | XercesDumpNode (void *n) |
| void | XercesDumpTree (void *n) |
| DOMElement * | GetFirstChildElement (const DOMNode *n) |
| DOMElement * | GetLastChildElement (const DOMNode *n) |
| DOMElement * | GetChildElement (const DOMNode *n, const XMLCh *name) |
| DOMElement * | GetChildElement (const DOMNode *n, const DOMNodeFilter *filter) |
| unsigned int | GetChildElementCount (const DOMNode *n) |
| DOMElement * | GetPrevSiblingElement (const DOMNode *n) |
| DOMElement * | GetNextSiblingElement (const DOMNode *n) |
| DOMElement * | GetNextSiblingElement (const DOMNode *n, const XMLCh *name) |
| DOMElement * | GetNextSiblingElement (const DOMNode *n, const DOMNodeFilter *filter) |
| void | XercesPrintNode (std::ostream &os, const xercesc::DOMNode *n) |
| void | XercesPrintTree (std::ostream &os, const xercesc::DOMNode *n) |
| std::ostream & | operator<< (std::ostream &os, const xercesc::DOMElement &elem) |
| void | XercesDumpNode (const xercesc::DOMNode *n) |
| void | XercesDumpTree (const xercesc::DOMNode *n) |
| xercesc::DOMElement * | GetFirstChildElement (const xercesc::DOMNode *n) |
| xercesc::DOMElement * | GetLastChildElement (const xercesc::DOMNode *n) |
| xercesc::DOMElement * | GetChildElement (const xercesc::DOMNode *n, const XMLCh *name) |
| xercesc::DOMElement * | GetChildElement (const xercesc::DOMNode *n, const xercesc::DOMNodeFilter *filter) |
| unsigned int | GetChildElementCount (const xercesc::DOMNode *n) |
| xercesc::DOMElement * | GetPrevSiblingElement (const xercesc::DOMNode *n) |
| xercesc::DOMElement * | GetNextSiblingElement (const xercesc::DOMNode *n) |
| xercesc::DOMElement * | GetNextSiblingElement (const xercesc::DOMNode *n, const XMLCh *name) |
| xercesc::DOMElement * | GetNextSiblingElement (const xercesc::DOMNode *n, const xercesc::DOMNodeFilter *filter) |
| std::ostream & | operator<< (std::ostream &os, const XMLCh *const toDump) |
| std::ostream & | operator<< (std::ostream &os, const XercesStrX &toDump) |
| bool | conversionToReal (fortTkSupport::IntrinsicXlationTable::WHIRLInfo &info) |
Variables | |
| TY_IDX | ActiveTypeTyIdx |
| TY_IDX | ActiveTypeInitializedTyIdx |
| AlgorithmType | opt_algorithm = ALG_NULL |
| fortTkSupport::IntrinsicXlationTable | IntrinsicTable (fortTkSupport::IntrinsicXlationTable::X2W) |
| fortTkSupport::WNIdToWNTabMap | WNIdToWNTableMap |
| typedef std::map<std::string, OA::OA_ptr<MyDGNode> > xaif2whirl::VertexIdToMyDGNodeMap |
Definition at line 185 of file xaif2whirl.h.
Definition at line 25 of file xaif2whirl.h.
Definition at line 372 of file XlateExpression.cxx.
References fortTkSupport::IntrinsicXlationTable::WHIRLInfo::name, and fortTkSupport::IntrinsicXlationTable::WHIRLInfo::opr.
Referenced by xaif2whirl::XlateExpression::xlate_ExprOpUsingIntrinsicTable().
| static ST * xaif2whirl::ConvertIntoGlobalST | ( | ST * | st | ) | [static] |
Definition at line 2362 of file xaif2whirl.cxx.
References SexpTags::ST, and SexpTags::TY.
| static void xaif2whirl::ConvertScalarizedRefToActiveType | ( | WN * | wn | ) | [static] |
Definition at line 2622 of file xaif2whirl.cxx.
References ConvertStructMemberToActiveType(), FORTTK_ASSERT, TY_Is_Array(), WN_GetBaseObjType(), and WN_GetRefObjType().
Referenced by xlate_Symbol().

| static void xaif2whirl::ConvertStructMemberToActiveType | ( | TY_IDX | base_ty, |
| TY_IDX | ref_ty, | ||
| UINT | field_id | ||
| ) | [static] |
Definition at line 2576 of file xaif2whirl.cxx.
References ActiveTypeTyIdx, and FORTTK_ASSERT.
Referenced by ConvertScalarizedRefToActiveType(), and xaif2whirl::ConvertModuleTypeFctr::operator()().
| static void xaif2whirl::ConvertToActiveType | ( | ST * | st | ) | [static] |
Definition at line 2447 of file xaif2whirl.cxx.
References ActiveTypeInitializedTyIdx, ActiveTypeTyIdx, FORTTK_DIE, FORTTK_WMSG, Stab_Is_Common_Block(), Stab_Is_Equivalence_Block(), Stab_Is_Valid_Base(), and TY_Lookup_FLD().
Referenced by xlate_Symbol().

| WN * xaif2whirl::CreateBoolConst | ( | unsigned int | val | ) |
Definition at line 2145 of file xaif2whirl.cxx.
References SexpTags::ST.
Referenced by xaif2whirl::XlateExpression::translateConstant().
| WN * xaif2whirl::CreateCallToIntrin | ( | TYPE_ID | rtype, |
| const char * | fname, | ||
| unsigned int | argc | ||
| ) |
Definition at line 2079 of file xaif2whirl.cxx.
References SexpTags::ST.
Referenced by CreateCallToIntrin(), xaif2whirl::XlateExpression::createDerivSelector(), xaif2whirl::XlateExpression::createValueSelector(), xaif2whirl::XlateStmt::xlate_DecDeriv(), xaif2whirl::XlateExpression::xlate_ExprOpUsingIntrinsicTable(), xaif2whirl::XlateStmt::xlate_IncDeriv(), xaif2whirl::XlateStmt::xlate_InlinableSubroutineCall(), xaif2whirl::XlateStmt::xlate_Saxpy(), xaif2whirl::XlateStmt::xlate_SetDeriv(), xaif2whirl::XlateStmt::xlate_SetNegDeriv(), and xaif2whirl::XlateStmt::xlate_ZeroDeriv().
| WN * xaif2whirl::CreateCallToIntrin | ( | TYPE_ID | rtype, |
| const char * | fname, | ||
| std::vector< WN * > & | args | ||
| ) |
Definition at line 2095 of file xaif2whirl.cxx.
References CreateCallToIntrin(), CreateParm(), TY_Is_Character_Reference(), TY_Is_Chararray_Reference(), and WN_Tree_Type().

| static OA::OA_ptr< OA::DGraph::DGraphInterface > xaif2whirl::CreateCFGraph | ( | const xercesc::DOMElement * | elem | ) | [static] |
Definition at line 2843 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_source_x(), XAIFStringRepository::attr_target_x(), XAIFStringRepository::attr_Vid_x(), xaif2whirl::XercesStrX::c_str(), FORTTK_ASSERT, GetChildElement(), GetNextSiblingElement(), xaif2whirl::XAIF_BBElemFilter::IsEdge(), xaif2whirl::MyDGNode::resetIds(), and XAIFStrings.
Referenced by TranslateCFG().

| static WN * xaif2whirl::CreateIfCondition | ( | WN * | condWN | ) | [static] |
Definition at line 2183 of file xaif2whirl.cxx.
References WN_Tree_Type().
Referenced by xlate_CFGstruct(), and xlate_CFGunstruct().

| WN * xaif2whirl::CreateIntrinsicCall | ( | OPERATOR | opr, |
| INTRINSIC | intrn, | ||
| TYPE_ID | rtype, | ||
| TYPE_ID | dtype, | ||
| std::vector< WN * > & | args | ||
| ) |
Definition at line 2128 of file xaif2whirl.cxx.
Referenced by xaif2whirl::XlateExpression::xlate_ExprOpUsingIntrinsicTable().
| static WN * xaif2whirl::CreateOpenADReplacementBeg | ( | const char * | placeholder | ) | [static] |
Definition at line 2162 of file xaif2whirl.cxx.
Referenced by TranslateCFG().
| static WN * xaif2whirl::CreateOpenADReplacementEnd | ( | ) | [static] |
Definition at line 2172 of file xaif2whirl.cxx.
Referenced by TranslateCFG().
| WN* xaif2whirl::CreateParm | ( | WN * | arg, |
| UINT32 | flag | ||
| ) | [inline] |
Definition at line 175 of file xaif2whirl.h.
Referenced by CreateCallToIntrin(), xaif2whirl::XlateExpression::createDerivSelector(), xaif2whirl::XlateExpression::createValueSelector(), xaif2whirl::XlateStmt::xlate_DecDeriv(), xaif2whirl::XlateStmt::xlate_IncDeriv(), xaif2whirl::XlateStmt::xlate_Saxpy(), xaif2whirl::XlateStmt::xlate_SetDeriv(), xaif2whirl::XlateStmt::xlate_SetNegDeriv(), xaif2whirl::XlateStmt::xlate_SubroutineCall(), and xaif2whirl::XlateStmt::xlate_ZeroDeriv().
| static ST * xaif2whirl::CreateST | ( | const xercesc::DOMElement * | elem, |
| SYMTAB_IDX | level, | ||
| const char * | nm, | ||
| fortTkSupport::XAIFSymToSymbolMap & | symMap, | ||
| const char * | scopeId | ||
| ) | [static] |
Definition at line 2200 of file xaif2whirl.cxx.
References ActiveTypeTyIdx, XAIFStringRepository::attr_feType_x(), XAIFStringRepository::attr_kind_x(), XAIFStringRepository::attr_lower_x(), XAIFStringRepository::attr_shape_x(), XAIFStringRepository::attr_type_x(), XAIFStringRepository::attr_upper_x(), xaif2whirl::XercesStrX::c_str(), fortTkSupport::XAIFSymToSymbolMap::Find(), FORTTK_ASSERT, FORTTK_DIE, GetActiveAttr(), GetChildElement(), GetNextSiblingElement(), xaif2whirl::PUXlationContext::getPrefix(), fortTkSupport::Symbol::GetST(), MY_Make_Array_Type(), SexpTags::ST, fortTkSupport::Diagnostics::Unimplemented, XAIFFETypeToWHIRLMTy(), XAIFStrings, and XAIFTyToWHIRLTy().
Referenced by xlate_Symbol().

| void xaif2whirl::DDumpDotGraph | ( | OA::OA_ptr< OA::DGraph::DGraphInterface > | graph | ) |
Definition at line 2898 of file xaif2whirl.cxx.
References DumpDotGraph().

| void xaif2whirl::DeclareActiveTypes | ( | ) |
Definition at line 2414 of file xaif2whirl.cxx.
References ActiveTypeInitializedTyIdx, ActiveTypeTyIdx, Args::ourActiveTypeNm, Args::ourActiveTypeNmLength, and SexpTags::TY.
Referenced by xaif2whirl::XAIF_SAXHandler::initialize().
| void xaif2whirl::DumpDotGraph | ( | std::ostream & | os, |
| OA::OA_ptr< OA::DGraph::DGraphInterface > | graph | ||
| ) |
Definition at line 2904 of file xaif2whirl.cxx.
References DumpDotGraph_GetNodeName().
Referenced by DDumpDotGraph().

| static std::string xaif2whirl::DumpDotGraph_GetNodeName | ( | OA::OA_ptr< MyDGNode > | n | ) | [static] |
Definition at line 2930 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_Vid_x(), xaif2whirl::XercesStrX::c_str(), Num2Str(), and XAIFStrings.
Referenced by DumpDotGraph().

| static WN * xaif2whirl::FindIntervalBoundary | ( | const xercesc::DOMElement * | elem, |
| fortTkSupport::IdList< fortTkSupport::WNId > * | bbIdList, | ||
| fortTkSupport::WNIdToWNMap * | wnmap, | ||
| WN * | blkWN, | ||
| int | boundary | ||
| ) | [static] |
Definition at line 1540 of file xaif2whirl.cxx.
References fortTkSupport::BaseMap< FromTy, ToTy >::Find(), FORTTK_ASSERT, FORTTK_DIE, GetNextSiblingElement(), GetPrevSiblingElement(), GetWNId(), and xaif2whirl::XAIF_BBStmtElemFilter::IsMarker().
Referenced by FindNextStmtInterval().

| static bool xaif2whirl::FindNextStmtInterval | ( | const xercesc::DOMElement * | bbElem, |
| fortTkSupport::IdList< fortTkSupport::WNId > * | bbIdList, | ||
| fortTkSupport::WNIdToWNMap * | wnmap, | ||
| WN * | blkWN, | ||
| xercesc::DOMElement *& | begXAIF, | ||
| xercesc::DOMElement *& | endXAIF, | ||
| WN *& | begWN, | ||
| WN *& | endWN | ||
| ) | [static] |
Definition at line 1465 of file xaif2whirl.cxx.
References XAIFStringRepository::elem_Marker_x(), FindIntervalBoundary(), GetFirstChildElement(), GetLastChildElement(), GetNextSiblingElement(), GetPrevSiblingElement(), GetWNId(), xaif2whirl::XAIF_BBStmtElemFilter::IsMarker(), and XAIFStrings.
Referenced by xlate_BasicBlock_OLD().

| static WN * xaif2whirl::FindSafeInsertionPoint | ( | WN * | blckWN, |
| WN * | stmtWN | ||
| ) | [static] |
Definition at line 1634 of file xaif2whirl.cxx.
Referenced by xlate_BasicBlock_OLD().
| static WN * xaif2whirl::FindWNBlock | ( | const xercesc::DOMElement * | bbElem, |
| fortTkSupport::IdList< fortTkSupport::WNId > * | idlist, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 1612 of file xaif2whirl.cxx.
References xaif2whirl::PUXlationContext::findParentBlockWN(), and xaif2whirl::PUXlationContext::findWN().
Referenced by TranslateBasicBlock(), and xlate_BasicBlock_OLD().

| bool xaif2whirl::GetActiveAttr | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1897 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_active_x(), GetBoolAttr(), and XAIFStrings.
Referenced by CreateST(), and xlate_Symbol().

| bool xaif2whirl::GetBoolAttr | ( | const xercesc::DOMElement * | elem, |
| XMLCh * | attr, | ||
| bool | default_val | ||
| ) |
Definition at line 1846 of file xaif2whirl.cxx.
References xaif2whirl::XercesStrX::c_str().
Referenced by GetActiveAttr(), GetDerivAttr(), GetHasConditionAttr(), TranslateCFG(), and xlate_Symbol().

| xercesc::DOMElement* xaif2whirl::GetChildElement | ( | const xercesc::DOMNode * | n, |
| const XMLCh * | name | ||
| ) |
| xercesc::DOMElement* xaif2whirl::GetChildElement | ( | const xercesc::DOMNode * | n, |
| const xercesc::DOMNodeFilter * | filter | ||
| ) |
| DOMElement* xaif2whirl::GetChildElement | ( | const DOMNode * | n, |
| const XMLCh * | name | ||
| ) |
Definition at line 177 of file XAIF_DOMFilters.cxx.
Referenced by CreateCFGraph(), CreateST(), xaif2whirl::XAIF_SAXHandler::endElement(), xaif2whirl::XlateStmt::translateAssignmentSimple(), TranslateBasicBlock(), TranslateCFG(), xaif2whirl::XlateStmt::xlate_Assignment(), xlate_BBCond_OLD(), xlate_CFGstruct(), xlate_CFGunstruct(), xaif2whirl::XlateStmt::xlate_DecDeriv(), xaif2whirl::XlateStmt::xlate_DerivativePropagator(), xaif2whirl::XlateStmt::xlate_IncDeriv(), xaif2whirl::XlateStmt::xlate_Saxpy(), xaif2whirl::XlateStmt::xlate_SetDeriv(), xaif2whirl::XlateStmt::xlate_SetNegDeriv(), and xlate_SymbolTable().
| DOMElement* xaif2whirl::GetChildElement | ( | const DOMNode * | n, |
| const DOMNodeFilter * | filter | ||
| ) |
Definition at line 186 of file XAIF_DOMFilters.cxx.
| unsigned int xaif2whirl::GetChildElementCount | ( | const xercesc::DOMNode * | n | ) |
| unsigned int xaif2whirl::GetChildElementCount | ( | const DOMNode * | n | ) |
Definition at line 205 of file XAIF_DOMFilters.cxx.
Referenced by xaif2whirl::XlateExpression::xlate_ArrayElementReference(), xaif2whirl::XlateStmt::xlate_InlinableSubroutineCall(), and xaif2whirl::XlateStmt::xlate_Saxpy().
| unsigned int xaif2whirl::GetCondAttr | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1886 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_condval_x(), GetHasConditionAttr(), GetIntAttr(), and XAIFStrings.
Referenced by getOrderedSinkNodesList(), GetSuccessorAlongEdge(), xaif2whirl::sort_CondVal::operator()(), and xlate_CFG_BranchMulti().

| bool xaif2whirl::GetDerivAttr | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1904 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_deriv_x(), GetBoolAttr(), and XAIFStrings.
Referenced by xaif2whirl::XlateStmt::xlate_AssignmentLHS(), xaif2whirl::XlateStmt::xlate_DecDeriv(), xaif2whirl::XlateStmt::xlate_IncDeriv(), xaif2whirl::XlateStmt::xlate_Saxpy(), xaif2whirl::XlateStmt::xlate_SetDeriv(), and xaif2whirl::XlateStmt::xlate_SetNegDeriv().

| xercesc::DOMElement* xaif2whirl::GetFirstChildElement | ( | const xercesc::DOMNode * | n | ) |
| DOMElement* xaif2whirl::GetFirstChildElement | ( | const DOMNode * | n | ) |
Definition at line 141 of file XAIF_DOMFilters.cxx.
Referenced by FindNextStmtInterval(), xaif2whirl::XlateStmt::translateAssignmentSimple(), xaif2whirl::XlateExpression::xlate_ArrayElementReference(), xaif2whirl::XlateStmt::xlate_AssignmentLHS(), xaif2whirl::XlateStmt::xlate_AssignmentRHS(), xlate_BasicBlock_OLD(), xlate_CFGstruct(), xlate_CFGunstruct(), xaif2whirl::XlateStmt::xlate_DecDeriv(), xaif2whirl::XlateStmt::xlate_IncDeriv(), xaif2whirl::XlateStmt::xlate_InlinableSubroutineCall(), xaif2whirl::XlateStmt::xlate_Saxpy(), xlate_Scope(), xaif2whirl::XlateStmt::xlate_SetDeriv(), xaif2whirl::XlateStmt::xlate_SetNegDeriv(), and xaif2whirl::XlateStmt::xlate_SubroutineCall().
| bool xaif2whirl::GetHasConditionAttr | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1879 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_hasCondval_x(), GetBoolAttr(), and XAIFStrings.
Referenced by GetCondAttr(), getOrderedSinkNodesList(), and xlate_CFG_BranchMulti().

| T xaif2whirl::GetId | ( | const xercesc::DOMElement * | elem, |
| const char * | tag | ||
| ) |
Definition at line 1991 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_annot_x(), xaif2whirl::XercesStrX::c_str(), and XAIFStrings.

| T xaif2whirl::GetId | ( | const char * | idstr, |
| const char * | tag | ||
| ) |
Definition at line 2016 of file xaif2whirl.cxx.
References FORTTK_ASSERT, XAIFStringRepository::tag_End(), and XAIFStrings.

| fortTkSupport::IdList< T > * xaif2whirl::GetIdList | ( | const xercesc::DOMElement * | elem, |
| const char * | tag | ||
| ) |
Definition at line 2003 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_annot_x(), xaif2whirl::XercesStrX::c_str(), and XAIFStrings.

| fortTkSupport::IdList< T > * xaif2whirl::GetIdList | ( | const char * | idstr, |
| const char * | tag | ||
| ) |
Definition at line 2038 of file xaif2whirl.cxx.
References FORTTK_ASSERT, XAIFStringRepository::tag_End(), and XAIFStrings.

| int xaif2whirl::GetIntAttr | ( | const xercesc::DOMElement * | elem, |
| XMLCh * | attr, | ||
| int | default_val | ||
| ) |
Definition at line 1865 of file xaif2whirl.cxx.
References xaif2whirl::XercesStrX::c_str().
Referenced by GetCondAttr(), GetPositionAttr(), and xaif2whirl::XlateStmt::xlate_SubroutineCall().

| std::string xaif2whirl::GetIntrinsicKey | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1962 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_annot_x(), xaif2whirl::XercesStrX::c_str(), XAIFStringRepository::tag_End(), XAIFStringRepository::tag_IntrinsicKey(), and XAIFStrings.
Referenced by xaif2whirl::XlateExpression::xlate_Intrinsic().

| xercesc::DOMElement* xaif2whirl::GetLastChildElement | ( | const xercesc::DOMNode * | n | ) |
| DOMElement* xaif2whirl::GetLastChildElement | ( | const DOMNode * | n | ) |
Definition at line 159 of file XAIF_DOMFilters.cxx.
Referenced by FindNextStmtInterval().
| xercesc::DOMElement* xaif2whirl::GetNextSiblingElement | ( | const xercesc::DOMNode * | n | ) |
| xercesc::DOMElement* xaif2whirl::GetNextSiblingElement | ( | const xercesc::DOMNode * | n, |
| const XMLCh * | name | ||
| ) |
| xercesc::DOMElement* xaif2whirl::GetNextSiblingElement | ( | const xercesc::DOMNode * | n, |
| const xercesc::DOMNodeFilter * | filter | ||
| ) |
| DOMElement* xaif2whirl::GetNextSiblingElement | ( | const DOMNode * | n | ) |
Definition at line 237 of file XAIF_DOMFilters.cxx.
Referenced by CreateCFGraph(), xaif2whirl::XlateExpression::createExpressionGraph(), CreateST(), xaif2whirl::XAIF_SAXHandler::endElement(), FindIntervalBoundary(), FindNextStmtInterval(), GetNextSiblingElement(), TranslateBasicBlock(), TranslateCFG(), xaif2whirl::XlateExpression::translateVarRefSimple(), xaif2whirl::XlateExpression::xlate_ArrayElementReference(), xlate_BasicBlock_OLD(), xaif2whirl::XlateStmt::xlate_DerivativePropagator(), xaif2whirl::XlateStmt::xlate_InlinableSubroutineCall(), xaif2whirl::XlateStmt::xlate_Saxpy(), xaif2whirl::XlateStmt::xlate_SubroutineCall(), and xlate_SymbolTable().
| DOMElement* xaif2whirl::GetNextSiblingElement | ( | const DOMNode * | n, |
| const XMLCh * | name | ||
| ) |
Definition at line 252 of file XAIF_DOMFilters.cxx.
References GetNextSiblingElement().

| DOMElement* xaif2whirl::GetNextSiblingElement | ( | const DOMNode * | n, |
| const DOMNodeFilter * | filter | ||
| ) |
Definition at line 261 of file XAIF_DOMFilters.cxx.
References GetNextSiblingElement().

| fortTkSupport::Symbol * xaif2whirl::GetOrCreateBogusTmpSymbol | ( | PUXlationContext & | ctxt | ) |
Definition at line 1719 of file xaif2whirl.cxx.
References GetOrCreateSymbol().
Referenced by xaif2whirl::XlateStmt::xlate_InlinableSubroutineCall().

| fortTkSupport::Symbol * xaif2whirl::GetOrCreateSymbol | ( | const char * | sname, |
| PUXlationContext & | ctxt | ||
| ) |
Definition at line 1695 of file xaif2whirl.cxx.
References fortTkSupport::XAIFSymToSymbolMap::Find(), xaif2whirl::PUXlationContext::getXAIFSymToSymbolMap(), fortTkSupport::XAIFSymToSymbolMap::Insert(), and SexpTags::ST.
Referenced by GetOrCreateBogusTmpSymbol().

| OA::OA_ptr<std::list<OA::OA_ptr<OA::DGraph::NodeInterface> > > xaif2whirl::getOrderedSinkNodesList | ( | OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg, |
| OA::OA_ptr< OA::DGraph::NodeInterface > | pNode | ||
| ) |
for the back translation of unstructured control flow graphs
Definition at line 773 of file xaif2whirl.cxx.
References GetCondAttr(), xaif2whirl::MyDGNode::GetElem(), GetHasConditionAttr(), xaif2whirl::XAIF_BBElemFilter::IsBBForLoop(), and xaif2whirl::XAIF_BBElemFilter::IsBBPostLoop().
Referenced by getReversePostDFSListR().

| unsigned int xaif2whirl::GetPositionAttr | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1911 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_position_x(), GetIntAttr(), and XAIFStrings.
Referenced by xaif2whirl::XAIFEdgePositionCompare::operator()(), xaif2whirl::XlateStmt::xlate_InlinableSubroutineCall(), and xaif2whirl::XlateStmt::xlate_SubroutineCall().

| PREG_IDX xaif2whirl::GetPregId | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1982 of file xaif2whirl.cxx.
References XAIFStringRepository::tag_PregId(), and XAIFStrings.
Referenced by xaif2whirl::XlateExpression::xlate_SymbolReference(), and xaif2whirl::XlateExpression::xlate_SymbolReferenceSimple().

| xercesc::DOMElement* xaif2whirl::GetPrevSiblingElement | ( | const xercesc::DOMNode * | n | ) |
| DOMElement* xaif2whirl::GetPrevSiblingElement | ( | const DOMNode * | n | ) |
Definition at line 222 of file XAIF_DOMFilters.cxx.
Referenced by FindIntervalBoundary(), and FindNextStmtInterval().
| fortTkSupport::PUId xaif2whirl::GetPUId | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1944 of file xaif2whirl.cxx.
References XAIFStringRepository::tag_PUId(), and XAIFStrings.
Referenced by TranslateCFG().

| OA::OA_ptr<std::list<OA::OA_ptr<OA::DGraph::NodeInterface> > > xaif2whirl::getReversePostDFSList | ( | OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg | ) |
for the back translation of unstructured control flow graphs this behaves like normal reversePostDFS order (as it was implemented in OpenAnalysis) with the one exception that we the successor nodes of a given loop node are ordered such that the node to loop successor (not the loop body) comes first in the DFS search (see the logic in getOrderedSinkNodesList). This removes the scenario of an EXIT node being placed in the middle of the list of blocks that are being connected via gotos (which consequently rather than exiting leads to continued execution of the next block that happens to follow the EXIT node in the list).
Definition at line 849 of file xaif2whirl.cxx.
References getReversePostDFSListR().
Referenced by xlate_CFGunstruct().

| void xaif2whirl::getReversePostDFSListR | ( | OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg, |
| OA::OA_ptr< OA::DGraph::NodeInterface > | pNode, | ||
| std::map< OA::OA_ptr< OA::DGraph::NodeInterface >, bool > & | visitMap, | ||
| OA::OA_ptr< std::list< OA::OA_ptr< OA::DGraph::NodeInterface > > > | pList | ||
| ) |
for the back translation of unstructured control flow graphs
Definition at line 810 of file xaif2whirl.cxx.
References xaif2whirl::MyDGNode::GetElem(), and getOrderedSinkNodesList().
Referenced by getReversePostDFSList().

| OA::OA_ptr< MyDGNode > xaif2whirl::GetSuccessor | ( | OA::OA_ptr< MyDGNode > | node, |
| bool | succIsOutEdge | ||
| ) |
Definition at line 2775 of file xaif2whirl.cxx.
References FORTTK_DIE.
Referenced by xaif2whirl::XlateExpression::xlate_ArrayElementReference(), xlate_CFGstruct(), and xlate_CFGunstruct().
| OA::OA_ptr< MyDGNode > xaif2whirl::GetSuccessorAlongEdge | ( | OA::OA_ptr< MyDGNode > | node, |
| unsigned int | condition, | ||
| bool | succIsOutEdge | ||
| ) |
Definition at line 2809 of file xaif2whirl.cxx.
References FORTTK_DIE, GetCondAttr(), xaif2whirl::MyDGEdge::GetElem(), and fortTkSupport::Diagnostics::Unimplemented.
Referenced by xlate_CFGstruct(), and xlate_CFGunstruct().

| fortTkSupport::Symbol * xaif2whirl::GetSymbol | ( | const xercesc::DOMElement * | elem, |
| PUXlationContext & | ctxt | ||
| ) |
Definition at line 1678 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_scopeId_x(), XAIFStringRepository::attr_symId_x(), xaif2whirl::XercesStrX::c_str(), xaif2whirl::PUXlationContext::findSym(), FORTTK_ASSERT, and XAIFStrings.
Referenced by TranslateCFG(), xaif2whirl::XlateStmt::xlate_SubroutineCall(), xaif2whirl::XlateExpression::xlate_SymbolReference(), and xaif2whirl::XlateExpression::xlate_SymbolReferenceSimple().

| fortTkSupport::SymId xaif2whirl::GetSymId | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1939 of file xaif2whirl.cxx.
References XAIFStringRepository::tag_SymId(), and XAIFStrings.
Referenced by xaif2whirl::XlateStmt::xlate_SubroutineCall(), and xlate_Symbol().

| fortTkSupport::SymTabId xaif2whirl::GetSymTabId | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1934 of file xaif2whirl.cxx.
References XAIFStringRepository::tag_SymTabId(), and XAIFStrings.
Referenced by xlate_Scope().

| fortTkSupport::WNId xaif2whirl::GetWNId | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1949 of file xaif2whirl.cxx.
References XAIFStringRepository::tag_WHIRLId(), and XAIFStrings.
Referenced by FindIntervalBoundary(), FindNextStmtInterval(), TranslateBasicBlock(), TranslateCFG(), xlate_BasicBlock_OLD(), and xlate_Symbol().

| fortTkSupport::IdList< fortTkSupport::WNId > * xaif2whirl::GetWNIdList | ( | const xercesc::DOMElement * | elem | ) |
Definition at line 1955 of file xaif2whirl.cxx.
References XAIFStringRepository::tag_WHIRLId(), and XAIFStrings.
Referenced by TranslateBasicBlock(), xlate_BasicBlock_OLD(), and xlate_BBCond_OLD().

| bool xaif2whirl::IsTagPresent | ( | const xercesc::DOMElement * | elem, |
| const char * | tag | ||
| ) |
Definition at line 1918 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_annot_x(), xaif2whirl::XercesStrX::c_str(), and XAIFStrings.
Referenced by TranslateBasicBlock().

| bool xaif2whirl::IsTagPresent | ( | const char * | annotstr, |
| const char * | tag | ||
| ) |
Definition at line 1928 of file xaif2whirl.cxx.
| static int xaif2whirl::main_DOM | ( | PU_Info * | pu_forest, |
| const char * | xaiffilenm, | ||
| bool | validate | ||
| ) | [static] |
| static int xaif2whirl::main_SAX | ( | PU_Info * | pu_forest, |
| const char * | xaiffilenm, | ||
| bool | validate | ||
| ) | [static] |
Definition at line 177 of file main.cxx.
References xaif2whirl::XAIF_SAXHandler::deleteParser(), FORTTK_ASSERT, FORTTK_MSG, fortTkSupport::BaseException::GetMessage(), xaif2whirl::XAIF_SAXHandler::getParserErrorStatus(), xaif2whirl::XAIF_SAXHandler::initialize(), and xaif2whirl::XAIF_SAXHandler::parse().
Referenced by real_main().

| static TY_IDX xaif2whirl::MY_Make_Array_Type | ( | TY_IDX | elem_ty, |
| INT32 | ndim, | ||
| bool | fixed, | ||
| const INT64 * | lower, | ||
| const INT64 * | upper | ||
| ) | [static] |
Definition at line 2699 of file xaif2whirl.cxx.
References FORTTK_ASSERT, and SexpTags::TY.
Referenced by CreateST().
| std::ostream& xaif2whirl::operator<< | ( | std::ostream & | os, |
| const xercesc::DOMElement & | elem | ||
| ) |
| std::ostream& xaif2whirl::operator<< | ( | std::ostream & | os, |
| const XMLCh *const | toDump | ||
| ) | [inline] |
Definition at line 42 of file XercesStrX.h.
References xaif2whirl::XercesStrX::DumpXMLStr().

| std::ostream& xaif2whirl::operator<< | ( | std::ostream & | os, |
| const DOMElement & | elem | ||
| ) |
Definition at line 47 of file XAIF_DOMFilters.cxx.
References XercesPrintNode().

| std::ostream& xaif2whirl::operator<< | ( | std::ostream & | os, |
| const XercesStrX & | toDump | ||
| ) | [inline] |
Definition at line 49 of file XercesStrX.h.
References xaif2whirl::XercesStrX::c_str().

| static int xaif2whirl::real_main | ( | int | argc, |
| char ** | argv | ||
| ) | [static] |
Definition at line 88 of file main.cxx.
References Args::algorithm, InterfaceData::collect(), Args::debug, Diag_Exit(), Diag_Init(), Diag_Set_Max_Diags(), Diag_Set_Phase(), AdjustInterfaces::doIt(), xaif2whirl::AdjustFunctions::doIt(), InterfaceData::dump(), fortTkSupport::Diagnostics::getDiagnosticFilterLevel(), Args::inWhirlFileNm, main_SAX(), Args::myNoCleanUpFlag, opt_algorithm, Args::outWhirlFileNm, PrepareIR(), ReadIR(), fortTkSupport::Diagnostics::setDiagnosticFilterLevel(), Args::validate, WriteIR(), Args::xaifFileNm, XAIFStrings, XercesFini(), XercesInit(), and XAIFStringRepository::XMLInitialize().
Referenced by main().

| static void xaif2whirl::RemoveFromWhirlIdMaps | ( | WN * | wn, |
| fortTkSupport::WNToWNIdMap * | wn2idmap, | ||
| fortTkSupport::WNIdToWNMap * | id2wnmap | ||
| ) | [static] |
Definition at line 1655 of file xaif2whirl.cxx.
Referenced by xlate_BasicBlock_OLD().
| static WN * xaif2whirl::TranslateBasicBlock | ( | WN * | wn_pu, |
| const xercesc::DOMElement * | bbElem, | ||
| PUXlationContext & | ctxt, | ||
| bool | skipMarkeredGotoAndLabels, | ||
| unsigned | endLabel | ||
| ) | [static] |
Definition at line 1247 of file xaif2whirl.cxx.
References xaif2whirl::PUXlationContext::findWN(), FindWNBlock(), FORTTK_ASSERT, GetChildElement(), GetNextSiblingElement(), GetWNId(), GetWNIdList(), xaif2whirl::XAIF_BBStmtElemFilter::IsMarker(), IsTagPresent(), xaif2whirl::XlateStmt::patchWNStmt(), XAIFStringRepository::tag_StmtGoto(), XAIFStringRepository::tag_StmtLabel(), XAIFStringRepository::tag_StmtReturn(), xaif2whirl::XlateStmt::translateStmt(), and XAIFStrings.
Referenced by xlate_CFG_BasicBlock().

| static void xaif2whirl::TranslateBB_OLD | ( | WN * | wn_pu, |
| const xercesc::DOMElement * | bbElem, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 1305 of file xaif2whirl.cxx.
References xaif2whirl::XAIF_BBElemFilter::IsBB(), xaif2whirl::XAIF_BBElemFilter::IsBBBranch(), xaif2whirl::XAIF_BBElemFilter::IsBBForLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBPostLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBPreLoop(), xlate_BasicBlock_OLD(), and xlate_BBCond_OLD().
Referenced by TranslateCFG().

| static void xaif2whirl::TranslateCFG | ( | WN * | wn_pu, |
| const xercesc::DOMElement * | cfgElem, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 361 of file xaif2whirl.cxx.
References ALG_BB_PATCHING, XAIFStringRepository::attr_intent_x(), XAIFStringRepository::attr_placeholder_x(), XAIFStringRepository::attr_structured_x(), xaif2whirl::XercesStrX::c_str(), CreateCFGraph(), CreateOpenADReplacementBeg(), CreateOpenADReplacementEnd(), fortTkSupport::CreateWhirlIdMaps(), XAIFStringRepository::elem_ArgList_x(), XAIFStringRepository::elem_ArgSymRef_x(), XAIFStringRepository::elem_Replacement_x(), fortTkSupport::BaseMap< FromTy, ToTy >::Find(), xaif2whirl::PUXlationContext::findWN(), FORTTK_DIE, GetBoolAttr(), GetChildElement(), GetNextSiblingElement(), fortTkSupport::Symbol::GetST(), GetSymbol(), GetWNId(), xaif2whirl::XAIF_CFGElemFilter::IsReplaceList(), xaif2whirl::XAIF_CFGElemFilter::IsReplacement(), opt_algorithm, xaif2whirl::PUXlationContext::setWNIdToWNMap(), xaif2whirl::PUXlationContext::setWNParentMap(), xaif2whirl::PUXlationContext::setWNToWNIdMap(), SexpTags::ST, TranslateBB_OLD(), WNIdToWNTableMap, XAIFStrings, and xlate_CFG().
Referenced by xaif2whirl::XAIF_SAXHandler::endElement(), and TranslateCFG().

| void xaif2whirl::TranslateCFG | ( | PU_Info * | pu_forest, |
| const xercesc::DOMElement * | cfgElem, | ||
| PUXlationContext & | ctxt | ||
| ) |
Translate XAIF CFG or XAIF Replacement to WHIRL
Definition at line 246 of file xaif2whirl.cxx.
References InterfaceData::findAndAdjustInterface(), xaif2whirl::PUXlationContext::findPU(), FORTTK_ASSERT, FORTTK_MSG, InterfaceData::getParentOf(), GetPUId(), fortTkSupport::Symbol::GetST(), GetSymbol(), IsActivePU(), PU_SetGlobalState(), SexpTags::ST, and TranslateCFG().

| void xaif2whirl::TranslateIR | ( | PU_Info * | pu_forest, |
| const xercesc::DOMDocument * | doc | ||
| ) |
| static FLD_HANDLE xaif2whirl::TY_Lookup_FLD | ( | TY_IDX | struct_ty, |
| TY_IDX | ref_ty, | ||
| UINT64 | ref_ofst, | ||
| unsigned short | eqInst = 1 |
||
| ) | [static] |
Definition at line 2671 of file xaif2whirl.cxx.
References Stab_Identical_Types().
Referenced by ConvertToActiveType().

| TYPE_ID xaif2whirl::XAIFFETypeToWHIRLMTy | ( | const char * | anFETypeName | ) |
Definition at line 2763 of file xaif2whirl.cxx.
Referenced by CreateST(), and xaif2whirl::XlateExpression::translateConstant().
| static TY_IDX xaif2whirl::XAIFTyToWHIRLTy | ( | const char * | type, |
| const TYPE_ID | mtype | ||
| ) | [static] |
Definition at line 2744 of file xaif2whirl.cxx.
References FORTTK_DIE, Args::ourDefaultMTypeInt, Args::ourDefaultMTypeReal, and fortTkSupport::Diagnostics::Unimplemented.
Referenced by CreateST().
| void xaif2whirl::XercesDumpNode | ( | const xercesc::DOMNode * | n | ) |
| void xaif2whirl::XercesDumpNode | ( | const DOMNode * | n | ) |
Definition at line 55 of file XAIF_DOMFilters.cxx.
References XercesPrintNode().
Referenced by XercesDumpNode().

| void xaif2whirl::XercesDumpNode | ( | void * | n | ) |
Definition at line 69 of file XAIF_DOMFilters.cxx.
References XercesDumpNode().

| void xaif2whirl::XercesDumpTree | ( | const xercesc::DOMNode * | n | ) |
| void xaif2whirl::XercesDumpTree | ( | const DOMNode * | n | ) |
Definition at line 62 of file XAIF_DOMFilters.cxx.
References XercesPrintTree().
Referenced by XercesDumpTree().

| void xaif2whirl::XercesDumpTree | ( | void * | n | ) |
Definition at line 76 of file XAIF_DOMFilters.cxx.
References XercesDumpTree().

| static int xaif2whirl::XercesFini | ( | ) | [static] |
Definition at line 234 of file main.cxx.
Referenced by real_main().
| static int xaif2whirl::XercesInit | ( | ) | [static] |
Definition at line 218 of file main.cxx.
Referenced by real_main().
| void xaif2whirl::XercesPrintNode | ( | std::ostream & | os, |
| const xercesc::DOMNode * | n | ||
| ) |
| static void xaif2whirl::XercesPrintNode | ( | std::ostream & | os, |
| const DOMNode * | n, | ||
| int | iter | ||
| ) | [static] |
Definition at line 83 of file XAIF_DOMFilters.cxx.
Referenced by operator<<(), XercesDumpNode(), XercesPrintNode(), and XercesPrintTree().
| void xaif2whirl::XercesPrintNode | ( | std::ostream & | os, |
| const DOMNode * | n | ||
| ) |
Definition at line 31 of file XAIF_DOMFilters.cxx.
References XercesPrintNode().

| void xaif2whirl::XercesPrintTree | ( | std::ostream & | os, |
| const xercesc::DOMNode * | n | ||
| ) |
| static void xaif2whirl::XercesPrintTree | ( | std::ostream & | os, |
| const DOMNode * | n, | ||
| int | ilevel | ||
| ) | [static] |
Definition at line 119 of file XAIF_DOMFilters.cxx.
References XercesPrintNode().
Referenced by XercesDumpTree(), and XercesPrintTree().

| void xaif2whirl::XercesPrintTree | ( | std::ostream & | os, |
| const DOMNode * | n | ||
| ) |
Definition at line 39 of file XAIF_DOMFilters.cxx.
References XercesPrintTree().

| static void xaif2whirl::xlate_BasicBlock_OLD | ( | WN * | wn_pu, |
| const xercesc::DOMElement * | bbElem, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 1325 of file xaif2whirl.cxx.
References XAIFStringRepository::elem_Marker_x(), FindNextStmtInterval(), FindSafeInsertionPoint(), xaif2whirl::PUXlationContext::findWN(), FindWNBlock(), FORTTK_ASSERT, GetFirstChildElement(), GetNextSiblingElement(), GetWNId(), GetWNIdList(), xaif2whirl::PUXlationContext::getWNIdToWNMap(), xaif2whirl::PUXlationContext::getWNToWNIdMap(), xaif2whirl::XlateStmt::patchWNStmt(), RemoveFromWhirlIdMaps(), xaif2whirl::XlateStmt::translateStmt(), and XAIFStrings.
Referenced by TranslateBB_OLD().

| static void xaif2whirl::xlate_BBCond_OLD | ( | WN * | wn_pu, |
| const xercesc::DOMElement * | bbElem, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 1398 of file xaif2whirl.cxx.
References XAIFStringRepository::elem_Condition_x(), xaif2whirl::PUXlationContext::findWN(), FORTTK_ASSERT, FORTTK_DIE, GetChildElement(), GetWNIdList(), xaif2whirl::XlateExpression::patchWNExpr(), fortTkSupport::Diagnostics::UnexpectedOpr, and XAIFStrings.
Referenced by TranslateBB_OLD().

| static WN* xaif2whirl::xlate_CFG | ( | WN * | wn_pu, |
| OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg, | ||
| OA::OA_ptr< MyDGNode > | root, | ||
| PUXlationContext & | ctxt, | ||
| unsigned & | startLabel_r, | ||
| bool | structuredCF | ||
| ) | [static] |
Referenced by TranslateCFG().
| static WN* xaif2whirl::xlate_CFG | ( | WN * | wn_pu, |
| OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg, | ||
| OA::OA_ptr< MyDGNode > | root, | ||
| PUXlationContext & | ctxt, | ||
| unsigned int & | startLabel_r, | ||
| bool | structuredCF | ||
| ) | [static] |
Definition at line 535 of file xaif2whirl.cxx.
References xlate_CFGstruct(), and xlate_CFGunstruct().

| static WN * xaif2whirl::xlate_CFG_BasicBlock | ( | WN * | wn_pu, |
| OA::OA_ptr< MyDGNode > | curBB, | ||
| PUXlationContext & | ctxt, | ||
| bool | skipMarkeredGotoAndLabels, | ||
| unsigned | newCurBBLbl, | ||
| unsigned | newNextBBLbl, | ||
| unsigned | endLabel | ||
| ) | [static] |
Definition at line 1169 of file xaif2whirl.cxx.
References TranslateBasicBlock().
Referenced by xlate_CFGstruct(), and xlate_CFGunstruct().

| static WN * xaif2whirl::xlate_CFG_BranchMulti | ( | OA::OA_ptr< MyDGNode > | curNode, |
| WN * | condWN, | ||
| unsigned | lastLbl, | ||
| vector< OA::OA_ptr< MyDGEdge > > & | outedges, | ||
| map< OA::OA_ptr< MyDGNode >, unsigned > & | nodeToLblMap | ||
| ) | [static] |
Definition at line 1205 of file xaif2whirl.cxx.
References GetCondAttr(), and GetHasConditionAttr().
Referenced by xlate_CFGstruct(), and xlate_CFGunstruct().

| static pair< WN *, OA::OA_ptr< MyDGNode > > xaif2whirl::xlate_CFGstruct | ( | WN * | wn_pu, |
| OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg, | ||
| OA::OA_ptr< MyDGNode > | startNode, | ||
| set< xercesc::DOMElement * > & | xlated, | ||
| PUXlationContext & | ctxt, | ||
| unsigned int & | startLabel_r | ||
| ) | [static] |
Definition at line 560 of file xaif2whirl.cxx.
References CreateIfCondition(), XAIFStringRepository::elem_Condition_x(), XAIFStringRepository::elem_LpInit_x(), XAIFStringRepository::elem_LpUpdate_x(), FORTTK_DIE, GetChildElement(), xaif2whirl::MyDGNode::GetElem(), GetFirstChildElement(), GetSuccessor(), GetSuccessorAlongEdge(), xaif2whirl::XAIF_BBElemFilter::IsBB(), xaif2whirl::XAIF_BBElemFilter::IsBBBranch(), xaif2whirl::XAIF_BBElemFilter::IsBBEndBr(), xaif2whirl::XAIF_BBElemFilter::IsBBEndLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBEntry(), xaif2whirl::XAIF_BBElemFilter::IsBBExit(), xaif2whirl::XAIF_BBElemFilter::IsBBForLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBPostLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBPreLoop(), xaif2whirl::XlateExpression::translateExpression(), xaif2whirl::XlateExpression::translateExpressionSimple(), xaif2whirl::XlateStmt::translateStmt(), XAIFStrings, xlate_CFG_BasicBlock(), and xlate_CFG_BranchMulti().
Referenced by xlate_CFG().

| static WN * xaif2whirl::xlate_CFGunstruct | ( | WN * | wn_pu, |
| OA::OA_ptr< OA::DGraph::DGraphInterface > | cfg, | ||
| OA::OA_ptr< MyDGNode > | startNode, | ||
| set< xercesc::DOMElement * > & | xlated, | ||
| PUXlationContext & | ctxt, | ||
| unsigned int & | startLabel_r | ||
| ) | [static] |
Definition at line 877 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_lineNumber_x(), xaif2whirl::XercesStrX::c_str(), CreateIfCondition(), XAIFStringRepository::elem_Condition_x(), XAIFStringRepository::elem_LpInit_x(), XAIFStringRepository::elem_LpUpdate_x(), FORTTK_DIE, FORTTK_MSG, GetChildElement(), xaif2whirl::MyDGNode::GetElem(), GetFirstChildElement(), getReversePostDFSList(), GetSuccessor(), GetSuccessorAlongEdge(), xaif2whirl::XAIF_BBElemFilter::IsBB(), xaif2whirl::XAIF_BBElemFilter::IsBBBranch(), xaif2whirl::XAIF_BBElemFilter::IsBBEndBr(), xaif2whirl::XAIF_BBElemFilter::IsBBEndLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBEntry(), xaif2whirl::XAIF_BBElemFilter::IsBBExit(), xaif2whirl::XAIF_BBElemFilter::IsBBForLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBPostLoop(), xaif2whirl::XAIF_BBElemFilter::IsBBPreLoop(), xaif2whirl::XlateExpression::translateExpression(), xaif2whirl::XlateExpression::translateExpressionSimple(), xaif2whirl::XlateStmt::translateStmt(), XAIFStrings, xlate_CFG_BasicBlock(), and xlate_CFG_BranchMulti().
Referenced by xlate_CFG().

| void xaif2whirl::xlate_Scope | ( | const xercesc::DOMElement * | elem, |
| PUXlationContext & | ctxt | ||
| ) |
Definition at line 1729 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_Vid_x(), xaif2whirl::XercesStrX::c_str(), fortTkSupport::BaseMap< FromTy, ToTy >::Find(), xaif2whirl::PUXlationContext::findSymTab(), GetFirstChildElement(), GetSymTabId(), PU_SetGlobalState(), xaif2whirl::PUXlationContext::setWNIdToWNMap(), WNIdToWNTableMap, XAIFStrings, and xlate_SymbolTable().
Referenced by xaif2whirl::XAIF_SAXHandler::endElement().

| static void xaif2whirl::xlate_Symbol | ( | const xercesc::DOMElement * | elem, |
| const char * | scopeId, | ||
| PU_Info * | pu, | ||
| PUXlationContext & | ctxt, | ||
| bool | doTempSymbols | ||
| ) | [static] |
Definition at line 1779 of file xaif2whirl.cxx.
References XAIFStringRepository::attr_symId_x(), XAIFStringRepository::attr_temp_x(), xaif2whirl::XercesStrX::c_str(), ConvertScalarizedRefToActiveType(), ConvertToActiveType(), CreateST(), xaif2whirl::PUXlationContext::findWN(), FORTTK_ASSERT, GetActiveAttr(), GetBoolAttr(), GetSymId(), GetWNId(), xaif2whirl::PUXlationContext::getXAIFSymToSymbolMap(), fortTkSupport::XAIFSymToSymbolMap::Insert(), SexpTags::ST, and XAIFStrings.
Referenced by xlate_SymbolTable().

| static void xaif2whirl::xlate_SymbolTable | ( | const xercesc::DOMElement * | elem, |
| const char * | scopeId, | ||
| PU_Info * | pu, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 1755 of file xaif2whirl.cxx.
References GetChildElement(), GetNextSiblingElement(), and xlate_Symbol().
Referenced by xlate_Scope().

Definition at line 51 of file xaif2whirl.cxx.
Referenced by ConvertToActiveType(), DeclareActiveTypes(), xaif2whirl::AdjustFunctions::doSymbol(), and xaif2whirl::XlateExpression::hasActiveSymbolType().
| TY_IDX xaif2whirl::ActiveTypeTyIdx |
Definition at line 50 of file xaif2whirl.cxx.
Referenced by ConvertStructMemberToActiveType(), ConvertToActiveType(), CreateST(), DeclareActiveTypes(), xaif2whirl::AdjustFunctions::doSymbol(), and xaif2whirl::XlateExpression::hasActiveSymbolType().
Definition at line 30 of file xaif2whirl.h.
Referenced by xaif2whirl::XlateExpression::xlate_ExprOpUsingIntrinsicTable().
Definition at line 85 of file main.cxx.
Referenced by real_main(), and TranslateCFG().
Definition at line 44 of file xaif2whirl.cxx.
Referenced by xaif2whirl::XAIF_SAXHandler::initialize(), TranslateCFG(), and xlate_Scope().