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

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

Function Documentation

BOOL file_exists ( char *  path)

Definition at line 54 of file ir_size.cxx.

References errno, FALSE, stat, and TRUE.

char* Host_Format_Parm ( INT  kind,
MEM_PTR  parm 
)

Definition at line 202 of file ir_size.cxx.

References NULL.

static void ir_size ( char *  input_file,
BOOL  verbose 
) [static]
main ( INT  argc,
char *  argv[] 
)
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]
static void usage ( char *  progname) [static]

Definition at line 153 of file ir_size.cxx.

References exit(), and fprintf().

Here is the call graph for this function:


Variable Documentation

Definition at line 204 of file ir_size.cxx.

INT dg_size = 0 [static]

Definition at line 67 of file ir_size.cxx.

Referenced by ir_size(), and size_of_each_pu().

INT fb_size = 0 [static]

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

INT pref_size = 0 [static]

Definition at line 68 of file ir_size.cxx.

Referenced by ir_size(), and size_of_each_pu().

INT sym_size = 0 [static]

Definition at line 65 of file ir_size.cxx.

Referenced by ir_size(), and size_of_each_pu().

INT wn_size = 0 [static]

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines