Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <elf.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/elf_whirl.h>
#include <algorithm>
#include "defs.h"
#include "x_libgen.h"
#include "pu_info.h"
#include "opcode.h"
#include "wn.h"
#include "ir_bread.h"
#include "err_host.tab"
Go to the source code of this file.
Functions | |
BOOL | file_exists (char *path) |
static void | size_of_each_pu (PU_Info *pu_tree, BOOL verbose) |
static void | print_size (char *name, INT size) |
static void | ir_size (char *input_file, BOOL verbose) |
static void | usage (char *progname) |
main (INT argc, char *argv[]) | |
void | Signal_Cleanup (INT sig) |
char * | Host_Format_Parm (INT kind, MEM_PTR parm) |
Variables | |
static void * | handle |
static INT | sym_size = 0 |
static INT | wn_size = 0 |
static INT | dg_size = 0 |
static INT | pref_size = 0 |
static INT | fb_size = 0 |
INT8 | Debug_Level = 0 |
BOOL file_exists | ( | char * | path | ) |
char* Host_Format_Parm | ( | INT | kind, |
MEM_PTR | parm | ||
) |
Definition at line 202 of file ir_size.cxx.
References NULL.
Definition at line 107 of file ir_size.cxx.
References dg_size, EC_IR_Scn_Read, ErrMsg(), fb_size, Free_Input_Info(), Get_Elf_Section_Size(), handle, NULL, Open_Input_Info(), pref_size, print_size(), SHT_MIPS_WHIRL, size_of_each_pu(), Sizeof_PU_Infos(), sym_size, WN_get_PU_Infos(), wn_size, WT_CONSTAB, WT_DST, WT_GLOBALS, WT_IPA_SUMMARY, and WT_STRTAB.
Referenced by main().
Definition at line 161 of file ir_size.cxx.
References ERROR_LINE_UNKNOWN, exit(), FALSE, file_exists(), Init_Error_Handler(), ir_size(), MEM_Initialize(), NULL, Phases, Set_Error_File(), Set_Error_Line(), Set_Error_Tables(), TRUE, usage(), and ux_basename().
static void print_size | ( | char * | name, |
INT | size | ||
) | [static] |
Definition at line 100 of file ir_size.cxx.
Referenced by ir_size().
void Signal_Cleanup | ( | INT | sig | ) |
Definition at line 200 of file ir_size.cxx.
static void size_of_each_pu | ( | PU_Info * | pu_tree, |
BOOL | verbose | ||
) | [static] |
Definition at line 72 of file ir_size.cxx.
References dg_size, fb_size, NULL, pref_size, PU_Info_child, PU_Info_next, PU_Info_subsect_size, sym_size, wn_size, WT_DEPGRAPH, WT_FEEDBACK, WT_PREFETCH, WT_SYMTAB, and WT_TREE.
Referenced by ir_size().
static void usage | ( | char * | progname | ) | [static] |
Definition at line 153 of file ir_size.cxx.
References exit(), and fprintf().
INT8 Debug_Level = 0 |
Definition at line 204 of file ir_size.cxx.
Definition at line 67 of file ir_size.cxx.
Referenced by ir_size(), and size_of_each_pu().
Definition at line 69 of file ir_size.cxx.
Referenced by ir_size(), and size_of_each_pu().
void* handle [static] |
Definition at line 51 of file ir_size.cxx.
Referenced by ir_put_wn(), ir_size(), and Validate_Pointer_Map().
Definition at line 68 of file ir_size.cxx.
Referenced by ir_size(), and size_of_each_pu().
Definition at line 65 of file ir_size.cxx.
Referenced by ir_size(), and size_of_each_pu().
Definition at line 66 of file ir_size.cxx.
Referenced by fei_control_list(), ir_size(), Max_Arg_Area_Bytes(), and size_of_each_pu().