Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "defs.h"
Go to the source code of this file.
#define Default_Mem_Pool (MEM_POOL *) 0 |
Definition at line 443 of file mempool.h.
Referenced by MEM_POOL_Alloc_P(), MEM_POOL_Delete(), MEM_POOL_FREE(), MEM_POOL_Initialize_P(), MEM_POOL_Pop_P(), MEM_POOL_Push_P(), MEM_POOL_Realloc_P(), BINARY_TREE< BINARY_NODE >::~BINARY_TREE(), and BINARY_TREE_NODE< BINARY_NODE >::~BINARY_TREE_NODE().
#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 |
Definition at line 442 of file mempool.h.
Referenced by DRA_Add_Clone(), DRA_Finalize(), DRA_Initialize(), DRA_Open_And_Map_File(), DRA_Set_Write_Location(), Get_Original_Type(), initialize_strtab(), Initialize_Symbol_Tables(), IPA_WN_MAP_Delete(), IPO_CLONE::IPO_CLONE(), ir_b2a(), main(), ir_a2b::MapFlagsToStr(), ir_a2b::MapStrToEnum(), ir_a2b::MapStrToFlags(), MEM_POOL_Alloc_P(), MEM_POOL_Delete(), MEM_POOL_FREE(), MEM_POOL_Initialize_P(), MEM_POOL_Pop_P(), MEM_POOL_Push_P(), MEM_POOL_Realloc_P(), New_Scope(), operator delete(), operator new(), STR_TAB< STR >::reserve(), Stab_finalize_flags(), Stab_initialize_flags(), W2FC_FLAG_ARRAY::W2FC_FLAG_ARRAY(), WN_FreeStack(), WN_InitStack(), WN_Push(), and W2FC_FLAG_ARRAY::~W2FC_FLAG_ARRAY().
#define MEM_POOL_Alloc | ( | pool, | |
size | |||
) | MEM_POOL_Alloc_P(pool,size,__LINE__,__FILE__) |
Definition at line 607 of file mempool.h.
Referenced by ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_table_space(), SEGMENTED_ARRAY< T, block_size >::Allocate(), RELATED_SEGMENTED_ARRAY< T, block_size >::Allocate(), build_graph(), build_graph_u(), IPO_CLONE::Copy_Node(), create_vertex_iter(), cwh_auxst_alloc_container_table(), Depth_First_Ordering(), ARRAY_SUMMARY::Init(), initialize_strtab(), Initialize_Symbol_Tables(), IR_reader_init(), IPO_SYMTAB::New_Symtab(), PU_Profile_Handle::PU_Profile_Handle(), Save_Local_Symtab(), WN_Create(), and WN_InitStack().
#define MEM_POOL_Initialize | ( | pool, | |
name, | |||
bz | |||
) | MEM_POOL_Initialize_P(pool,name,bz,__LINE__,__FILE__) |
Definition at line 625 of file mempool.h.
Referenced by Anl_Init(), Anl_Static_Analysis(), BE_symtab_initialize_be_scopes(), DRA_Clone_Initialize(), DRA_Initialize(), DRA_Processing(), dV_view_whirl(), FB_CFG_MEM::FB_CFG_MEM(), ARRAY_SUMMARY::Init(), LowerUPC_Init_Consistency(), MEM_Initialize(), MemCtr_Init(), PDGCS_initialize(), Process_Fill_Align_Pragmas(), OPTIONS_STACK::Process_Pragma_Options(), sgi_cmd_line(), W2C_Init(), W2F_Init(), WN_Create(), WN_Mem_Pop(), WN_Mem_Push(), and WN_Verifier::WN_Verifier().
#define MEM_POOL_Pop | ( | pool | ) | MEM_POOL_Pop_P(pool,__LINE__,__FILE__) |
Definition at line 619 of file mempool.h.
Referenced by Anl_Fini(), Anl_Static_Analysis(), BE_symtab_free_be_scopes(), PROJECTED_REGION::Compare(), DRA_Finalize(), DRA_Processing(), ARRAY_SUMMARY::Finalize(), Ipl_Processing(), ir_b2a_process_PUs(), ir_sel(), main(), MEM_POOL_Delete(), MEM_POOL_Report(), MemCtr_Add(), Postprocess_PU(), OPTIONS_STACK::Process_Pragma_Options(), process_pu(), PROJECTED_KERNEL::Project(), W2C_Fini(), W2C_Pop_PU(), W2F_Fini(), W2F_Pop_PU(), WN_Mem_Pop(), Write_PU_Info(), FB_CFG_MEM::~FB_CFG_MEM(), and WN_Verifier::~WN_Verifier().
#define MEM_POOL_Pop_Unfreeze | ( | pool | ) | MEM_POOL_Pop_Unfreeze_P(pool,__LINE__,__FILE__) |
Definition at line 622 of file mempool.h.
Referenced by Anl_Static_Analysis().
#define MEM_POOL_Push | ( | pool | ) | MEM_POOL_Push_P(pool,__LINE__,__FILE__) |
Definition at line 613 of file mempool.h.
Referenced by Anl_Init(), Anl_Static_Analysis(), BE_symtab_initialize_be_scopes(), PROJECTED_REGION::Compare(), DRA_Clone_Initialize(), DRA_Processing(), FB_CFG_MEM::FB_CFG_MEM(), ARRAY_SUMMARY::Init(), Ipl_Processing(), ir_b2a_process_PUs(), IR_reader_init(), ir_sel(), LowerUPC_Init_Consistency(), main(), MEM_Initialize(), MEM_POOL_Initialize_P(), MEM_POOL_Report(), MemCtr_Add(), PDGCS_initialize(), Preprocess_PU(), OPTIONS_STACK::Process_Pragma_Options(), process_pu(), PROJECTED_KERNEL::Project(), sgi_cmd_line(), W2C_Init(), W2C_Push_PU(), W2F_Init(), W2F_Push_PU(), WN_Create(), WN_Mem_Push(), WN_Verifier::WN_Verifier(), and Write_PU_Info().
#define MEM_POOL_Push_Freeze | ( | pool | ) | MEM_POOL_Push_Freeze_P(pool,__LINE__,__FILE__) |
Definition at line 616 of file mempool.h.
Referenced by Anl_Static_Analysis(), and Process_Fill_Align_Pragmas().
#define MEM_POOL_Realloc | ( | pool, | |
o, | |||
os, | |||
ns | |||
) | MEM_POOL_Realloc_P((pool),(o),(os),(ns),__LINE__,__FILE__) |
Definition at line 610 of file mempool.h.
Referenced by ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_table_space(), ID_MAP< NODE_TYPE, KEY_TYPE >::Enlarge(), grow_edge(), grow_vertex(), New_Scope(), STR_TAB< STR >::reserve(), WN_MAP_realloc_array(), and WN_Push().
#define MEM_POOL_Zeroed | ( | pool | ) | ((pool)->bz) |
Definition at line 509 of file mempool.h.
Referenced by _X_PROP_CREATE_(), BS_Create_Empty(), bs_Realloc(), and TI_RES_COUNT_Alloc().
#define MEM_STAT_ARGS | ( | line, | |
file | |||
) | ,INT32 line, const char *file |
#define P_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_phase_pool_ptr,(x)) |
#define Pu_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_pu_pool_ptr,(x)) |
Definition at line 670 of file mempool.h.
Referenced by Symtab_Alloc().
#define Src_Alloc | ( | x | ) | MEM_POOL_Alloc(MEM_src_pool_ptr,(x)) |
Definition at line 669 of file mempool.h.
Referenced by Init_PU_arg_area_size_array(), Init_ST_formal_info_for_PU(), Process_Control_Opt(), and Symtab_Alloc().
#define TYPE_ALLOCA | ( | type | ) | ((type *)alloca(sizeof(type))) |
#define TYPE_ALLOCA_N | ( | type, | |
n | |||
) | ((type *)alloca(sizeof(type) * (n))) |
#define TYPE_L_ALLOC | ( | type | ) | ((type*)L_Alloc(sizeof(type))) |
Definition at line 672 of file mempool.h.
Referenced by AddToDUMPDEP().
#define TYPE_L_ALLOC_N | ( | type, | |
n | |||
) | ((type*)L_Alloc(sizeof(type)*(n))) |
#define TYPE_MEM_POOL_ALLOC | ( | type, | |
pool | |||
) | ((type *) MEM_POOL_Alloc(pool,sizeof(type))) |
Definition at line 650 of file mempool.h.
Referenced by _X_PUSH_(), cwh_pdgcs_pu_mem(), DEP_Lex_Pos_Decompose(), MEM_POOL_Push_P(), New_DST(), Site_Account_Push(), TI_RES_COUNT_Alloc(), TI_RES_RES_Alloc(), and WN_MAP_TAB_Create().
#define TYPE_MEM_POOL_ALLOC_N | ( | type, | |
pool, | |||
n | |||
) | ((type *) MEM_POOL_Alloc(pool,sizeof(type) * (n))) |
Definition at line 653 of file mempool.h.
Referenced by _X_PROP_CREATE_(), mempool_allocator< T >::allocate(), bs_Malloc(), DEPV_Copy(), DEPV_Create(), DEPV_CreateEqual(), DEPV_CreateStar(), ir_a2b::MapFlagsToStr(), MEM_POOL_Report(), PRQ_Initialize(), Save_Cur_PU_Name(), TI_RES_COUNT_Alloc(), TI_RES_RES_Set_BB_Cycle_Count(), and WN_MAP_Add_Free_List().
#define TYPE_MEM_POOL_REALLOC_N | ( | type, | |
pool, | |||
old_block, | |||
old_n, | |||
new_n | |||
) |
((type *) MEM_POOL_Realloc(pool,((MEM_PTR) old_block), \ (sizeof(type) * (old_n)), \ (sizeof(type) * (new_n))))
Definition at line 656 of file mempool.h.
Referenced by bs_Realloc(), Init_PU_arg_area_size_array(), ir_a2b::MapFlagsToStr(), new_block(), PRQ_Insert(), Realloc_ST_formal_info(), and WN_MAP_Add_Free_List().
#define TYPE_P_ALLOC | ( | type | ) | ((type*)P_Alloc(sizeof(type))) |
#define TYPE_P_ALLOC_N | ( | type, | |
n | |||
) | ((type*)P_Alloc(sizeof(type)*(n))) |
#define TYPE_PU_ALLOC | ( | type | ) | ((type*)Pu_Alloc(sizeof(type))) |
#define TYPE_PU_ALLOC_N | ( | type, | |
n | |||
) | ((type*)Pu_Alloc(sizeof(type)*(n))) |
#define TYPE_SRC_ALLOC | ( | type | ) | ((type*)Src_Alloc(sizeof(type))) |
#define TYPE_SRC_ALLOC_N | ( | type, | |
n | |||
) | ((type*)Src_Alloc(sizeof(type)*(n))) |
typedef struct mem_pool_blocks MEM_POOL_BLOCKS |
typedef struct mem_pure_stack MEM_PURE_STACK |
void MEM_Initialize | ( | void | ) |
Definition at line 1861 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 main(), and sgi_cmd_line().
MEM_PTR MEM_POOL_Alloc_P | ( | MEM_POOL * | mempool, |
size_t | size | ||
) |
Definition at line 1082 of file memory.c.
References Default_Mem_Pool, DevWarn(), EC_No_Mem, ErrMsg(), Is_True, MAGIC_NUM, 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, PAD_TO_ALIGN, purify_pools, purify_pools_trace, Raw_Allocate(), Site_Account_Alloc(), size, The_Default_Mem_Pool, and TRUE.
Referenced by operator new().
void MEM_POOL_Delete | ( | MEM_POOL * | pool | ) |
Definition at line 1697 of file memory.c.
References Default_Mem_Pool, DevWarn(), free_mem_pool_blocks_list, initialized_pools, 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, purify_pools, purify_pools_trace_x, and The_Default_Mem_Pool.
Referenced by Anl_Fini(), Anl_Static_Analysis(), BE_symtab_free_be_scopes(), DRA_Finalize(), DRA_Processing(), ARRAY_SUMMARY::Finalize(), W2C_Fini(), W2F_Fini(), FB_CFG_MEM::~FB_CFG_MEM(), and WN_Verifier::~WN_Verifier().
void MEM_POOL_FREE | ( | MEM_POOL * | pool, |
void * | data | ||
) |
Definition at line 1605 of file memory.c.
References 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, purify_pools, purify_pools_trace, The_Default_Mem_Pool, and TRUE.
void MEM_POOL_Initialize_P | ( | MEM_POOL * | pool, |
const char * | name, | ||
BOOL | bz | ||
) |
Definition at line 1798 of file memory.c.
References Default_Mem_Pool, FALSE, initialized_pools, 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, name, NULL, pool, purify_pools, purify_pools_trace_x, and The_Default_Mem_Pool.
void MEM_POOL_Pop_P | ( | MEM_POOL * | pool | ) |
Definition at line 1469 of file memory.c.
References Default_Mem_Pool, FALSE, FmtAssert, fprintf(), free(), free_mem_pool_blocks_list, 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, purify_pools, purify_pools_trace, purify_pools_trace_x, Site_Account_Pop(), TFile, and The_Default_Mem_Pool.
Referenced by MEM_POOL_Pop_Unfreeze_P().
void MEM_POOL_Pop_Unfreeze_P | ( | MEM_POOL * | pool | ) |
Definition at line 1584 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(), purify_pools_trace_x, and TRUE.
void MEM_POOL_Push_Freeze_P | ( | MEM_POOL * | pool | ) |
Definition at line 1439 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(), purify_pools_trace_x, and TRUE.
void MEM_POOL_Push_P | ( | MEM_POOL * | pool | ) |
Definition at line 1343 of file memory.c.
References Default_Mem_Pool, FALSE, FmtAssert, free_mem_pool_blocks_list, Is_True, MAGIC_NUM, 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_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, pool, purify_pools, purify_pools_trace_x, Site_Account_Push(), The_Default_Mem_Pool, 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 1153 of file memory.c.
References Default_Mem_Pool, DevWarn(), EC_No_Mem, ErrMsg(), FALSE, FmtAssert, Is_True, MAGIC_NUM, 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, PAD_TO_ALIGN, purify_pools, purify_pools_trace, Raw_Allocate(), result, Site_Account_Alloc(), The_Default_Mem_Pool, and TRUE.
void MEM_POOL_Set_Default | ( | MEM_POOL * | pool | ) |
Definition at line 1600 of file memory.c.
References pool.
Referenced by BINARY_TREE< BINARY_NODE >::~BINARY_TREE().
void MEM_Trace | ( | void | ) |
Definition at line 852 of file memory.c.
References fprintf(), MEM_POOL_Report(), MEM_POOL_rest, NULL, pool, and TFile.
Referenced by Ipl_Processing(), main(), and Trace_Memory_Allocation().
void MEM_Tracing_Enable | ( | void | ) |
Definition at line 922 of file memory.c.
References mem_tracing_enabled, and TRUE.
Referenced by main().
Definition at line 2000 of file memory.c.
References Realloc_Clear().
MEM_PTR Realloc_Clear | ( | MEM_PTR | ptr, |
INT32 | new_size, | ||
INT32 | old_size | ||
) |
void Trace_Memory_Allocation | ( | INT | phase, |
const char * | pname | ||
) |
Definition at line 900 of file memory.c.
References DBar, fprintf(), Get_Trace(), MEM_Trace(), TFile, and TKIND_ALLOC.
Definition at line 97 of file memory.c.
Referenced by Write_PU_Info().
Definition at line 78 of file memory.c.
Referenced by Ipl_Processing(), and IR_reader_init().
Definition at line 94 of file memory.c.
Referenced by OPTIONS_STACK::Pop_Current_Options(), OPTIONS_STACK::Push_Current_Options(), and Save_Cur_PU_Name().
Definition at line 99 of file memory.c.
Referenced by Do_WOPT_and_CG_with_Regions(), Ipl_Processing(), ir_b2a_process_PUs(), ir_sel(), main(), Post_Process_Backend(), Postprocess_PU(), Preprocess_PU(), process_pu(), Read_Local_Info(), and read_pu().
Definition at line 80 of file memory.c.
Referenced by Backend_Processing(), Do_WOPT_and_CG_with_Regions(), and Preprocess_PU().
Definition at line 85 of file memory.c.
Referenced by DRA_Add_Clone(), ir_b2a_process_PUs(), ir_sel(), Postprocess_PU(), and Preprocess_PU().
Definition at line 79 of file memory.c.
Referenced by DRA_Add_Clone(), DRA_Clone_Initialize(), DRA_Mangle_All(), DRA_Mangle_Call_Site(), DRA_Mangle_Entry(), Init_PU_arg_area_size_array(), main(), and Realloc_ST_formal_info().
Definition at line 84 of file memory.c.
Referenced by create_ipa_internal_name(), DST_enter_cloned_childs(), new_block(), and New_DST().