
Go to the source code of this file.
Functions/Subroutines | |
| off_t | ir_b_align (off_t offset, UINT32 addralign, UINT32 padding) |
| off_t | ir_b_save_buf (const void *buf, Elf64_Word size, UINT32 align, UINT32 padding, Output_File *fl) |
| off_t | ir_b_copy_file (const void *buf, Elf64_Word size, void *fl) |
| char * | ir_b_grow_map (Elf64_Word min_size, Output_File *fl) |
| char * | ir_b_create_map (Output_File *fl) |
| off_t | ir_b_write_tree (WN *node, off_t base_offset, Output_File *fl, WN_MAP off_map) |
| off_t | ir_b_write_dst (DST_TYPE dst, off_t base_offset, Output_File *fl) |
| off_t | ir_b_write_global_symtab (off_t base_offset, Output_File *fl) |
| off_t | ir_b_write_local_symtab (const SCOPE &pu, off_t base_offset, Output_File *fl) |
| void | IPA_irb_write_summary (Output_File *fl) |
| void | IPA_irb_write_mod_ref_info (Output_File *) |
Variables | |
| const char * | Whirl_Revision |
| void * | IPAA_Local_Map |
| BOOL | Doing_mmapped_io |
| void IPA_irb_write_mod_ref_info | ( | Output_File * | ) |
Referenced by IP_write_global_symtab(), and Write_Global_Info().
| void IPA_irb_write_summary | ( | Output_File * | fl | ) |
Definition at line 62 of file ir_bcom.h.
Referenced by IPA_LNO_WRITE_FILE::Create_String_Table_Section(), ir_b_reserve_space(), ir_b_save_buf(), layout_sections(), WN_open_output(), WN_read_generic_map(), WN_write_dst(), WN_write_elf_symtab(), WN_write_flags(), WN_write_globals(), WN_write_PU_Infos(), WN_write_strtab(), WN_write_symtab(), WN_write_tree(), write_file_info(), IPA_LNO_WRITE_FILE::Write_Section(), and write_table().
| off_t ir_b_copy_file | ( | const void * | buf, | |
| Elf64_Word | size, | |||
| void * | fl | |||
| ) |
Definition at line 153 of file ir_bcom.cxx.
References Current_Output, Doing_mmapped_io, FALSE, output_file::file_size, ir_b_grow_map(), output_file::map_addr, output_file::mapped_size, memcpy, and TRUE.
| char* ir_b_create_map | ( | Output_File * | fl | ) |
Definition at line 281 of file ir_bcom.cxx.
References EC_IR_Write, err, ErrMsg(), fd, output_file::file_name, INIT_TMP_MAPPED_SIZE, INT, output_file::map_addr, output_file::mapped_size, mmap(), NULL, and output_file::output_fd.
Referenced by IPA_LNO_WRITE_FILE::Open_Write_File(), and WN_open_output().
| char* ir_b_grow_map | ( | Elf64_Word | min_size, | |
| Output_File * | fl | |||
| ) |
Definition at line 202 of file ir_bcom.cxx.
References EC_IR_Write, ErrMsg(), errno, output_file::file_name, output_file::file_size, ftruncate(), Is_True, output_file::map_addr, MAPPED_SIZE, output_file::mapped_size, mmap(), munmap(), output_file::output_fd, and strerror().
Referenced by ir_b_copy_file(), ir_b_reserve_space(), ir_b_save_buf(), layout_sections(), WN_write_flags(), WN_write_PU_Infos(), and IPA_LNO_WRITE_FILE::Write_Headers().
| off_t ir_b_save_buf | ( | const void * | buf, | |
| Elf64_Word | size, | |||
| UINT32 | align, | |||
| UINT32 | padding, | |||
| Output_File * | fl | |||
| ) |
Definition at line 133 of file ir_bcom.cxx.
References Current_Output, Doing_mmapped_io, FALSE, output_file::file_size, file_size, ir_b_align(), ir_b_grow_map(), output_file::map_addr, output_file::mapped_size, memcpy, and TRUE.
Referenced by Depgraph_Write(), IPA_irb_write_summary(), IPAA_CALLSITES_Write(), IPAA_LOCAL_MAP_Write(), ir_b_write_dst(), ir_b_write_global_symtab(), ir_b_write_tree(), WRITE_TABLE_OP< T >::operator()(), WN_write_elf_symtab(), WN_write_flags(), WN_write_revision(), WN_write_strtab(), write_file_info(), IPA_LNO_WRITE_FILE::Write_Revision(), IPA_LNO_WRITE_FILE::Write_Section(), and ARRAY_SUMMARY_OUTPUT::Write_summary().
| off_t ir_b_write_dst | ( | DST_TYPE | dst, | |
| off_t | base_offset, | |||
| Output_File * | fl | |||
| ) |
Definition at line 707 of file ir_bcom.cxx.
References __ALIGNOF, Current_DST, i, INT32, INT64, ir_b_save_buf(), mINT32, offset, and size.
Referenced by WN_write_dst().
| off_t ir_b_write_global_symtab | ( | off_t | base_offset, | |
| Output_File * | fl | |||
| ) |
Definition at line 589 of file ir_bcom.cxx.
References __ALIGNOF, Arb_Table, Blk_Table, Fld_Table, GLOBAL_SYMTAB, SYMTAB_HEADER_TABLE< table_size >::header, i, idx, SYMTAB_HEADER::Init(), Initv_Table, ir_b_reserve_space(), ir_b_save_buf(), mUINT64, Pu_Table, save_buf_at_offset(), 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, SEGMENTED_ARRAY< T, block_size >::Size(), TCON_strtab_buffer(), TCON_strtab_size(), Tcon_Table, Ty_tab, Tylist_Table, UINT, write_file_info(), and write_table().
Referenced by WN_write_globals().
| off_t ir_b_write_local_symtab | ( | const SCOPE & | pu, | |
| off_t | base_offset, | |||
| Output_File * | fl | |||
| ) |
Definition at line 668 of file ir_bcom.cxx.
References __ALIGNOF, SYMTAB_HEADER_TABLE< table_size >::header, i, SYMTAB_HEADER::Init(), SCOPE::inito_tab, ir_b_reserve_space(), SCOPE::label_tab, mUINT64, SCOPE::preg_tab, save_buf_at_offset(), SHDR_INITO, SHDR_LABEL, SHDR_PREG, SHDR_ST, SHDR_ST_ATTR, RELATED_SEGMENTED_ARRAY< T, block_size >::Size(), SEGMENTED_ARRAY< T, block_size >::Size(), SCOPE::st_attr_tab, SCOPE::st_tab, UINT, and write_table().
Referenced by WN_write_symtab().
| off_t ir_b_write_tree | ( | WN * | node, | |
| off_t | base_offset, | |||
| Output_File * | fl, | |||
| WN_MAP | off_map | |||
| ) |
Definition at line 334 of file ir_bcom.cxx.
References __ALIGNOF, BOOL, Enter_tcon(), FALSE, IPA_NODE::File_Header(), FmtAssert, Get_Node_From_PU(), IPA_NODE::Get_PU(), Host_To_Targ(), i, index(), INITO_val(), INITV_blk(), INITV_kind(), INITV_next(), INITV_Set_VAL(), Initv_Table, INITV_tc_val(), INITVKIND_ZERO, INT32, IPA_get_symbol_file_array(), ir_b_save_buf(), ir_b_write_tree(), Is_True, malloc, Malloc_Mem_Pool, MEM_POOL_Alloc, MTYPE_U4, next, NULL, OPC_BLOCK, opcode, OPCODE_has_next_prev(), OPCODE_is_leaf(), OPCODE_is_load(), OPCODE_is_store(), OPCODE_operator(), OPR_ILOAD, OPR_ISTORE, OPR_LDA, OPR_MLOAD, OPR_MSTORE, OPR_PARM, OPR_PREFETCH, OPR_PREFETCHX, OPR_REGION, PHASE_IPA, prev, PU_CXX_LANG, PU_src_lang, realloc, Set_INITV_next(), set_offset, size, SUMMARY_SYMBOL::St_idx(), sym_size, this_node(), TRUE, types, wn, WN_ADDR, WN_block_empty, WN_ereg_supp(), WN_first(), WN_kid(), WN_kid_count(), WN_last(), WN_MAP32_Get, WN_MAP32_Set, WN_MAP_AC_INTERNAL, WN_MAP_ALIAS_CLASS, WN_MAP_Get, WN_MAP_PREFETCH, WN_MAP_UNDEFINED, WN_next(), WN_opcode(), WN_operator(), WN_prev(), WN_region_is_EH, WN_region_pragmas, and WN_Size_and_StartAddress().
Referenced by ir_b_write_tree(), and WN_write_tree().
Definition at line 123 of file ir_bcom.cxx.
Referenced by ir_b_copy_file(), ir_b_save_buf(), ir_bwrite_signal_handler(), Ir_Lno_Signal_Handler(), and save_buf_at_offset().
Definition at line 76 of file opt_ipaa_io.h.
| const char* Whirl_Revision |
Definition at line 111 of file ir_bcom.cxx.
Referenced by CG_Process_Command_Line(), ipl_main(), lno_main(), WN_write_revision(), and wopt_main().
1.5.6