Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <elf.h>
#include <string.h>
#include "cxx_memory.h"
#include "defs.h"
#include "symtab.h"
#include "pu_info.h"
Go to the source code of this file.
Classes | |
struct | SAVED_SCOPE |
Functions | |
void | PU_Info_init (PU_Info *pu) |
static INT | number_PU_Infos (PU_Info *pu_tree, INT num_PUs) |
INT | Sizeof_PU_Infos (PU_Info *pu_tree) |
static char * | write_PU_fields (PU_Info *pu_tree, char *addr, INT32 *p_num_PUs) |
static char * | write_PU_subsect_info (PU_Info *pu_tree, INT32 k, char *addr) |
INT | Write_PU_Infos (PU_Info *pu_tree, char *base) |
PU_Info * | Read_PU_Infos (char *base, INT32 size, INT32 *p_num_PUs) |
void | Save_Local_Symtab (SYMTAB_IDX level, PU_Info *pu) |
void | Restore_Local_Symtab (PU_Info *pu) |
void | fdump_PU_Info_state (FILE *f, PU_Info *pu_info) |
void | dump_PU_Info_state (PU_Info *pu_info) |
Variables | |
PU_Info * | Current_PU_Info = NULL |
static char * | PU_Info_subsect_name [WT_SUBSECTIONS] |
void dump_PU_Info_state | ( | PU_Info * | pu_info | ) |
Definition at line 479 of file pu_info.cxx.
References fdump_PU_Info_state().
void fdump_PU_Info_state | ( | FILE * | f, |
PU_Info * | pu_info | ||
) |
Definition at line 446 of file pu_info.cxx.
References fprintf(), PU_Info_state, PU_Info_subsect_name, Subsect_Exists, Subsect_InMem, Subsect_Missing, Subsect_Written, WT_PROC_SYM, and WT_SUBSECTIONS.
Referenced by dump_PU_Info_state().
INT number_PU_Infos | ( | PU_Info * | pu_tree, |
INT | num_PUs | ||
) | [static] |
Definition at line 114 of file pu_info.cxx.
References PU_Info_child, PU_Info_maptab, and PU_Info_next.
Referenced by Sizeof_PU_Infos().
void PU_Info_init | ( | PU_Info * | pu | ) |
Definition at line 73 of file pu_info.cxx.
References DST_INVALID_IDX, NULL, PU_Info_child, PU_Info_cu_dst, PU_Info_flags, PU_Info_maptab, PU_Info_next, PU_Info_proc_id, PU_Info_pu_dst, and pu_info::state.
Referenced by cwh_pdgcs_pu_mem(), DRA_Add_Clone(), and Read_PU_Infos().
PU_Info* Read_PU_Infos | ( | char * | base, |
INT32 | size, | ||
INT32 * | p_num_PUs | ||
) |
Definition at line 255 of file pu_info.cxx.
References kind, NULL, PU_HEADER_VERSION, PU_Info_child, PU_Info_flags, PU_Info_init(), PU_Info_next, PU_Info_proc_id, PU_Info_pu_dst, PU_Info_subsect_offset, PU_Info_subsect_size, Set_PU_Info_state, Subsect_Exists, WT_PROC_SYM, and WT_SUBSECTIONS.
Referenced by WN_get_PU_Infos().
void Restore_Local_Symtab | ( | PU_Info * | pu | ) |
Definition at line 412 of file pu_info.cxx.
References Current_scope, FmtAssert, SAVED_SCOPE::Get_Scope(), PU_Info_proc_sym, PU_Info_state, PU_Info_symtab_ptr, PU_lexical_level(), Scope_tab, St_Table, Subsect_InMem, and WT_SYMTAB.
Referenced by DRA_Add_Clone(), and Preprocess_PU().
void Save_Local_Symtab | ( | SYMTAB_IDX | level, |
PU_Info * | pu | ||
) |
Definition at line 382 of file pu_info.cxx.
References Current_scope, CURRENT_SYMTAB, CXX_NEW, FmtAssert, MEM_POOL_Alloc, NULL, pool, PU_Info_proc_sym, PU_Info_state, PU_Info_symtab_ptr, PU_lexical_level(), Scope_tab, Set_PU_Info_symtab_ptr, St_Table, Subsect_InMem, and WT_SYMTAB.
Referenced by DRA_Add_Clone().
INT Sizeof_PU_Infos | ( | PU_Info * | pu_tree | ) |
Definition at line 89 of file pu_info.cxx.
References number_PU_Infos(), and WT_SUBSECTIONS.
Referenced by ir_size(), and WN_write_PU_Infos().
char * write_PU_fields | ( | PU_Info * | pu_tree, |
char * | addr, | ||
INT32 * | p_num_PUs | ||
) | [static] |
Definition at line 180 of file pu_info.cxx.
References NULL, PU_Info_child, PU_Info_flags, PU_Info_maptab, PU_Info_next, PU_Info_proc_sym, and PU_Info_pu_dst.
Referenced by Write_PU_Infos().
INT Write_PU_Infos | ( | PU_Info * | pu_tree, |
char * | base | ||
) |
Definition at line 144 of file pu_info.cxx.
References PU_HEADER_VERSION, write_PU_fields(), write_PU_subsect_info(), and WT_SUBSECTIONS.
Referenced by WN_write_PU_Infos().
char * write_PU_subsect_info | ( | PU_Info * | pu_tree, |
INT32 | k, | ||
char * | addr | ||
) | [static] |
Definition at line 219 of file pu_info.cxx.
References NULL, PU_Info_child, PU_Info_next, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_size, Subsect_Missing, and Subsect_Written.
Referenced by Write_PU_Infos().
Definition at line 70 of file pu_info.cxx.
Referenced by Backend_Processing(), Change_ST_Of_Current_PU(), Formal_Position(), LNO_Processing(), main(), Preprocess_PU(), process_pu(), read_pu(), WN_Rename_Duplicate_Labels(), and write_pu().
char* PU_Info_subsect_name[WT_SUBSECTIONS] [static] |
{ "WT_SYMTAB", "WT_TREE", "WT_DEPGRAPH", "WT_PREFETCH", "WT_REGIONS", "WT_FEEDBACK", "WT_FREQ", "WT_AC_INTERNAL", "WT_ALIAS_CLASS" }
Definition at line 434 of file pu_info.cxx.
Referenced by fdump_PU_Info_state().