Go to the source code of this file.
| #define L_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_local_pool_ptr,(x)) |
| #define L_Free | ( | ) | MEM_POOL_Pop(MEM_local_pool_ptr) |
| #define L_Save | ( | ) | MEM_POOL_Push(MEM_local_pool_ptr) |
| #define Malloc_Mem_Pool (MEM_POOL *) 1 |
| #define P_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_phase_pool_ptr,(x)) |
| #define Pu_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_pu_pool_ptr,(x)) |
| #define Src_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_src_pool_ptr,(x)) |
| typedef struct mem_pool_blocks MEM_POOL_BLOCKS |
| typedef struct mem_pure_stack MEM_PURE_STACK |
Definition at line 2064 of file memory.c.
References DevWarn, FALSE, getenv(), MEM_POOL_Initialize, MEM_POOL_Push, purify_pools, purify_pools_trace, purify_pools_trace_x, and TRUE.
Referenced by ipa_dot_so_init(), main(), sgi_cmd_line(), WFE_Init(), and WGEN_Init().
Definition at line 1143 of file memory.c.
References calloc(), Default_Mem_Pool, DevWarn, EC_No_Mem, ErrMsg(), Is_True, MAGIC_NUM, malloc, Malloc_Mem_Pool, MEM_POOL_blocks, MEM_POOL_last_alloc, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_pure_stack, mem_tracing_enabled, NULL, p, PAD_TO_ALIGN, printf(), purify_pools, purify_pools_trace, Raw_Allocate(), Site_Account_Alloc(), size, TRUE, and UINT64.
Referenced by get_can_be_reordered_types(), Handle_ty_map_and_flatten_fields::Get_unaltered_map(), SUMMARY_STRUCT_ACCESS::Init(), IPA_reorder_legality_process(), IPO_reorder_Fld_Tab(), Merge_struct_access(), and operator new().
Definition at line 1818 of file memory.c.
References BZERO, bzero(), Default_Mem_Pool, DevWarn, Is_True, MAGIC_NUM, Malloc_Mem_Pool, MEM_POOL_blocks, MEM_POOL_BLOCKS_rest, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_Pop, MEM_POOL_pure_stack, MEM_POOL_rest, MEM_STAT_In_List(), mem_tracing_enabled, NULL, printf(), purify_pools, and purify_pools_trace_x.
Referenced by Alloc_Regs_For_BB(), Anl_Fini(), Anl_Static_Analysis(), Automatic_Data_Distribute(), BE_symtab_free_be_scopes(), Cache_Analysis_End(), CG_DEP_Delete_Graph(), CG_End_Gcov(), CG_Fini(), CGGRP_Fini(), Clear_Common_Block_Element_Map(), Clear_Extra_Auxiliary_Tables(), Convert_x87_Regs(), Create_Unique_Defs_For_TNs(), Create_Vector_Load_Stores(), DB_Rename_Cond_TN_Finish(), Destroy_File_Header(), Doacross_Finish(), DRA_Finalize(), DRA_Processing(), dV_view_fb_cfg(), dV_view_fb_opt_cfg(), EBO_Finalize(), ARRAY_SUMMARY::Finalize(), LRANGE_SUB_MGR::Finalize(), Finalize_Access_Vals(), Finalize_Memory(), finish_idx_ops(), Fiss_Gather_Loop(), Fission_Finish(), Fix_LRA_Blues(), Free_Dominators_Memory(), free_pu_cg_resources(), Fusion_Finish(), GCM_Schedule_Region(), GRA_LIVE_Finalize_Memory(), HoistIf_Phase(), Inliner(), Inner_Fission(), ipa_driver(), IPA_Preopt_Finalize(), Is_Vectorizable_Loop(), Lego_File_Fini(), Lnoptimizer(), LWN_Process_FF_Pragmas(), Olimit_Region_Insertion(), Optimize_Copy_Usage(), Outer_Loop_Fusion_Phase(), Padding_Analysis(), Perform_Global_Schedule(), Perform_Interprocedural_Analysis(), Perform_Loop_Invariant_Code_Motion(), Perform_Loop_Optimizations(), Perform_Read_Write_Removal(), Prompf_Finish(), REGION_init(), CG_BROWSER::Sdebug(), SHACKLE_Phase(), Simd_Phase(), Stride_Region(), SWP_Bundle(), IPA_NODE::Un_Read_PU(), Vintrinsic_Fission_Phase(), W2C_Fini(), W2F_Fini(), WN_Annotate(), WN_Instrument(), Write_inline_pu(), ALIAS_MANAGER::~ALIAS_MANAGER(), CG_THR::~CG_THR(), DAG_MEM::~DAG_MEM(), DIRECTED_GRAPH16< TEDGE, TVERTEX >::~DIRECTED_GRAPH16(), FB_CFG_MEM::~FB_CFG_MEM(), GLOBAL_CYCLES_FINDER_MEM::~GLOBAL_CYCLES_FINDER_MEM(), HB_Schedule::~HB_Schedule(), IF_CONV_MEM::~IF_CONV_MEM(), INTERVAL_PROCESSOR_MEM::~INTERVAL_PROCESSOR_MEM(), LabelOpt::~LabelOpt(), OUTPUT_FUNC_START_PROFILER_MEM::~OUTPUT_FUNC_START_PROFILER_MEM(), PRDB_MEM::~PRDB_MEM(), PROFILE_MEM::~PROFILE_MEM(), REGION_LOOP_UPDATE_MEM::~REGION_LOOP_UPDATE_MEM(), REGION_TREE_MEM::~REGION_TREE_MEM(), REGIONAL_CFG_MEM::~REGIONAL_CFG_MEM(), SCC_DIRECTED_GRAPH16::~SCC_DIRECTED_GRAPH16(), SCC_FINDER_MEM::~SCC_FINDER_MEM(), SCHED_MEM::~SCHED_MEM(), SCHED_UTIL_MEM_POOL::~SCHED_UTIL_MEM_POOL(), TN_INFO_MEM::~TN_INFO_MEM(), TOPOLOGICAL_REGIONAL_CFG_ITER_MEM::~TOPOLOGICAL_REGIONAL_CFG_ITER_MEM(), WN_Verifier::~WN_Verifier(), and WOVP::~WOVP().
Definition at line 1726 of file memory.c.
References BOOL, cur, Default_Mem_Pool, FALSE, FmtAssert, free(), Is_True, MAGIC_NUM, Malloc_Mem_Pool, MEM_LARGE_BLOCK_base, MEM_LARGE_BLOCK_free(), MEM_LARGE_BLOCK_next, MEM_LARGE_BLOCK_OVERHEAD, MEM_LARGE_BLOCK_prev, MEM_LARGE_BLOCK_ptr, MEM_POOL_blocks, MEM_POOL_large_block, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_pure_stack, MEM_PURE_STACK_last_alloc, MEM_PURE_STACK_prev_stack, next, NULL, prev, printf(), purify_pools, purify_pools_trace, tmp, and TRUE.
Definition at line 1821 of file memory.cxx.
References bzero(), Default_Mem_Pool, FALSE, Is_True, MAGIC_NUM, Malloc_Mem_Pool, MEM_POOL_alloc_site_list, MEM_POOL_blocks, MEM_POOL_bz, MEM_POOL_frozen, MEM_POOL_INIT_IN_PROGRESS, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_pure_stack, MEM_POOL_Push, MEM_POOL_rest, MEM_STAT_In_List(), mem_tracing_enabled, NULL, printf(), purify_pools, and purify_pools_trace_x.
Definition at line 1559 of file memory.c.
References BZERO, bzero(), Default_Mem_Pool, FALSE, FmtAssert, fprintf(), free(), Is_True, MAGIC_NUM, Malloc_Mem_Pool, MEM_BLOCK_avail, MEM_BLOCK_first_ptr, MEM_BLOCK_ptr, MEM_BLOCK_rest, MEM_LARGE_BLOCK_free(), MEM_LARGE_BLOCK_next, MEM_POOL_blocks, MEM_POOL_BLOCKS_base_avail, MEM_POOL_BLOCKS_base_block, MEM_POOL_BLOCKS_base_ptr, MEM_POOL_BLOCKS_block, MEM_POOL_BLOCKS_large_block, MEM_POOL_BLOCKS_rest, MEM_POOL_bz, MEM_POOL_frozen, MEM_POOL_last_alloc, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_prev_stack, MEM_POOL_pure_stack, mem_tracing_enabled, next, NULL, printf(), purify_pools, purify_pools_trace, purify_pools_trace_x, REDZONE_SIZE, Site_Account_Pop(), TFile, tmp, and UINT64.
Referenced by MEM_POOL_Pop_Unfreeze_P().
Definition at line 1705 of file memory.c.
References FALSE, FmtAssert, Is_True, MAGIC_NUM, MEM_POOL_frozen, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_Pop_P(), printf(), purify_pools_trace_x, and TRUE.
Definition at line 1529 of file memory.c.
References FALSE, FmtAssert, Is_True, MAGIC_NUM, MEM_POOL_frozen, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_Push_P(), printf(), purify_pools_trace_x, and TRUE.
Definition at line 1421 of file memory.c.
References Default_Mem_Pool, FALSE, FmtAssert, Is_True, MAGIC_NUM, malloc, Malloc_Mem_Pool, MEM_BLOCK_avail, MEM_BLOCK_ptr, MEM_POOL_blocks, MEM_POOL_BLOCKS_base_avail, MEM_POOL_BLOCKS_base_block, MEM_POOL_BLOCKS_base_ptr, MEM_POOL_BLOCKS_block, MEM_POOL_BLOCKS_large_block, MEM_POOL_BLOCKS_rest, MEM_POOL_bz, MEM_POOL_frozen, MEM_POOL_INIT_IN_PROGRESS, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_pure_stack, MEM_PURE_STACK_last_alloc, MEM_PURE_STACK_prev_stack, mem_tracing_enabled, NULL, p, printf(), purify_pools, purify_pools_trace_x, REDZONE_SIZE, Site_Account_Push(), tmp, TRUE, and TYPE_MEM_POOL_ALLOC.
Referenced by MEM_POOL_Push_Freeze_P().
| MEM_PTR MEM_POOL_Realloc_P | ( | MEM_POOL * | mempool, | |
| MEM_PTR | old_block, | |||
| size_t | old_size, | |||
| size_t | new_size | |||
| ) |
Definition at line 1216 of file memory.c.
References BCOPY, bcopy(), BOOL, BZERO, bzero(), cur, Default_Mem_Pool, DevWarn, EC_No_Mem, ErrMsg(), FALSE, FmtAssert, Is_True, MAGIC_NUM, malloc, Malloc_Mem_Pool, MEM_LARGE_BLOCK_base, MEM_LARGE_BLOCK_next, MEM_LARGE_BLOCK_OVERHEAD, MEM_LARGE_BLOCK_prev, MEM_LARGE_BLOCK_ptr, MEM_LARGE_BLOCK_realloc(), MEM_POOL_blocks, MEM_POOL_bz, MEM_POOL_FREE, MEM_POOL_large_block, MEM_POOL_last_alloc, MEM_POOL_magic_num, MEM_POOL_name, MEM_POOL_pure_stack, MEM_PURE_STACK_last_alloc, MEM_PURE_STACK_prev_stack, mem_tracing_enabled, MIN_LARGE_BLOCK_SIZE, NULL, p, PAD_TO_ALIGN, prev, printf(), purify_pools, purify_pools_trace, Raw_Allocate(), realloc, result, Site_Account_Alloc(), size_t, tmp, TRUE, and UINT64.
Definition at line 1721 of file memory.c.
Referenced by COST_TABLE::COST_TABLE(), DEPV_LIST::Eliminate_Inner_Carried(), DEPV_LIST::Eliminate_Inner_Carried_Or_All_Equals(), DEPV_LIST::Eliminate_Non_Distance_Carried_By(), DEPV_LIST::Normalize_Step(), COST_TABLE::Realloc(), DEPV_LIST::Remove_Duplicates(), ACCESS_VECTOR::~ACCESS_VECTOR(), ARRAY_REF_LIST::~ARRAY_REF_LIST(), BINARY_TREE< BINARY_NODE >::~BINARY_TREE(), and DEPV_LIST::~DEPV_LIST().
Definition at line 901 of file memory.c.
References fprintf(), INT32, mallinfo(), MEM_POOL_Report(), MEM_POOL_rest, NULL, and TFile.
Referenced by Inline_Call(), Inline_callees_into_caller(), Inliner(), Ipl_Processing(), main(), Perform_Interprocedural_Analysis(), Perform_Interprocedural_Optimization(), ETABLE::Perform_LPRE_optimization(), ETABLE::Perform_PRE_optimization(), ETABLE::Perform_SPRE_optimization(), ETABLE::Perform_VNFRE_optimization(), and Trace_Memory_Allocation().
Definition at line 971 of file memory.c.
References mem_tracing_enabled, and TRUE.
Referenced by CG_PU_Initialize(), main(), ETABLE::Perform_LPRE_optimization(), ETABLE::Perform_PRE_optimization(), ETABLE::Perform_SPRE_optimization(), Process_Command_Line(), and Process_IPA_Options().
Definition at line 949 of file memory.c.
References DBar, fprintf(), Get_Trace(), MEM_Trace(), TFile, and TKIND_ALLOC.
Referenced by Check_for_Dump().
Definition at line 140 of file memory.c.
Referenced by Add_To_Live_Set(), Append_Succ(), Build_Complement_Interference_Graph(), Calculate_Component_Max_Costs_And_Min_Recurrence_II(), Calculate_Dominators(), Calculate_Interfering_GTNs(), Calculate_Min_Resource_II(), CFLOW_Optimize(), CG_Edge_Profile_Annotation(), CG_LOOP_Calculate_Max_Costs_And_Min_II(), CG_LOOP_Calculate_Min_Resource_II(), CG_PU_Finalize(), CG_PU_Initialize(), CG_SCHED_EST_BB_Cycles(), CG_SCHED_EST_Region_Cycles(), Cloned_Gain(), Complement_Copy(), Compute_Frequencies(), COST_VEC_Add_Cost(), COST_VEC_Initialize(), GRA_BB::Create_Global_Interferences(), Create_LUNITs(), CG_LOOP::Determine_SWP_Unroll_Factor(), Finalize_Compute_BB_Frequencies(), Fix_Interference(), Generate_Hot_Cold_Jump(), Initialize_BB_Info(), Initialize_Compute_BB_Frequencies(), Initialize_Freq_Edges(), Initialize_Wired_LRANGEs(), LRANGE::Interferes(), Is_Region(), ListVar_RefCount(), Loop_Amenable_For_SWP(), LOOP_DESCR_Estimate_Cycles(), LRANGE_Split(), Make_Fine_Grained_Interferences(), Move_Restore_Out_Of_LRANGE(), Move_Spill_Code_Above_Region(), Move_Spill_Out_Of_LRANGE(), Optimize_Placement(), Scan_Complement_BB_For_Referenced_TNs(), Unroll_Dowhile_Loop(), unroll_multi_bb(), and Wired_TN_Reference().
Definition at line 145 of file memory.c.
Referenced by Copy_edge_cprop_annot(), Evaluate_actuals(), IP_WRITE_pu_internal(), Perform_Interprocedural_Analysis(), output_queue::push(), and Write_PU_Info().
Definition at line 126 of file memory.c.
Referenced by Add_Fail_TNs(), Add_MEM_Arcs(), Add_Scheduling_Notes_For_Loops(), WB_BROWSER::Ancestors(), BB_REGION_Calculate_Dominators(), BB_SET_Calculate_Dominators(), butterfly_loop_with_profile(), Calculate_Control_Dependences(), Calculate_Path_Data(), Can_Be_Tail_Call(), Can_OP_Move(), CG_Generate_Code(), CG_PU_Finalize(), CG_PU_Initialize(), Check_for_Cycles(), Check_HB_For_PQS_Suitability(), Check_QuadWord_Boundary_Absolute(), Check_Region_Recur(), Compute_Frequencies(), Copy_BB_For_Tail_Duplication(), GRA_PARA_REGION_MGR::Create(), Create_Live_BB_Sets(), CG_LOOP::EBO_After_Unrolling(), CG_LOOP::EBO_Before_Unrolling(), EBO_Finish(), EBO_Post_Process_Region(), EBO_Start(), EMT_Emit_PU(), Enumerate_Paths(), Estimate_Callee_Saves(), GRA_PARA_REGION_MGR::Finalize(), Finalize_Compute_BB_Frequencies(), Finalize_Memory(), Find_BB_TNs(), Find_Candicate_OP(), Fix_LRA_Blues(), Force_If_Convert(), Form_General_Region(), Form_Hyperblocks(), Freq_Order_Blocks(), GCM_Fill_Branch_Delay_Slots(), GCM_For_Loop(), generate_loop_butterfly_zones(), Get_Freq_Data_For_BB(), Get_Local_TN_For_Global(), GRA_LIVE_Rename_TNs(), Handle_All_Hazards(), HB_Block_Select(), HB_Form_Hyperblocks(), HB_Identify_General_Candidates(), HB_Identify_Hammock_Candidates(), HB_If_Convert(), HB_Remove_Deleted_Blocks(), IGLS_Schedule_Region(), GRA_PARA_REGION_MGR::Initialize(), Initialize_Compute_BB_Frequencies(), Initialize_Freq_Edges(), Initialize_Memory(), initialize_region_stack(), Inliner(), Insert_Predicates(), Insert_Spills_Of_Globals(), IPA_Preoptimize(), Ipl_Processing(), IPO_Process_node(), IR_reader_finish(), IR_reader_init(), mark_prolog_epilog_bbs(), Normalize_BB_Frequencies(), OP_To_Move(), WB_BROWSER::Parent(), Path_Resources_Available(), Perform_Global_Optimization(), Perform_Loop_Nest_Optimization(), Perform_Post_GCM_Steps(), Perform_Preopt_Optimization(), Perform_SWP(), Print_Prompf_Preopt_Transaction_Log(), region_stack_push(), remove_prolog_or_epilog_bbs(), Rename_TNs_For_BB(), Replace_Size16_Instr(), Schedule_BB_For_GCM(), Select_Blocks(), SL1_patch(), SNL_Change_Reduction_Loop_Stmts(), Split_BB(), OPT_PU_POINTS_TO_SUMMARIZER::Summarize_points_to(), Update_GRA_Live_Sets(), CFG::Verify_cfg(), verify_flow_graph(), DU_MANAGER::Verify_wn_in_tree(), Visit_BB_Preds(), WB_ancestors(), and WB_parent().
Definition at line 131 of file memory.c.
Referenced by IPAA::Do_Simple_IPAA(), LOOP_MULTIVER::LOOP_MULTIVER(), Trace_Callgraph(), VHO_Lower_Switch(), and VHO_Switch_Generate_Compgoto().
Definition at line 143 of file memory.c.
Referenced by _OP_MAP_Create(), CG_LOOP_Backpatch_Add(), CG_LOOP_Init_Op(), CG_PU_Finalize(), CG_PU_Initialize(), hash_entry_create(), hash_table_create(), Unroll_Do_Loop(), Unroll_Do_Loop_Fully(), and Unroll_Dowhile_Loop().
Definition at line 129 of file memory.c.
Referenced by Acquire_Region_Info(), REGION_INFO_MGR::Acquire_Rgn_Info(), BB_MAP_grow(), Calculate_Dominator_Info(), CG_PU_Finalize(), CG_PU_Initialize(), hash_table_create(), PQSCG_init(), PQSCG_term(), REGION_MAP_grow(), Set_OP_To_WN_Map(), Whirl2ops_Initialize(), and Workaround_Dom_Info_For_In_Abnormal_Loop_Rgn().
Definition at line 142 of file memory.c.
Referenced by COMMENT_Add(), KEY_SCH::Gen_PKE(), KEY_SCH::Loop_Preconditioning(), note_not_unrolled(), note_remainder_head(), and Save_Cur_PU_Name().
Definition at line 147 of file memory.c.
Referenced by Create_MicroTask(), Do_WOPT_and_CG_with_Regions(), Get_CG_PU_Profile(), Get_CG_PU_Value_Profile(), Get_PU_Profile(), IPA_Preoptimize(), IPA_Start_Function(), Ipl_Processing(), IPO_Process_node(), ir_all(), ir_b2a_process_PUs(), ir_sel(), main(), Perform_Global_Optimization(), Perform_Loop_Nest_Optimization(), Perform_Preopt_Optimization(), Post_Process_Backend(), Postprocess_PU(), Preorder_annotate_PU_and_kids(), Preprocess_PU(), Process_Feedback_File(), process_pu(), Read_Local_Info(), read_pu(), and WN_MEMOP_ANNOT_MGR_Constructor::WN_MEMOP_ANNOT_MGR_Constructor().
Definition at line 128 of file memory.c.
Referenced by Add_General_Region_To_Tree(), Add_Scheduling_Note(), Add_Scheduling_Notes_For_Loops(), Append_Succ(), Attempt_Merge(), Backend_Processing(), Build_CFG(), CG_Generate_Code(), Convert_Goto_To_Return(), Copy_BB_For_Tail_Duplication(), defop_set(), Delete_PRDB(), Divide_BB(), Do_WOPT_and_CG_with_Regions(), EETARG_Generate_PIC_Entry_Code(), Gen_Literal_TN(), Gen_Symbol_TN(), Generate_Exit(), Generate_PRDB(), Generate_Unique_Exit(), GRA_LIVE_Initialize_Memory(), Handle_Chk_Split_Bunch(), Handle_Entry(), HB_Add_BBs_And_Map(), HB_Add_Block(), HB_Add_Block_And_Map(), HB_Blocks_Copy(), HB_CFLOW_Replace_Block(), HB_Identify_Hammock_Candidates(), Inliner(), IPFEC_Build_Skiplist(), LOCAL_SPILLS_Get_Spill_Location(), Merge_Blocks(), IF_CONVERTOR::Merge_Blocks(), NOTE_Add_To_BB(), OPS_Create(), Optimize_Tail_Calls(), Preprocess_PU(), Realloc_Preg_To_TN_Arrays(), REGION_Form_Region_Tree(), RGN_Divide_BB(), Split_BB(), TN_MAP_Set(), and Update_Local_Liveness_Info().
Definition at line 133 of file memory.c.
Referenced by Create_MicroTask(), DRA_Add_Clone(), KEY_SCH::Gen_Kernel_Info(), IPA_Create_Builtins(), IPA_NODE_CONTEXT::IPA_NODE_CONTEXT(), IPO_Clone(), ir_all(), ir_b2a_process_PUs(), ir_sel(), lower_bit_field_id(), Postprocess_PU(), Preprocess_PU(), SWP_Emit(), and IPA_NODE_CONTEXT::~IPA_NODE_CONTEXT().
Definition at line 141 of file memory.c.
Referenced by main(), OPTIONS_STACK::Pop_Current_Options(), and OPTIONS_STACK::Push_Current_Options().
Definition at line 127 of file memory.c.
Referenced by Allocate_Elf_Index_Space(), Allocate_PU_Points_To_Summary(), PU_POINTS_TO_SUMMARY_MGR::Allocate_PU_Points_To_Summary(), DRA_Add_Clone(), DRA_Clone_Initialize(), DRA_Mangle_All(), DRA_Mangle_Call_Site(), DRA_Mangle_Entry(), Init_PU_arg_area_size_array(), Init_Section(), Inliner(), main(), Realloc_Label_Info(), Realloc_ST_formal_info(), WFE_File_Finish(), WFE_File_Init(), WGEN_File_Finish(), and WGEN_File_Init().
Definition at line 132 of file memory.c.
Referenced by create_ipa_internal_name(), DST_enter_cloned_childs(), IPA_NODE_CONTEXT::IPA_NODE_CONTEXT(), new_block(), New_DST(), and IPA_NODE_CONTEXT::~IPA_NODE_CONTEXT().
1.5.6