Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "wn_map.h"
Go to the source code of this file.
#define ABI_MISMATCH -2 |
Definition at line 43 of file ir_bread.h.
Referenced by check_elf_header(), and open_specified_input().
#define READER_ERROR -1 |
Definition at line 42 of file ir_bread.h.
Referenced by open_specified_input().
#define REVISION_MISMATCH 0 |
Definition at line 41 of file ir_bread.h.
Referenced by check_section_headers(), and open_specified_input().
void Free_Dep_Graph | ( | void | ) |
Referenced by LNO_Processing().
void Free_Input_Info | ( | void | ) |
Definition at line 1371 of file ir_bread.cxx.
References Free_Local_Input(), global_fhandle, global_mapped_size, local_fhandle, and WN_free_input().
Referenced by Cleanup_Files(), ir_b2a(), ir_sel(), and ir_size().
void Free_Local_Info | ( | PU_Info * | pu | ) |
Definition at line 1352 of file ir_bread.cxx.
References Delete_Scope(), NULL, PU_Info_maptab, PU_Info_proc_sym, PU_lexical_level(), St_Table, and WN_MAP_TAB_Delete().
Referenced by ir_b2a_process_PUs(), ir_sel(), main(), Postprocess_PU(), and process_pu().
void Free_Local_Input | ( | void | ) |
Definition at line 1364 of file ir_bread.cxx.
References local_fhandle, local_mapped_size, and WN_free_input().
Referenced by Free_Input_Info().
Elf64_Word Get_Elf_Section_Size | ( | void * | handle, |
Elf64_Word | type, | ||
Elf64_Word | info | ||
) |
Definition at line 714 of file ir_bread.cxx.
References get_section(), OFFSET_AND_SIZE::offset, and OFFSET_AND_SIZE::size.
Referenced by ir_size().
OFFSET_AND_SIZE get_section | ( | void * | handle, |
Elf64_Word | type, | ||
Elf64_Word | info | ||
) |
Definition at line 140 of file ir_bread.cxx.
References Elf64_Ehdr::e_ident, Elf32_Ehdr::e_shnum, Elf64_Ehdr::e_shnum, Elf32_Ehdr::e_shoff, Elf64_Ehdr::e_shoff, EI_CLASS, ELFCLASS32, errno, ERROR_VALUE, get_section_header(), Elf32_Shdr::sh_offset, Elf64_Shdr::sh_offset, Elf32_Shdr::sh_size, and Elf64_Shdr::sh_size.
Referenced by Get_Elf_Section_Size(), IPA_write_summary(), WN_get_dst(), WN_get_feedback(), WN_get_flags(), WN_get_global_symtab(), WN_get_prefetch(), WN_get_PU_Infos(), WN_get_section_base(), WN_get_strtab(), WN_get_symtab(), WN_get_tree(), WN_open_output(), WN_read_generic_map(), WN_write_dst(), WN_write_flags(), WN_write_globals(), WN_write_revision(), and WN_write_strtab().
void* Open_Global_Input | ( | const char * | input_file | ) |
Definition at line 1245 of file ir_bread.cxx.
References global_fhandle, global_ir_file, global_mapped_size, and open_specified_input().
Referenced by ir_b2a(), and main().
void* Open_Input_Info | ( | const char * | input_file | ) |
Definition at line 1234 of file ir_bread.cxx.
References global_fhandle, global_ir_file, global_mapped_size, local_fhandle, local_ir_file, local_mapped_size, and open_specified_input().
Referenced by ir_b2a(), ir_sel(), ir_size(), and main().
void* Open_Local_Input | ( | const char * | input_file | ) |
Definition at line 1253 of file ir_bread.cxx.
References local_fhandle, local_ir_file, local_mapped_size, and open_specified_input().
Referenced by ir_b2a(), and main().
PU_Info* Read_Global_Info | ( | INT32 * | p_num_PUs | ) |
Definition at line 1267 of file ir_bread.cxx.
References EC_IR_Scn_Read, ErrMsg(), global_fhandle, global_ir_file, local_fhandle, local_ir_file, Set_Error_Phase(), verbose_info, WN_get_dst(), WN_get_global_symtab(), WN_get_PU_Infos(), and WN_get_strtab().
Referenced by ir_b2a(), ir_sel(), and main().
void Read_Local_Info | ( | MEM_POOL * | pool, |
PU_Info * | pu | ||
) |
Definition at line 1301 of file ir_bread.cxx.
References Current_Map_Tab, Current_pu, CURRENT_SYMTAB, EC_IR_Scn_Read, ErrMsg(), FALSE, Get_Error_Phase(), local_fhandle, local_ir_file, MEM_pu_nz_pool_ptr, New_Scope(), PU_Info_maptab, PU_Info_proc_sym, PU_lexical_level(), Pu_Table, Scope_tab, Set_Error_Phase(), SCOPE::st, ST_pu(), St_Table, WN_get_INT32_map(), WN_get_prefetch(), WN_get_proc_sym(), WN_get_symtab(), WN_get_tree(), WN_get_voidptr_map(), WN_MAP_AC_INTERNAL, WN_MAP_ALIAS_CLASS, WN_MAP_TAB_Create(), WT_AC_INTERNAL, and WT_ALIAS_CLASS.
Referenced by ir_b2a_process_PUs(), ir_sel(), main(), Preprocess_PU(), process_pu(), and read_pu().
void Set_Verbose_Info | ( | BOOL | val | ) |
Definition at line 493 of file ir_bread.cxx.
References val, and verbose_info.
Referenced by main().
void* WN_get_depgraph | ( | void * | handle, |
PU_Info * | pu | ||
) |
INT WN_get_dst | ( | void * | handle | ) |
Definition at line 923 of file ir_bread.cxx.
References CONVERT_OFFSET, Current_DST, DST_Init(), ERROR_RETURN, get_section(), NULL, OFFSET_AND_SIZE::offset, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, and WT_DST.
Referenced by Read_Global_Info().
INT WN_get_feedback | ( | void * | handle, |
PU_Info * | pu, | ||
MEM_POOL * | pool | ||
) |
Definition at line 959 of file ir_bread.cxx.
References errno, ERROR_RETURN, get_section(), OFFSET_AND_SIZE::offset, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_size, Set_PU_Info_feedback_ptr, Set_PU_Info_state, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, Subsect_Exists, Subsect_InMem, Subsect_Missing, Subsect_Written, WT_FEEDBACK, and WT_PU_SECTION.
INT WN_get_flags | ( | void * | handle, |
char *** | argv | ||
) |
Definition at line 898 of file ir_bread.cxx.
References ERROR_VALUE, fix_comp_flags(), get_section(), if(), OFFSET_AND_SIZE::offset, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, and WT_COMP_FLAGS.
INT WN_get_global_symtab | ( | void * | handle | ) |
Definition at line 202 of file ir_bread.cxx.
References Arb_Table, Blk_Table, SYMTAB_HEADER::entsize, ERROR_RETURN, File_info, Fld_Table, get_section(), GLOBAL_SYMTAB, GLOBAL_SYMTAB_TABLES, Initialize_TCON_strtab(), SCOPE::inito_tab, Initv_Table, OFFSET_AND_SIZE::offset, SYMTAB_HEADER::offset, Pu_Table, Scope_tab, SHDR_ARB, SHDR_BLK, SHDR_FILE, SHDR_FLD, SHDR_INITO, SHDR_INITV, SHDR_PU, SHDR_ST, SHDR_ST_ATTR, SHDR_STR, SHDR_TCON, SHDR_TY, SHDR_TYLIST, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, SYMTAB_HEADER::size, SCOPE::st_attr_tab, SCOPE::st_tab, Tcon_Table, SEGMENTED_ARRAY< T, block_size >::Transfer(), Ty_tab, Tylist_Table, SYMTAB_HEADER::type, and WT_GLOBALS.
Referenced by Read_Global_Info().
INT WN_get_INT32_map | ( | void * | handle, |
PU_Info * | pu, | ||
INT32 | subsection_type, | ||
WN_MAP | value_map | ||
) |
Definition at line 1164 of file ir_bread.cxx.
References WN_read_generic_map().
Referenced by Read_Local_Info().
INT WN_get_localmap | ( | void * | handle | ) |
INT WN_get_prefetch | ( | void * | handle, |
PU_Info * | pu | ||
) |
Definition at line 999 of file ir_bread.cxx.
References ALIGNOF, Current_Map_Tab, errno, ERROR_RETURN, get_section(), ir_b_align(), NULL, OFFSET_AND_SIZE::offset, PU_Info_maptab, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_ptr, PU_Info_subsect_size, Set_PU_Info_state, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, Subsect_Exists, Subsect_InMem, Subsect_Written, WN_MAP_PREFETCH, WN_MAP_Set, pf_pointer::wn_pref_1L, pf_pointer::wn_pref_2L, WT_PREFETCH, WT_PU_SECTION, and WT_TREE.
Referenced by Read_Local_Info().
ST* WN_get_proc_sym | ( | PU_Info * | pu | ) |
Definition at line 811 of file ir_bread.cxx.
References ERROR_RETURN, NULL, PU_Info_proc_sym, PU_Info_state, Set_PU_Info_state, St_Table, Subsect_Exists, Subsect_InMem, and WT_PROC_SYM.
Referenced by Read_Local_Info().
PU_Info* WN_get_PU_Infos | ( | void * | handle, |
INT32 * | p_num_PUs | ||
) |
Definition at line 770 of file ir_bread.cxx.
References ERROR_RETURN, ERROR_VALUE, get_section(), OFFSET_AND_SIZE::offset, Read_PU_Infos(), SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, and WT_PU_SECTION.
Referenced by ir_size(), and Read_Global_Info().
void* WN_get_section_base | ( | void * | handle, |
INT | sect | ||
) |
Definition at line 792 of file ir_bread.cxx.
References ERROR_RETURN, get_section(), OFFSET_AND_SIZE::offset, return(), and SHT_MIPS_WHIRL.
INT WN_get_strtab | ( | void * | handle | ) |
Definition at line 380 of file ir_bread.cxx.
References ERROR_RETURN, get_section(), Initialize_Strtab(), OFFSET_AND_SIZE::offset, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, and WT_STRTAB.
Referenced by Read_Global_Info().
INT WN_get_symtab | ( | void * | handle, |
PU_Info * | pu | ||
) |
Definition at line 299 of file ir_bread.cxx.
References CURRENT_SYMTAB, SYMTAB_HEADER_TABLE< table_size >::entries, SYMTAB_HEADER::entsize, errno, ERROR_RETURN, get_section(), SYMTAB_HEADER_TABLE< table_size >::header, SCOPE::inito_tab, Is_True, SCOPE::label_tab, LOCAL_SYMTAB_TABLES, OFFSET_AND_SIZE::offset, SYMTAB_HEADER::offset, SCOPE::preg_tab, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_size, Scope_tab, Set_PU_Info_state, SHDR_INITO, SHDR_LABEL, SHDR_PREG, SHDR_ST, SHDR_ST_ATTR, SHT_MIPS_WHIRL, size, SYMTAB_HEADER::size, SYMTAB_HEADER_TABLE< table_size >::size, SCOPE::st_attr_tab, SCOPE::st_tab, Subsect_Exists, Subsect_InMem, SYMTAB_HEADER::type, WT_PU_SECTION, and WT_SYMTAB.
Referenced by Read_Local_Info().
WN* WN_get_tree | ( | void * | handle, |
PU_Info * | pu | ||
) |
Definition at line 836 of file ir_bread.cxx.
References Current_Map_Tab, errno, ERROR_RETURN, ERROR_VALUE, fix_tree(), get_section(), NULL, OFFSET_AND_SIZE::offset, PU_Info_maptab, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_size, PU_Info_tree_ptr, Set_Max_Region_Id(), Set_PU_Info_state, Set_PU_Info_tree_ptr, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, Subsect_Exists, Subsect_InMem, wn, WN_next(), WN_prev(), WT_PU_SECTION, and WT_TREE.
Referenced by Read_Local_Info().
void* WN_inline_open_file | ( | const char * | file_name, |
off_t * | mapped_size, | ||
char * | file_revision | ||
) |
Definition at line 748 of file ir_bread.cxx.
References errno, ERROR_RETURN, and read_file().
INT WN_massage_input | ( | char * | baseaddr, |
Elf64_Word | size, | ||
char * | file_revision | ||
) |
Definition at line 651 of file ir_bread.cxx.
References check_elf_header(), check_section_headers(), and ELFCLASS32.
Referenced by read_file().
void* WN_open_input | ( | const char * | filename, |
off_t * | mapped_size | ||
) |
Definition at line 729 of file ir_bread.cxx.
References errno, ERROR_RETURN, file_revision, and read_file().
Referenced by open_specified_input().