OpenADFortTk (including Open64 and OpenAnalysis references)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
whirl2sexp Namespace Reference

Namespaces

 XlateFlags
 

Classes

class  xlate_SYMTAB_entry_op
 

Enumerations

enum  status { good, bad }
 

Functions

void TranslateGlobalSymbolTables (sexp::ostream &sos, int flags=0)
 
void TranslateLocalSymbolTables (sexp::ostream &sos, SYMTAB_IDX stab_lvl, int flags=0)
 
void xlate_FILE_INFO (sexp::ostream &sos)
 
void xlate_ST_TAB (sexp::ostream &sos, SYMTAB_IDX stab_lvl)
 
void xlate_ST_TAB (sexp::ostream &sos, const SCOPE &scope)
 
void xlate_ST_ATTR_TAB (sexp::ostream &sos, SYMTAB_IDX stab_lvl)
 
void xlate_PU_TAB (sexp::ostream &sos)
 
void xlate_TY_TAB (sexp::ostream &sos)
 
void xlate_FLD_TAB (sexp::ostream &sos)
 
void xlate_ARB_TAB (sexp::ostream &sos)
 
void xlate_TYLIST_TAB (sexp::ostream &sos)
 
void xlate_TCON_TAB (sexp::ostream &sos)
 
void xlate_TCON_STR_TAB (sexp::ostream &sos)
 
void xlate_INITO_TAB (sexp::ostream &sos, SYMTAB_IDX stab_lvl)
 
void xlate_INITV_TAB (sexp::ostream &sos)
 
void xlate_BLK_TAB (sexp::ostream &sos)
 
void xlate_STR_TAB (sexp::ostream &sos)
 
void xlate_LABEL_TAB (sexp::ostream &sos, SYMTAB_IDX stab_lvl)
 
void xlate_PREG_TAB (sexp::ostream &sos, SYMTAB_IDX stab_lvl)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, ST *st)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, ST_ATTR *sta)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, PU *pu)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, TY *ty)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, FLD *fld)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, ARB *arb)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, TYLIST *tyl)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, TCON *tcon)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, INITO *inito)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, INITV *initv)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, BLK *blk)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, LABEL *lbl)
 
void xlate_SYMTAB_entry (sexp::ostream &sos, UINT32 idx, PREG *preg)
 
void xlate_SYMTAB_entry_TCON_STR (sexp::ostream &sos, UINT32 idx)
 
void xlate_SYMTAB_entry_STR (sexp::ostream &sos, UINT32 idx)
 
void TranslateIR (std::ostream &os, PU_Info *pu_forest, int flags=0)
 
void TranslatePUTree (std::ostream &os, PU_Info *pu_tree, int flags=0)
 
void TranslatePU (std::ostream &os, PU_Info *pu, int flags=0)
 
void TranslateWN (std::ostream &os, WN *wn, int flags=0)
 
void DumpIR (PU_Info *pu_forest, int flags)
 
void DumpPUTree (PU_Info *pu_tree, int flags)
 
void DumpPU (PU_Info *pu, int flags)
 
void DumpWN (WN *wn, int flags)
 
whirl2sexp::status TranslateWN (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status TranslateWNChildren (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_FUNC_ENTRY (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_BLOCK (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_REGION (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_structured_cf (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_IMPLIED_DO (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_GOTOx_LABEL (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_multiBR (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_CASEGOTO (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_AGOTO (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_ALTENTRY (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_condBR (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_RETURNx (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_xCALL (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_IO (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_misc_stmt (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_xPRAGMA (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_LDA_LDMA (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_LDID_STID (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_IDNAME (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_xLOADx_xSTOREx (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_PSTID (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_PSTORE (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_STRCTFLD (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_ARRAYx (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_CVT_CVTL (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_TAS (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_CONST (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_INTCONST (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_UnaryOp (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_PARM (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_ALLOCA (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_BinaryOp (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_TernaryOp (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_IO_ITEM (sexp::ostream &sos, WN *wn)
 
whirl2sexp::status xlate_unknown (sexp::ostream &sos, WN *wn)
 

Enumeration Type Documentation

Enumerator
good 
bad 

Definition at line 8 of file whirl2sexp.i.

Function Documentation

void whirl2sexp::DumpIR ( PU_Info pu_forest,
int  flags 
)

Definition at line 74 of file whirl2sexp.cxx.

References sexp2whirl::TranslateIR().

Here is the call graph for this function:

void whirl2sexp::DumpPU ( PU_Info pu,
int  flags 
)

Definition at line 86 of file whirl2sexp.cxx.

References TranslatePU().

Here is the call graph for this function:

void whirl2sexp::DumpPUTree ( PU_Info pu_tree,
int  flags 
)

Definition at line 80 of file whirl2sexp.cxx.

References TranslatePUTree().

Here is the call graph for this function:

void whirl2sexp::DumpWN ( WN wn,
int  flags 
)

Definition at line 92 of file whirl2sexp.cxx.

References sexp2whirl::TranslateWN().

Here is the call graph for this function:

void whirl2sexp::TranslateIR ( std::ostream &  os,
PU_Info pu_forest,
int  flags = 0 
)

Definition at line 37 of file whirl2sexp.cxx.

References GenHeader(), and xlate_IR().

Referenced by real_main().

Here is the call graph for this function:

void whirl2sexp::TranslateLocalSymbolTables ( sexp::ostream sos,
SYMTAB_IDX  stab_lvl,
int  flags = 0 
)

Definition at line 91 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), SexpTags::PU_SYMTAB, xlate_INITO_TAB(), xlate_LABEL_TAB(), xlate_PREG_TAB(), xlate_ST_ATTR_TAB(), and xlate_ST_TAB().

Referenced by xlate_PU().

Here is the call graph for this function:

void whirl2sexp::TranslatePU ( std::ostream &  os,
PU_Info pu,
int  flags = 0 
)

Definition at line 55 of file whirl2sexp.cxx.

References GenHeader(), and xlate_PU().

Referenced by DumpPU().

Here is the call graph for this function:

void whirl2sexp::TranslatePUTree ( std::ostream &  os,
PU_Info pu_tree,
int  flags = 0 
)

Definition at line 46 of file whirl2sexp.cxx.

References GenHeader(), and xlate_PUTree().

Referenced by DumpPUTree().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::TranslateWN ( sexp::ostream sos,
WN wn 
)

Definition at line 27 of file wn2sexp.cxx.

References sexp::BegList(), sexp::EndList(), FORTTK_DEVMSG, good, OPERATOR_name(), and WN_operator().

Here is the call graph for this function:

void whirl2sexp::TranslateWN ( std::ostream &  os,
WN wn,
int  flags = 0 
)
whirl2sexp::status whirl2sexp::xlate_AGOTO ( sexp::ostream sos,
WN wn 
)

Definition at line 410 of file wn2sexp.cxx.

References FORTTK_ASSERT, FORTTK_DIE, good, OPR_AGOTO, fortTkSupport::Diagnostics::UnexpectedInput, fortTkSupport::Diagnostics::Unimplemented, and WN_operator().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_ALLOCA ( sexp::ostream sos,
WN wn 
)

Definition at line 947 of file wn2sexp.cxx.

References FORTTK_ASSERT, FORTTK_DIE, good, OPR_ALLOCA, fortTkSupport::Diagnostics::UnexpectedInput, fortTkSupport::Diagnostics::Unimplemented, and WN_operator().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_ALTENTRY ( sexp::ostream sos,
WN wn 
)

Definition at line 422 of file wn2sexp.cxx.

References FORTTK_ASSERT, FORTTK_DIE, good, OPR_ALTENTRY, fortTkSupport::Diagnostics::UnexpectedInput, fortTkSupport::Diagnostics::Unimplemented, and WN_operator().

Here is the call graph for this function:

void whirl2sexp::xlate_ARB_TAB ( sexp::ostream sos)

Definition at line 202 of file symtab2sexp.cxx.

References SexpTags::ARB_TAB, Arb_Table, sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), and For_all().

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_BinaryOp ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_BLK_TAB ( sexp::ostream sos)

Definition at line 279 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), SexpTags::BLK_TAB, Blk_Table, sexp::EndLine(), sexp::EndList(), and For_all().

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_BLOCK ( sexp::ostream sos,
WN wn 
)
whirl2sexp::status whirl2sexp::xlate_CASEGOTO ( sexp::ostream sos,
WN wn 
)
whirl2sexp::status whirl2sexp::xlate_CONST ( sexp::ostream sos,
WN wn 
)
whirl2sexp::status whirl2sexp::xlate_CVT_CVTL ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_FILE_INFO ( sexp::ostream sos)
void whirl2sexp::xlate_FLD_TAB ( sexp::ostream sos)

Definition at line 193 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), SexpTags::FLD_TAB, Fld_Table, and For_all().

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_IDNAME ( sexp::ostream sos,
WN wn 
)
whirl2sexp::status whirl2sexp::xlate_IMPLIED_DO ( sexp::ostream sos,
WN wn 
)

Definition at line 335 of file wn2sexp.cxx.

References FORTTK_ASSERT, FORTTK_DIE, good, OPR_IMPLIED_DO, fortTkSupport::Diagnostics::UnexpectedInput, fortTkSupport::Diagnostics::Unimplemented, and WN_operator().

Here is the call graph for this function:

void whirl2sexp::xlate_INITO_TAB ( sexp::ostream sos,
SYMTAB_IDX  stab_lvl 
)

Definition at line 261 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::INITO_TAB, and Inito_Table.

Referenced by TranslateGlobalSymbolTables(), and TranslateLocalSymbolTables().

Here is the call graph for this function:

void whirl2sexp::xlate_INITV_TAB ( sexp::ostream sos)

Definition at line 270 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::INITV_TAB, and Initv_Table.

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_INTCONST ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_LABEL_TAB ( sexp::ostream sos,
SYMTAB_IDX  stab_lvl 
)

Definition at line 313 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all_entries(), SexpTags::LABEL_TAB, and Scope_tab.

Referenced by TranslateLocalSymbolTables().

Here is the call graph for this function:

void whirl2sexp::xlate_PREG_TAB ( sexp::ostream sos,
SYMTAB_IDX  stab_lvl 
)

Definition at line 325 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all_entries(), SexpTags::PREG_TAB, and Scope_tab.

Referenced by TranslateLocalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_PSTID ( sexp::ostream sos,
WN wn 
)
whirl2sexp::status whirl2sexp::xlate_PSTORE ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_PU_TAB ( sexp::ostream sos)

Definition at line 175 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::PU_TAB, and Pu_Table.

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_REGION ( sexp::ostream sos,
WN wn 
)

Definition at line 298 of file wn2sexp.cxx.

References FORTTK_ASSERT, FORTTK_DIE, good, OPR_REGION, fortTkSupport::Diagnostics::UnexpectedInput, fortTkSupport::Diagnostics::Unimplemented, and WN_operator().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_RETURNx ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_ST_ATTR_TAB ( sexp::ostream sos,
SYMTAB_IDX  stab_lvl 
)

Definition at line 157 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::ST_ATTR_TAB, and St_Attr_Table.

Referenced by TranslateGlobalSymbolTables(), and TranslateLocalSymbolTables().

Here is the call graph for this function:

void whirl2sexp::xlate_ST_TAB ( sexp::ostream sos,
SYMTAB_IDX  stab_lvl 
)

Definition at line 148 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::ST_TAB, and St_Table.

Referenced by TranslateGlobalSymbolTables(), and TranslateLocalSymbolTables().

Here is the call graph for this function:

void whirl2sexp::xlate_ST_TAB ( sexp::ostream sos,
const SCOPE scope 
)

Definition at line 166 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::ST_TAB, and SCOPE::st_tab.

Here is the call graph for this function:

void whirl2sexp::xlate_STR_TAB ( sexp::ostream sos)

Definition at line 288 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), buf, sexp::EndLine(), sexp::EndList(), idx, Index_To_Str(), SexpTags::STR_TAB, STR_Table_Size(), and xlate_SYMTAB_entry_STR().

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
ST_ATTR sta 
)

Definition at line 397 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndList(), GenSexpSym(), ST_ATTR_kind(), ST_ATTR_Kind_Name(), ST_ATTR_reg_id(), ST_ATTR_st_idx(), and val.

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
PU pu 
)
void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
FLD fld 
)
void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
TYLIST tyl 
)

Definition at line 597 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndList(), GenSexpTy(), and TYLIST_type().

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
TCON tcon 
)
void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
INITO inito 
)

Definition at line 642 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndList(), GenSexpSym(), INITO::st_idx, and INITO::val.

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
INITV initv 
)

Definition at line 658 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndList(), InitvKind_Name(), INITV::kind, INITV::next, INITV::Ofst(), INITV::repeat1, and INITV::St().

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
BLK blk 
)

Definition at line 684 of file symtab2sexp.cxx.

References BLK::Align(), sexp::Atom(), sexp::BegList(), BLK_FLAGS_To_Str(), sexp::EndList(), BLK::Flags(), GenSexpFlg(), BLK::Scninfo_idx(), BLK::Section_idx(), and BLK::Size().

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
LABEL lbl 
)
void whirl2sexp::xlate_SYMTAB_entry ( sexp::ostream sos,
UINT32  idx,
PREG preg 
)

Definition at line 735 of file symtab2sexp.cxx.

References sexp::IOFlags::A_DQUOTE, sexp::Atom(), sexp::BegList(), sexp::EndList(), PREG_name(), and PREG_name_idx().

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry_STR ( sexp::ostream sos,
UINT32  idx 
)

Definition at line 766 of file symtab2sexp.cxx.

References sexp::IOFlags::A_DQUOTE, sexp::Atom(), sexp::BegList(), sexp::EndList(), and Index_To_Str().

Referenced by xlate_STR_TAB().

Here is the call graph for this function:

void whirl2sexp::xlate_SYMTAB_entry_TCON_STR ( sexp::ostream sos,
UINT32  idx 
)

Definition at line 751 of file symtab2sexp.cxx.

References sexp::IOFlags::A_DQUOTE, sexp::Atom(), sexp::BegList(), sexp::EndList(), and Index_to_char_array().

Referenced by xlate_TCON_STR_TAB().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_TAS ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_TCON_STR_TAB ( sexp::ostream sos)
void whirl2sexp::xlate_TCON_TAB ( sexp::ostream sos)

Definition at line 220 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::TCON_TAB, and Tcon_Table.

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_TernaryOp ( sexp::ostream sos,
WN wn 
)
void whirl2sexp::xlate_TY_TAB ( sexp::ostream sos)

Definition at line 184 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::TY_TAB, and Ty_Table.

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

void whirl2sexp::xlate_TYLIST_TAB ( sexp::ostream sos)

Definition at line 211 of file symtab2sexp.cxx.

References sexp::Atom(), sexp::BegList(), sexp::EndLine(), sexp::EndList(), For_all(), SexpTags::TYLIST_TAB, and Tylist_Table.

Referenced by TranslateGlobalSymbolTables().

Here is the call graph for this function:

whirl2sexp::status whirl2sexp::xlate_UnaryOp ( sexp::ostream sos,
WN wn 
)
whirl2sexp::status whirl2sexp::xlate_unknown ( sexp::ostream sos,
WN wn 
)

Definition at line 1000 of file wn2sexp.cxx.

References sexp::BegComment(), sexp::EndComment(), FORTTK_DEVMSG, good, OPERATOR_name(), fortTkSupport::Diagnostics::UnexpectedOpr, and WN_operator().

Here is the call graph for this function: