Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
typedef struct output_file Output_File |
void Close_Output_Info | ( | void | ) |
Definition at line 1415 of file ir_bwrite.cxx.
References WN_close_output(), and WN_write_revision().
Referenced by ir_sel(), main(), and PDGCS_terminate().
void IPA_copy_PU | ( | PU_Info * | pu, |
char * | section_base, | ||
Output_File * | outfile | ||
) |
Definition at line 1181 of file ir_bwrite.cxx.
References ALIGNOF, output_file::cur_section, dummy, EC_IR_Scn_Write, ErrMsg(), output_file::file_name, output_file::file_size, ir_b_align(), ir_b_save_buf(), MIPS_WHIRL_PU_SECTION, section::name, OPC_FUNC_ENTRY, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_size, Set_PU_Info_state, Elf64_Shdr::sh_offset, section::shdr, Subsect_Exists, Subsect_Missing, Subsect_Written, WN_set_opcode(), WN_StartAddress(), WT_DEPGRAPH, WT_PREFETCH, WT_SYMTAB, and WT_TREE.
void IPA_write_summary | ( | void(*)(Output_File *) | IPA_irb_write_summary, |
Output_File * | fl | ||
) |
Definition at line 967 of file ir_bwrite.cxx.
References output_file::file_size, get_section(), ir_b_align(), MIPS_WHIRL_SUMMARY, Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, section::shdr, and WT_IPA_SUMMARY.
Output_File* Open_Output_Info | ( | const char * | output_file | ) |
Definition at line 1388 of file ir_bwrite.cxx.
References EC_IR_Create, ErrMsg(), errno, ir_output, Set_Error_Phase(), and WN_open_output().
Referenced by ir_sel(), main(), PDGCS_initialize(), and Phase_Init().
void WN_close_file | ( | void * | fl | ) |
Definition at line 1322 of file ir_bwrite.cxx.
References cleanup(), close, EC_IR_Close, ErrMsg(), errno, output_file::file_name, output_file::file_size, output_file::map_addr, output_file::mapped_size, MUNMAP, and output_file::output_fd.
void WN_close_output | ( | Output_File * | fl | ) |
Definition at line 1287 of file ir_bwrite.cxx.
References cleanup(), close, EC_IR_Close, ErrMsg(), errno, output_file::file_name, output_file::file_size, layout_sections(), output_file::map_addr, output_file::mapped_size, MUNMAP, output_file::output_fd, Use_32_Bit_Pointers, and write_output().
Referenced by Close_Output_Info().
Output_File* WN_open_output | ( | const char * | file_name | ) |
Definition at line 556 of file ir_bwrite.cxx.
References create_temp_file(), output_file::cur_section, output_file::file_name, output_file::file_size, get_section(), ir_b_align(), ir_b_create_map(), ir_bwrite_signal_handler(), MAPPED_SIZE, MIPS_WHIRL_PU_SECTION, NULL, output_file::num_of_section, old_sigbus, old_sigsegv, OPEN, output_file::output_fd, output_file::section_list, Elf64_Shdr::sh_offset, section::shdr, Use_32_Bit_Pointers, and WT_PU_SECTION.
Referenced by Open_Output_Info().
void WN_write_depgraph | ( | PU_Info * | pu, |
WN_MAP | off_map, | ||
Output_File * | fl | ||
) |
void WN_write_dst | ( | void * | dst, |
Output_File * | fl | ||
) |
Definition at line 897 of file ir_bwrite.cxx.
References output_file::file_size, get_section(), ir_b_align(), ir_b_write_dst(), MIPS_WHIRL_DST, Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, section::shdr, and WT_DST.
Referenced by Write_Global_Info().
void WN_write_elf_symtab | ( | const void * | symtab, |
UINT64 | size, | ||
UINT64 | entsize, | ||
UINT | align, | ||
Output_File * | fl | ||
) |
void WN_write_feedback | ( | PU_Info * | pu, |
Output_File * | fl | ||
) |
void WN_write_flags | ( | INT | argc, |
char ** | argv, | ||
Output_File * | fl | ||
) |
Definition at line 779 of file ir_bwrite.cxx.
References output_file::file_size, FmtAssert, get_section(), ir_b_align(), ir_b_grow_map(), ir_b_save_buf(), len, output_file::map_addr, output_file::mapped_size, MIPS_WHIRL_COMP_FLAGS, Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, section::shdr, and WT_COMP_FLAGS.
void WN_write_globals | ( | Output_File * | fl | ) |
Definition at line 836 of file ir_bwrite.cxx.
References output_file::file_size, get_section(), ir_b_align(), ir_b_write_global_symtab(), MIPS_WHIRL_GLOBALS, Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, section::shdr, and WT_GLOBALS.
Referenced by Write_Global_Info().
void WN_write_INT32_map | ( | PU_Info * | pu, |
WN_MAP | off_map, | ||
Output_File * | fl, | ||
INT32 | subsection_type, | ||
WN_MAP | value_map, | ||
const char * | subsection_name | ||
) |
Definition at line 1157 of file ir_bwrite.cxx.
References WN_write_generic_map().
Referenced by Write_PU_Info().
void WN_write_localmap | ( | void * | localmap, |
Output_File * | fl | ||
) |
void WN_write_prefetch | ( | PU_Info * | pu, |
WN_MAP | off_map, | ||
Output_File * | fl | ||
) |
Definition at line 997 of file ir_bwrite.cxx.
References ALIGNOF, output_file::cur_section, EC_IR_Scn_Write, ErrMsg(), output_file::file_name, output_file::file_size, free(), ir_b_align(), ir_b_save_buf(), MIPS_WHIRL_PU_SECTION, section::name, NULL, PF_PTR_ADDR, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_ptr, PU_Info_subsect_size, Set_PU_Info_state, Elf64_Shdr::sh_offset, section::shdr, Subsect_InMem, Subsect_Missing, Subsect_Written, WN_MAP32_Get, WN_MAP_Get, WN_MAP_PREFETCH, and WT_PREFETCH.
void WN_write_PU_Infos | ( | PU_Info * | pu_list, |
Output_File * | fl | ||
) |
Definition at line 639 of file ir_bwrite.cxx.
References output_file::cur_section, EC_IR_Scn_Write, ErrMsg(), output_file::file_name, output_file::file_size, ir_b_align(), ir_b_grow_map(), output_file::map_addr, output_file::mapped_size, MIPS_WHIRL_PU_SECTION, section::name, Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, section::shdr, Sizeof_PU_Infos(), and Write_PU_Infos().
Referenced by Write_Global_Info().
void WN_write_revision | ( | Output_File * | fl | ) |
Definition at line 1267 of file ir_bwrite.cxx.
References ELF_COMMENT, output_file::file_size, get_section(), ir_b_save_buf(), Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, Elf64_Shdr::sh_type, section::shdr, SHT_PROGBITS, and Whirl_Revision.
Referenced by Close_Output_Info().
void WN_write_strtab | ( | const void * | strtab, |
UINT64 | size, | ||
Output_File * | fl | ||
) |
Definition at line 876 of file ir_bwrite.cxx.
References output_file::file_size, get_section(), ir_b_align(), ir_b_save_buf(), MIPS_WHIRL_STRTAB, Elf64_Shdr::sh_addralign, Elf64_Shdr::sh_offset, Elf64_Shdr::sh_size, section::shdr, and WT_STRTAB.
Referenced by Write_Global_Info().
void WN_write_symtab | ( | PU_Info * | pu, |
Output_File * | fl | ||
) |
Definition at line 852 of file ir_bwrite.cxx.
References output_file::cur_section, EC_IR_Scn_Write, ErrMsg(), output_file::file_name, output_file::file_size, ir_b_align(), ir_b_write_local_symtab(), MIPS_WHIRL_PU_SECTION, section::name, PU_Info_proc_sym, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_size, PU_lexical_level(), Scope_tab, Set_PU_Info_state, Elf64_Shdr::sh_offset, section::shdr, St_Table, Subsect_InMem, Subsect_Written, and WT_SYMTAB.
Referenced by Write_PU_Info().
void WN_write_tree | ( | PU_Info * | pu, |
WN_MAP | off_map, | ||
Output_File * | fl | ||
) |
Definition at line 683 of file ir_bwrite.cxx.
References ALIGNOF, output_file::cur_section, EC_IR_Scn_Write, ErrMsg(), output_file::file_name, output_file::file_size, ir_b_align(), ir_b_write_tree(), output_file::map_addr, max_ac_internal_nodes, max_alias_class_nodes, max_num_prefetch_ldsts, MIPS_WHIRL_PU_SECTION, section::name, NULL, num_ac_internal_nodes, num_alias_class_nodes, num_prefetch_ldsts, PU_Info_state, PU_Info_subsect_offset, PU_Info_subsect_ptr, PU_Info_subsect_size, PU_Info_tree_ptr, Set_Max_Region_Id(), Set_PU_Info_ac_internal_ptr, Set_PU_Info_alias_class_ptr, Set_PU_Info_state, Elf64_Shdr::sh_offset, section::shdr, Subsect_InMem, Subsect_Written, WN_StartAddress(), Write_AC_INTERNAL_Map, Write_ALIAS_CLASS_Map, Write_BE_Maps, WT_AC_INTERNAL, WT_ALIAS_CLASS, WT_PREFETCH, and WT_TREE.
Referenced by Write_PU_Info().
void WN_write_voidptr_map | ( | PU_Info * | pu, |
WN_MAP | off_map, | ||
Output_File * | fl, | ||
INT32 | subsection_type, | ||
WN_MAP | value_map, | ||
const char * | subsection_name | ||
) |
Definition at line 1169 of file ir_bwrite.cxx.
References WN_write_generic_map().
void Write_Global_Info | ( | PU_Info * | pu_tree | ) |
Definition at line 1400 of file ir_bwrite.cxx.
References Current_DST, Index_To_Str(), Set_Error_Phase(), STR_Table_Size(), WN_write_dst(), WN_write_globals(), WN_write_PU_Infos(), and WN_write_strtab().
Referenced by ir_sel(), main(), and PDGCS_terminate().
void Write_PU_Info | ( | PU_Info * | pu | ) |
Definition at line 1351 of file ir_bwrite.cxx.
References Current_Map_Tab, MEM_local_nz_pool_ptr, MEM_POOL_Pop, MEM_POOL_Push, PU_Info_maptab, WN_MAP32_Create, WN_MAP_ALIAS_CLASS, WN_MAP_Delete, WN_MAP_UNDEFINED, WN_write_INT32_map(), WN_write_symtab(), WN_write_tree(), Write_ALIAS_CLASS_Map, Write_BE_Maps, and WT_ALIAS_CLASS.
Referenced by Do_WOPT_and_CG_with_Regions(), Ipl_Processing(), ir_sel(), PDGCS_do_proc(), Post_LNO_Processing(), process_pu(), and write_pu().
Definition at line 135 of file ir_bwrite.cxx.
Referenced by ir_b_copy_file(), and ir_b_save_buf().
Definition at line 96 of file ir_bwrite.cxx.
Referenced by ir_b_write_tree(), and WN_write_tree().
Definition at line 97 of file ir_bwrite.cxx.
Referenced by ir_b_write_tree(), Phase_Init(), WN_write_tree(), and Write_PU_Info().
Definition at line 95 of file ir_bwrite.cxx.
Referenced by ir_b_write_tree(), Phase_Init(), WN_write_tree(), and Write_PU_Info().