Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#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>
Go to the source code of this file.
Defines | |
#define | IRB_FILE_EXTENSION ".B" |
#define | DSTDUMP_FILE_EXTENSION ".fe.dst" |
Functions | |
static PU_Info * | cwh_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_Info * | PU_Tree_Root |
static PU_Info * | PU_Current |
static PU_Info * | PU_Parent |
static MEM_POOL | map_mem_pool_s |
static MEM_POOL * | map_mem_pool = &map_mem_pool_s |
#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().
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().
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().
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_do_proc | ( | void | ) |
Definition at line 415 of file cwh_pdgcs.cxx.
References array_name_map, cleanUpPUInfoTree(), cleanUpWhirl, CURRENT_SYMTAB, cwh_data_emit_symbol_inits(), cwh_dst_enter_pu(), cwh_stab_pu_has_globals, cwh_stats_print(), cwh_stk_verify_empty(), cwh_stmt_end_pu(), cwh_stmt_postprocess_pu(), d, fdump_tree(), fei_return(), fprintf(), Get_Trace(), Print_local_symtab(), PU_Current, PU_HAS_GLOBALS, PU_Info_flags, PU_Info_proc_sym, PU_is_mainpu(), Pu_Table, Scope_tab, Set_Error_Phase(), Set_PU_Info_cu_dst, Set_PU_Info_flags, Set_PU_Info_pu_dst, Set_PU_Info_state, Set_PU_Info_tree_ptr, ST_name(), ST_pu(), St_Table, Subsect_InMem, TFile, TINFO_STATS, TKIND_IR, TKIND_SYMTAB, TP_IRB, Verify_SYMTAB(), wn, WN_MAP_Delete, WN_Mem_Pop(), Write_PU_Info(), WT_PROC_SYM, WT_SYMTAB, and WT_TREE.
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().
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 | ||
) |
Definition at line 138 of file cwh_pdgcs.cxx.
References Current_Map_Tab, cwh_auxst_alloc_container_table(), cwh_auxst_register_table(), cwh_dst_init_file(), cwh_stmt_init_file(), delete_rii_file(), DSTDUMP_FILE_EXTENSION, DSTdump_File_Name, enable_dsm_processing, enable_dsm_recompile, ERROR_LINE_UNKNOWN, FALSE, FE_Full_Split, FE_Full_Split_Set, fe_preg_init(), FE_Write_Binary, fprintf(), Generate_IR, Get_Trace(), init_debug_file(), Initialize_Symbol_Tables(), IRB_FILE_EXTENSION, Irb_File_Name, MEM_POOL_Initialize, MEM_POOL_Push, New_Extension(), NULL, Open_Output_Info(), OPT_Pad_Common, OPT_Reorg_Common, PDGCS_INITIALIZE_MP, rii_file_name, Set_Error_Line(), Set_Error_Phase(), Set_Trace_File_internal(), test_flag, TFile, TINFO_STATS, TKIND_IR, TKIND_SYMTAB, TP_IRB, Trc_File_Name, TRUE, update_rii_file(), WHIRL_Keep_Cvt_On, and WN_MAP_TAB_Create().
Referenced by init_PDGCS().
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 | ||
) |
Definition at line 283 of file cwh_pdgcs.cxx.
References array_name_map, cast_to_ST, cast_to_STB, Current_Map_Tab, cwh_assign_label_id, cwh_pdgcs_pu_mem(), cwh_stab_set_symtab(), IN_NESTED_PU, al::item, NULL, PU_HAS_NESTED_PU, PU_Info_child, PU_Info_maptab, PU_Info_next, PU_Info_proc_sym, PU_Parent, Set_Error_Phase(), Set_PU_Info_flags, Set_ST_is_block_data(), Set_ST_is_in_module(), ST_st_idx(), and WN_MAP_Create.
Referenced by cvrt_proc_to_pdg(), and send_mod_file_name().
void PDGCS_terminate | ( | void | ) |
Definition at line 511 of file cwh_pdgcs.cxx.
References Close_Output_Info(), cwh_data_emit_symbol_inits(), cwh_dst_write(), cwh_stab_emit_commons_and_equivalences(), cwh_write_makedepend(), Get_Trace(), GLOBAL_SYMTAB, Print_global_symtab(), Set_Error_Phase(), TFile, TKIND_SYMTAB, TP_IRB, Verify_SYMTAB(), and Write_Global_Info().
Referenced by terminate_PDGCS().
static void skip_old_rii_controls | ( | FILE * | f | ) | [static] |
Definition at line 577 of file cwh_pdgcs.cxx.
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().
Definition at line 104 of file cwh_pdgcs.cxx.
Referenced by fei_label_addr(), and PDGCS_new_proc().
BOOL FE_Write_Binary = TRUE [static] |
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().
MEM_POOL* map_mem_pool = &map_mem_pool_s [static] |
Definition at line 120 of file cwh_pdgcs.cxx.
MEM_POOL map_mem_pool_s [static] |
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().
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.