Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <elf.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <search.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "wn.h"
#include "stab.h"
#include "aux_stab.h"
#include "irbdata.h"
#include "wintrinsic.h"
#include "glob.h"
#include "pu_info.h"
#include "ir_bread.h"
#include "ir_bwrite.h"
#include "file_util.h"
Go to the source code of this file.
Defines | |
#define | MAX_FNAME_LENGTH 256 |
Functions | |
void | Initialization (void) |
void | Process_PU (PU_Info *pu) |
void | Process_STAB (SYMTAB *stab) |
void | Process_ST (ST *st) |
void | Process_TY (TY *st) |
void | Process_WN (WN *wn) |
void | Termination (void) |
static void | Usage (void) |
static INT32 | Get_Irb_File_Name (INT argc, char *argv[]) |
static void | process_stab (SYMTAB *stab) |
static void | process_wn (WN *wn) |
static void | process_func (WN *wn) |
static void | process_pu (PU_Info *pu_tree) |
void | main (INT argc, char *argv[], char *envp[]) |
void | Signal_Cleanup (INT sig) |
char * | Host_Format_Parm (INT kind, MEM_PTR parm) |
Variables | |
char | filename_in [MAX_FNAME_LENGTH] |
char | filename_out [MAX_FNAME_LENGTH] |
char | temp_filename [MAX_FNAME_LENGTH+16] |
char * | Irb_File_Name_out = NULL |
struct stat | statbuf |
BOOL | oflag = FALSE |
BOOL | vflag = FALSE |
INT32 | indent = 0 |
INT32 | indent_inc = 2 |
INT8 | Debug_Level = 0 |
#define MAX_FNAME_LENGTH 256 |
Definition at line 92 of file ir_walker.c.
Referenced by Get_Irb_File_Name().
static INT32 Get_Irb_File_Name | ( | INT | argc, |
char * | argv[] | ||
) | [static] |
Definition at line 226 of file ir_walker.c.
References filename_in, filename_out, fprintf(), Irb_File_Name, Irb_File_Name_out, MAX_FNAME_LENGTH, oflag, strcpy, TRUE, and vflag.
Referenced by main().
char* Host_Format_Parm | ( | INT | kind, |
MEM_PTR | parm | ||
) |
void Initialization | ( | void | ) |
Definition at line 139 of file ir_walker.c.
Referenced by main().
Definition at line 469 of file ir_walker.c.
References Close_Output_Info(), ERROR_LINE_UNKNOWN, exit(), filename_in, filename_out, fprintf(), Get_Irb_File_Name(), getpid, Init_Error_Handler(), Init_Operator_To_Opcode_Table(), Initialization(), Irb_File_Name, MEM_Initialize(), NULL, oflag, Open_Input_Info(), Open_Output_Info(), process_pu(), process_stab(), Read_Global_Info(), Set_Error_File(), Set_Error_Line(), Set_Error_Phase(), stat, statbuf, strcpy, temp_filename, Termination(), Usage(), and Write_Global_Info().
static void process_func | ( | WN * | wn | ) | [static] |
Definition at line 395 of file ir_walker.c.
References indent, indent_inc, process_wn(), ST_name(), vflag, and WN_st().
Referenced by process_pu().
void Process_PU | ( | PU_Info * | pu | ) |
Definition at line 146 of file ir_walker.c.
Referenced by process_pu().
static void process_pu | ( | PU_Info * | pu_tree | ) | [static] |
Definition at line 424 of file ir_walker.c.
References Current_PU_Info, Free_Local_Info(), indent, indent_inc, MEM_POOL_Pop, MEM_POOL_Push, MEM_pu_nz_pool_ptr, NULL, process_func(), Process_PU(), process_stab(), PU_Info_child, PU_Info_next, PU_Info_proc_sym, PU_Info_symtab_ptr, PU_Info_tree_ptr, Read_Local_Info(), ST_name(), vflag, and Write_PU_Info().
Referenced by main().
void Process_ST | ( | ST * | st | ) |
Definition at line 160 of file ir_walker.c.
Referenced by process_stab().
void Process_STAB | ( | SYMTAB * | stab | ) |
Definition at line 153 of file ir_walker.c.
Referenced by process_stab().
static void process_stab | ( | SYMTAB * | stab | ) | [static] |
Definition at line 303 of file ir_walker.c.
References indent, indent_inc, NULL, Process_ST(), Process_STAB(), Process_TY(), ST_name(), TY_name(), and vflag.
Referenced by main(), and process_pu().
void Process_TY | ( | TY * | st | ) |
Definition at line 167 of file ir_walker.c.
Referenced by process_stab().
void Process_WN | ( | WN * | wn | ) |
Definition at line 174 of file ir_walker.c.
Referenced by process_wn().
static void process_wn | ( | WN * | wn | ) | [static] |
Definition at line 354 of file ir_walker.c.
References indent, indent_inc, OPC_BLOCK, OPCODE_name(), Process_WN(), vflag, WN_first(), WN_kid(), WN_kid_count(), WN_next(), and WN_opcode().
Referenced by process_func().
void Signal_Cleanup | ( | INT | sig | ) |
Definition at line 555 of file ir_walker.c.
References Cleanup_Files(), FALSE, and TRUE.
void Termination | ( | void | ) |
Definition at line 181 of file ir_walker.c.
Referenced by main().
static void Usage | ( | void | ) | [static] |
Definition at line 197 of file ir_walker.c.
References fprintf().
Referenced by main().
INT8 Debug_Level = 0 |
Definition at line 559 of file ir_walker.c.
char filename_in[MAX_FNAME_LENGTH] |
Definition at line 94 of file ir_walker.c.
char filename_out[MAX_FNAME_LENGTH] |
Definition at line 95 of file ir_walker.c.
Definition at line 105 of file ir_walker.c.
Referenced by dump_cn_tree(), dump_io_type_code_ntry(), dump_ir_ntry(), print_attr_name(), print_const_entry(), print_Dv_Whole_Def_Opr(), print_list(), print_mp_dir_opr(), print_open_mp_dir_opr(), process_func(), process_pu(), process_stab(), process_wn(), and Visit_State().
INT32 indent_inc = 2 |
Definition at line 106 of file ir_walker.c.
Referenced by process_func(), process_pu(), process_stab(), and process_wn().
char* Irb_File_Name_out = NULL |
Definition at line 98 of file ir_walker.c.
Definition at line 102 of file ir_walker.c.
Definition at line 100 of file ir_walker.c.
char temp_filename[MAX_FNAME_LENGTH+16] |
Definition at line 96 of file ir_walker.c.
Definition at line 103 of file ir_walker.c.