OpenADFortTk (basic)
src/whirl2xaif/wn2xaif.cxx File Reference
#include <alloca.h>
#include <stdlib.h>
#include <string>
#include <set>
#include <vector>
#include "OpenAnalysis/CFG/ManagerCFG.hpp"
#include "Open64IRInterface/Open64BasicTypes.h"
#include "Open64IRInterface/SymTab.h"
#include "Open64IRInterface/Open64IRInterface.hpp"
#include "wn2xaif.i"
#include "wn2xaif.h"
#include "wn2xaif_stmt.h"
#include "wn2xaif_expr.h"
#include "wn2xaif_mem.h"
#include "wn2xaif_io.h"
#include "st2xaif.h"
#include "ty2xaif.h"
#include "Args.h"
Include dependency graph for wn2xaif.cxx:

Go to the source code of this file.

Classes

struct  whirl2xaif::lt_CFGEdge
class  whirl2xaif::LOC_INFO
class  whirl2xaif::SearchSymbolTableEntry

Namespaces

namespace  whirl2xaif

Typedefs

typedef void(* whirl2xaif::Handler )(xml::ostream &, WN *, PUXlationContext &)
typedef std::set< ST * > whirl2xaif::SymbolPointerSet

Functions

static void whirl2xaif::xlate_EntryPoint (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
static set< OA::SymHandle > * whirl2xaif::GetParamSymHandleSet (WN *wn_pu)
static const char * whirl2xaif::xlate_intent (WN *parm)
static void whirl2xaif::xlate_BBStmt (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
static void whirl2xaif::xlate_CFCondition (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
static void whirl2xaif::xlate_LoopInitialization (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
static void whirl2xaif::xlate_LoopUpdate (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
static void whirl2xaif::DumpCFGraphEdge (xml::ostream &xos, UINT eid, OA::OA_ptr< OA::CFG::EdgeInterface > edge)
static const char * whirl2xaif::GetLoopReversalType (OA::OA_ptr< OA::CFG::CFGInterface > cfg, OA::OA_ptr< OA::CFG::NodeInterface > n)
static std::string whirl2xaif::GetIDsForStmtsInBB (OA::OA_ptr< OA::CFG::NodeInterface > node, PUXlationContext &ctxt)
pair< bool, INT64 > whirl2xaif::GetCFGEdgeCondVal (const OA::OA_ptr< OA::CFG::EdgeInterface > edge)
void whirl2xaif::initOurHandlerTable ()
void whirl2xaif::TranslateWN (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
void whirl2xaif::xlate_FUNC_ENTRY (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
void whirl2xaif::xlate_ALTENTRY (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
void whirl2xaif::xlate_ignore (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
void whirl2xaif::xlate_STRCTFLD (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
void whirl2xaif::xlate_unknown (xml::ostream &xos, WN *wn, PUXlationContext &ctxt)
bool whirl2xaif::IsActiveStmt (WN *wn, PUXlationContext &ctxt)
void whirl2xaif::xlate_PregRef (xml::ostream &xos, ST *st, TY_IDX preg_ty, PREG_IDX preg_idx, PUXlationContext &ctxt)
void whirl2xaif::xlate_SymRef (xml::ostream &xos, ST *base_st, TY_IDX baseptr_ty, TY_IDX ref_ty, STAB_OFFSET offset, PUXlationContext &ctxt)
void whirl2xaif::xlate_MemRef (xml::ostream &xos, WN *addr, TY_IDX addr_ty, TY_IDX ref_ty, STAB_OFFSET offset, PUXlationContext &ctxt)
WN_OFFSET whirl2xaif::WN2F_Sum_Offsets (WN *addr)
void whirl2xaif::WN2F_Address_Of (xml::ostream &xos)
DGraphNodeVec * whirl2xaif::SortDGraphNodes (OA::OA_ptr< OA::DGraph::DGraphInterface > g)
DGraphEdgeVec * whirl2xaif::SortDGraphEdges (OA::OA_ptr< OA::DGraph::DGraphInterface > g)
CFGEdgeVec * whirl2xaif::SortCFGEdges (OA::OA_ptr< OA::CFG::CFGInterface > g)
void whirl2xaif::DumpGraphEdge (xml::ostream &xos, const char *nm, UINT eid, UINT srcid, UINT targid, UINT pos)
void whirl2xaif::xlate_SideEffectLocationPrint (ST *st, SymbolPointerSet &coveredSymbols, fortTkSupport::SymTabId scopeid, xml::ostream &xos)
void whirl2xaif::xlate_SideEffectNamedLocation (OA::OA_ptr< OA::NamedLoc > theNamedLoc, SymbolPointerSet &coveredSymbols, xml::ostream &xos, WN *wn, PUXlationContext &ctxt, OA::OA_ptr< OA::SymHandleIterator > formalArgSymHandleI)
void whirl2xaif::xlate_SideEffectEntry (OA::OA_ptr< OA::Location > theTopLocation, OA::OA_ptr< OA::Location > theLocation, SymbolPointerSet &coveredSymbols, xml::ostream &xos, WN *wn, PUXlationContext &ctxt, OA::OA_ptr< OA::SymHandleIterator > formalArgSymHandleI)
static void whirl2xaif::findVarSymbolsInTree (WN *wn, SymbolPointerSet &requiredSymbols)
static void whirl2xaif::findRequiredProgramSymbols (WN *wn, PUXlationContext &ctxt, SymbolPointerSet &requiredTempSymbols, SymbolPointerSet &requiredProgramSymbols)
static void whirl2xaif::findRequiredSymbolsInSymbolTable (SYMTAB_IDX symtab_lvl, PUXlationContext &ctxt, SymbolPointerSet &requiredSymbols)

Variables

static std::map< int, Handler > whirl2xaif::ourHandlerTable
static bool whirl2xaif::ourHandlerTableInit = false
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines