Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <stdio.h>
#include <string.h>
#include <vector>
#include "defs.h"
#include "errors.h"
#include "srcpos.h"
#include "opcode.h"
#include "wn.h"
#include "wn_simp.h"
#include "DaVinci.h"
#include "wb_util.h"
#include "com_whirlview.h"
#include "fb_whirl.h"
Go to the source code of this file.
Classes | |
class | Callback |
Defines | |
#define | MAXEXPR 5000 |
#define | N_DV_MENU ( sizeof(DV_Menu) / sizeof(DV_Menu[0]) ) |
Functions | |
static void | draw_expr (WN *) |
static void | draw_stmt (WN *) |
static char * | id_str (WN *wn) |
static void | draw_stmt (WN *wn, BOOL show_expr) |
static void | draw_whirl_tree (WN *wn, BOOL show_expr) |
void | dV_view_whirl (WN *wn, const char *title, BOOL show_expr, FILE *trace_fp) |
Variables | |
static MEM_POOL | DV_wv_mempool |
static BOOL | DV_wv_mempool_init = FALSE |
static DaVinci * | DV = NULL |
static WN * | Func_wn = NULL |
static MENU_INFO | DV_Menu [] |
#define MAXEXPR 5000 |
Definition at line 69 of file com_whirlview.cxx.
Referenced by Callback::Node_Select().
Definition at line 266 of file com_whirlview.cxx.
Referenced by dV_view_whirl().
Definition at line 97 of file com_whirlview.cxx.
References DV, id_str(), DaVinci::Node_Begin(), DaVinci::Node_End(), DaVinci::Out_Edge(), WN_kid(), and WN_kid_count().
Referenced by draw_whirl_tree().
Referenced by draw_stmt(), and draw_whirl_tree().
Definition at line 118 of file com_whirlview.cxx.
References draw_stmt(), DV, FmtAssert, id_str(), DaVinci::Node_Begin(), DaVinci::Node_End(), NS_ELLIPSE, NS_RHOMBUS, OPC_BLOCK, OPC_COMPGOTO, OPC_DO_LOOP, OPC_IF, OPC_XGOTO, OPCODE_is_expression(), OPCODE_is_scf(), OPCODE_is_stmt(), DaVinci::Out_Edge(), NODE_TYPE::Shape(), WN_do_body, WN_else, WN_end, WN_first(), WN_if_test, WN_index, WN_kid(), WN_kid_count(), WN_next(), WN_opcode(), WN_start, WN_step, and WN_then.
static void draw_whirl_tree | ( | WN * | wn, |
BOOL | show_expr | ||
) | [static] |
Definition at line 204 of file com_whirlview.cxx.
References draw_expr(), draw_stmt(), DV, FALSE, FmtAssert, DaVinci::Graph_Begin(), DaVinci::Graph_End(), OPCODE_is_expression(), OPCODE_is_scf(), OPCODE_is_stmt(), and WN_opcode().
Referenced by dV_view_whirl().
void dV_view_whirl | ( | WN * | wn, |
const char * | title, | ||
BOOL | show_expr, | ||
FILE * | trace_fp | ||
) |
Definition at line 271 of file com_whirlview.cxx.
References CXX_DELETE, CXX_NEW, draw_whirl_tree(), DV, DV_Menu, DV_wv_mempool, DV_wv_mempool_init, DaVinci::enabled(), DaVinci::Event_Loop(), FALSE, FmtAssert, fprintf(), Func_wn, getenv(), MEM_POOL_Initialize, DaVinci::Menu_Create(), N_DV_MENU, NULL, OPR_FUNC_ENTRY, DaVinci::Title(), TRUE, and WN_operator().
Definition at line 80 of file com_whirlview.cxx.
References len, OPCODE_mapcat(), strcpy, WN_map_id(), and WN_opcode().
Referenced by complete_intrinsic_definition(), draw_expr(), draw_stmt(), enter_intrinsic_info(), init_parse_prog_unit(), Callback::Menu_Select(), and parse_deref().
Definition at line 73 of file com_whirlview.cxx.
Referenced by draw_expr(), draw_stmt(), draw_whirl_tree(), dV_view_whirl(), and Callback::Edge_Select().
{ { "EXPAND", "Expand Subtree", true, 0, NULL } }
Definition at line 262 of file com_whirlview.cxx.
Referenced by dV_view_whirl().
MEM_POOL DV_wv_mempool [static] |
Definition at line 71 of file com_whirlview.cxx.
Referenced by dV_view_whirl().
BOOL DV_wv_mempool_init = FALSE [static] |
Definition at line 72 of file com_whirlview.cxx.
Referenced by dV_view_whirl().
Definition at line 74 of file com_whirlview.cxx.
Referenced by dV_view_whirl(), and Callback::Node_Select().