Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cwh_pdgcs.cxx File Reference
#include "defs.h"
#include "config.h"
#include "config_opt.h"
#include "glob.h"
#include "stab.h"
#include "strtab.h"
#include "wn.h"
#include "elf.h"
#include "pu_info.h"
#include <sys/types.h>
#include "ir_reader.h"
#include "ir_bwrite.h"
#include "cleanUpWhirl.h"
#include "file_util.h"
#include "tracing.h"
#include "x_libgen.h"
#include "i_cvrt.h"
#include "cwh_defines.h"
#include "cwh_addr.h"
#include "cwh_dst.h"
#include "cwh_data.h"
#include "cwh_mkdepend.h"
#include "cwh_stmt.h"
#include "cwh_preg.h"
#include "cwh_stab.h"
#include "cwh_auxst.h"
#include "cwh_stk.h"
#include "cwh_block.h"
#include "sgi_cmd_line.h"
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
Include dependency graph for cwh_pdgcs.cxx:

Go to the source code of this file.

Defines

#define IRB_FILE_EXTENSION   ".B"
#define DSTDUMP_FILE_EXTENSION   ".fe.dst"

Functions

static PU_Infocwh_pdgcs_pu_mem (void)
static void update_rii_file (void)
static void delete_rii_file (void)
void PDGCS_initialize (LANG language_code, INT32 flags, char *cmplr_name, char *cmplr_rel, char *code_file_name, char *list_file_name, INT32 trunc_bits, INT32 debug_opts, char *src_path_name, char *cif_file_name, char *debug_file_name, FILE *debug_file, FILE *cif_file, char *src_fname, char *cwd, INT32 n_pes, INT32 meta_test)
void PDGCS_comp_unit (char *comp_unit_name, INT32 module_node)
void PDGCS_new_proc (INT32 ir_count, INTPTR func_st_idx, INT32 alt_entry_count, INT32 scalar_opt_level, INT32 vector_opt_level, INT32 task_opt_level, INT32 opt_flags, INT32 user_mobes, INT32 user_sades, INT32 lineno, INT32 meta_opt_level, INT32 ismodule)
void fei_proc_body (INT32 lineno)
void PDGCS_do_proc (void)
void PDGCS_end_procs (INT32 *code_size, INT32 *data_size)
void PDGCS_terminate (void)
static void skip_old_rii_controls (FILE *f)

Variables

static char * source_file = __FILE__
INT32 cwh_assign_label_id
static BOOL Generate_IR = TRUE
static BOOL FE_Write_Binary = TRUE
static PU_InfoPU_Tree_Root
static PU_InfoPU_Current
static PU_InfoPU_Parent
static MEM_POOL map_mem_pool_s
static MEM_POOLmap_mem_pool = &map_mem_pool_s

Define Documentation

#define DSTDUMP_FILE_EXTENSION   ".fe.dst"

Definition at line 112 of file cwh_pdgcs.cxx.

Referenced by PDGCS_initialize().

#define IRB_FILE_EXTENSION   ".B"

Definition at line 111 of file cwh_pdgcs.cxx.

Referenced by PDGCS_initialize().


Function Documentation

static PU_Info * cwh_pdgcs_pu_mem ( void  ) [static]

Definition at line 548 of file cwh_pdgcs.cxx.

References FE_Mempool, PU_Info_init(), TYPE_MEM_POOL_ALLOC, and WN_Mem_Push().

Referenced by PDGCS_new_proc().

Here is the call graph for this function:

static void delete_rii_file ( void  ) [static]

Definition at line 608 of file cwh_pdgcs.cxx.

References rii_file_name, and unlink.

Referenced by PDGCS_initialize().

void fei_proc_body ( INT32  lineno)

Definition at line 384 of file cwh_pdgcs.cxx.

References CURRENT_SYMTAB, cwh_stab_emit_commons_and_equivalences(), cwh_stab_set_tylist_for_entries(), cwh_stmt_init_pu(), PU_Info_proc_sym, and St_Table.

Referenced by cvrt_ir_to_pdg().

Here is the call graph for this function:

void PDGCS_comp_unit ( char *  comp_unit_name,
INT32  module_node 
)

Definition at line 256 of file cwh_pdgcs.cxx.

Referenced by cvrt_proc_to_pdg(), and send_mod_file_name().

void PDGCS_end_procs ( INT32 code_size,
INT32 data_size 
)

Definition at line 492 of file cwh_pdgcs.cxx.

References cwh_stab_end_procs(), and Set_Error_Phase().

Referenced by cvrt_proc_to_pdg(), and send_mod_file_name().

Here is the call graph for this function:

void PDGCS_initialize ( LANG  language_code,
INT32  flags,
char *  cmplr_name,
char *  cmplr_rel,
char *  code_file_name,
char *  list_file_name,
INT32  trunc_bits,
INT32  debug_opts,
char *  src_path_name,
char *  cif_file_name,
char *  debug_file_name,
FILE *  debug_file,
FILE *  cif_file,
char *  src_fname,
char *  cwd,
INT32  n_pes,
INT32  meta_test 
)
void PDGCS_new_proc ( INT32  ir_count,
INTPTR  func_st_idx,
INT32  alt_entry_count,
INT32  scalar_opt_level,
INT32  vector_opt_level,
INT32  task_opt_level,
INT32  opt_flags,
INT32  user_mobes,
INT32  user_sades,
INT32  lineno,
INT32  meta_opt_level,
INT32  ismodule 
)
static void skip_old_rii_controls ( FILE *  f) [static]

Definition at line 577 of file cwh_pdgcs.cxx.

References c, and EOF.

Referenced by update_rii_file().

static void update_rii_file ( void  ) [static]

Definition at line 623 of file cwh_pdgcs.cxx.

References access, EOF, errno, FE_command_line, fprintf(), free(), NULL, rii_file_name, skip_old_rii_controls(), and ux_dirname().

Referenced by PDGCS_initialize().

Here is the call graph for this function:


Variable Documentation

Definition at line 104 of file cwh_pdgcs.cxx.

Referenced by fei_label_addr(), and PDGCS_new_proc().

Definition at line 106 of file cwh_pdgcs.cxx.

Referenced by PDGCS_initialize().

BOOL Generate_IR = TRUE [static]

Definition at line 105 of file cwh_pdgcs.cxx.

Referenced by PDGCS_initialize().

Definition at line 120 of file cwh_pdgcs.cxx.

Definition at line 119 of file cwh_pdgcs.cxx.

PU_Info* PU_Current [static]

Definition at line 108 of file cwh_pdgcs.cxx.

Referenced by PDGCS_do_proc().

PU_Info* PU_Parent [static]

Definition at line 109 of file cwh_pdgcs.cxx.

Referenced by PDGCS_new_proc().

PU_Info* PU_Tree_Root [static]

Definition at line 107 of file cwh_pdgcs.cxx.

char* source_file = __FILE__ [static]

Definition at line 53 of file cwh_pdgcs.cxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines