Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
com_whirlview.cxx File Reference
#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"
Include dependency graph for com_whirlview.cxx:

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 DaVinciDV = NULL
static WNFunc_wn = NULL
static MENU_INFO DV_Menu []

Define Documentation

#define MAXEXPR   5000

Definition at line 69 of file com_whirlview.cxx.

Referenced by Callback::Node_Select().

#define N_DV_MENU   ( sizeof(DV_Menu) / sizeof(DV_Menu[0]) )

Definition at line 266 of file com_whirlview.cxx.

Referenced by dV_view_whirl().


Function Documentation

static void draw_expr ( WN wn) [static]

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().

Here is the call graph for this function:

static void draw_stmt ( WN ) [static]

Referenced by draw_stmt(), and draw_whirl_tree().

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().

Here is the call graph for this function:

void dV_view_whirl ( WN wn,
const char *  title,
BOOL  show_expr,
FILE *  trace_fp 
)
static char* id_str ( WN wn) [static]

Variable Documentation

DaVinci* DV = NULL [static]
MENU_INFO DV_Menu[] [static]
Initial value:
 {
  { "EXPAND", "Expand Subtree", true, 0, NULL }
  
}

Definition at line 262 of file com_whirlview.cxx.

Referenced by dV_view_whirl().

Definition at line 71 of file com_whirlview.cxx.

Referenced by dV_view_whirl().

Definition at line 72 of file com_whirlview.cxx.

Referenced by dV_view_whirl().

WN* Func_wn = NULL [static]

Definition at line 74 of file com_whirlview.cxx.

Referenced by dV_view_whirl(), and Callback::Node_Select().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines