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

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 Documentation

#define MAX_FNAME_LENGTH   256

Definition at line 92 of file ir_walker.c.

Referenced by Get_Irb_File_Name().


Function Documentation

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

Here is the call graph for this function:

char* Host_Format_Parm ( INT  kind,
MEM_PTR  parm 
)

Definition at line 557 of file ir_walker.c.

References buf, BUF_SIZE, ET_SYMTAB, idx, NULL, and ST_name().

Here is the call graph for this function:

void Initialization ( void  )

Definition at line 139 of file ir_walker.c.

Referenced by main().

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

Here is the call graph for this function:

void Process_PU ( PU_Info pu)

Definition at line 146 of file ir_walker.c.

Referenced by process_pu().

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

Here is the call graph for this function:

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

Here is the call graph for this function:

void Signal_Cleanup ( INT  sig)

Definition at line 555 of file ir_walker.c.

References Cleanup_Files(), FALSE, and TRUE.

Here is the call graph for this function:

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

Here is the call graph for this function:


Variable Documentation

Definition at line 559 of file ir_walker.c.

Definition at line 94 of file ir_walker.c.

Definition at line 95 of file ir_walker.c.

Definition at line 106 of file ir_walker.c.

Referenced by process_func(), process_pu(), process_stab(), and process_wn().

Definition at line 98 of file ir_walker.c.

Definition at line 102 of file ir_walker.c.

struct stat statbuf

Definition at line 100 of file ir_walker.c.

Definition at line 96 of file ir_walker.c.

Definition at line 103 of file ir_walker.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines