osprey/dipa/rta/open64/mempool.h File Reference

Go to the source code of this file.

Data Types

type  mem_pool

Defines

#define TYPE_ALLOCA(type)   ((type *)alloca(sizeof(type)))
#define TYPE_ALLOCA_N(type, n)   ((type *)alloca(sizeof(type) * (n)))
#define Malloc_Mem_Pool   (MEM_POOL *) 1
#define Default_Mem_Pool   (MEM_POOL *) 0
#define MEM_STAT_ARGS(line, file)   ,INT32 line, const char *file
#define MEM_POOL_Zeroed(pool)   ((pool)->bz)
#define MEM_POOL_Alloc(pool, size)   MEM_POOL_Alloc_P(pool,size,0,NULL)
#define MEM_POOL_Realloc(pool, o, os, ns)   MEM_POOL_Realloc_P((pool),(o),(os),(ns),0,NULL)
#define MEM_POOL_Push(pool)   MEM_POOL_Push_P(pool,0,NULL)
#define MEM_POOL_Push_Freeze(pool)   MEM_POOL_Push_Freeze_P(pool,0,NULL)
#define MEM_POOL_Pop(pool)   MEM_POOL_Pop_P(pool,0,NULL)
#define MEM_POOL_Pop_Unfreeze(pool)   MEM_POOL_Pop_Unfreeze_P(pool,0,NULL)
#define MEM_POOL_Initialize(pool, name, bz)   MEM_POOL_Initialize_P(pool,name,bz,0,NULL)
#define TYPE_MEM_POOL_ALLOC(type, pool)   ((type *) MEM_POOL_Alloc(pool,sizeof(type)))
#define TYPE_MEM_POOL_ALLOC_N(type, pool, n)   ((type *) MEM_POOL_Alloc(pool,sizeof(type) * (n)))
#define TYPE_MEM_POOL_REALLOC_N(type, pool, old_block, old_n, new_n)
#define L_Save()   MEM_POOL_Push(MEM_local_pool_ptr)
#define L_Alloc(x)   MEM_POOL_Alloc(MEM_local_pool_ptr,(x))
#define L_Free()   MEM_POOL_Pop(MEM_local_pool_ptr)
#define P_Alloc(x)   MEM_POOL_Alloc(MEM_phase_pool_ptr,(x))
#define Src_Alloc(x)   MEM_POOL_Alloc(MEM_src_pool_ptr,(x))
#define Pu_Alloc(x)   MEM_POOL_Alloc(MEM_pu_pool_ptr,(x))
#define TYPE_L_ALLOC(type)   ((type*)L_Alloc(sizeof(type)))
#define TYPE_L_ALLOC_N(type, n)   ((type*)L_Alloc(sizeof(type)*(n)))
#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)))

Typedefs

typedef struct mem_block MEM_BLOCK
typedef struct mem_pool_blocks MEM_POOL_BLOCKS
typedef struct mem_stat MEM_STAT
typedef struct mem_pure_stack MEM_PURE_STACK
typedef struct mem_pool MEM_POOL

Functions/Subroutines

void MEM_Initialize (void)
void MEM_Trace (void)
void Trace_Memory_Allocation (INT phase, const char *pname)
void MEM_Tracing_Enable (void)
MEM_PTR MEM_POOL_Alloc_P (MEM_POOL *mempool, size_t size)
MEM_PTR MEM_POOL_Realloc_P (MEM_POOL *mempool, MEM_PTR old_block, size_t old_size, size_t new_size)
void MEM_POOL_Push_P (MEM_POOL *pool)
void MEM_POOL_Push_Freeze_P (MEM_POOL *pool)
void MEM_POOL_Pop_P (MEM_POOL *pool)
void MEM_POOL_Pop_Unfreeze_P (MEM_POOL *pool)
void MEM_POOL_Set_Default (MEM_POOL *pool)
void MEM_POOL_FREE (MEM_POOL *pool, void *data)
void MEM_POOL_Delete (MEM_POOL *pool)
void MEM_POOL_Initialize_P (MEM_POOL *pool, char *name, BOOL bz)
MEM_PTR Realloc_Clear (MEM_PTR ptr, INT32 new_size, INT32 old_size)
MEM_PTR Re_Calloc (MEM_PTR ptr, INT32 new_nelem, INT32 elsize, INT32 old_nelem)

Variables

MEM_POOL MEM_local_pool
MEM_POOL MEM_src_pool
MEM_POOL MEM_pu_pool
MEM_POOL MEM_phase_pool
MEM_POOLMEM_local_pool_ptr
MEM_POOLMEM_src_pool_ptr
MEM_POOLMEM_pu_pool_ptr
MEM_POOLMEM_phase_pool_ptr
MEM_POOL MEM_local_nz_pool
MEM_POOL MEM_src_nz_pool
MEM_POOL MEM_pu_nz_pool
MEM_POOL MEM_phase_nz_pool
MEM_POOLMEM_local_nz_pool_ptr
MEM_POOLMEM_src_nz_pool_ptr
MEM_POOLMEM_pu_nz_pool_ptr
MEM_POOLMEM_phase_nz_pool_ptr


Define Documentation

#define Default_Mem_Pool   (MEM_POOL *) 0

Definition at line 452 of file mempool.h.

#define L_Alloc (  )     MEM_POOL_Alloc(MEM_local_pool_ptr,(x))

Definition at line 674 of file mempool.h.

 
#define L_Free (  )     MEM_POOL_Pop(MEM_local_pool_ptr)

Definition at line 675 of file mempool.h.

 
#define L_Save (  )     MEM_POOL_Push(MEM_local_pool_ptr)

Definition at line 673 of file mempool.h.

#define Malloc_Mem_Pool   (MEM_POOL *) 1

Definition at line 451 of file mempool.h.

#define MEM_POOL_Alloc ( pool,
size   )     MEM_POOL_Alloc_P(pool,size,0,NULL)

Definition at line 637 of file mempool.h.

#define MEM_POOL_Initialize ( pool,
name,
bz   )     MEM_POOL_Initialize_P(pool,name,bz,0,NULL)

Definition at line 655 of file mempool.h.

#define MEM_POOL_Pop ( pool   )     MEM_POOL_Pop_P(pool,0,NULL)

Definition at line 649 of file mempool.h.

#define MEM_POOL_Pop_Unfreeze ( pool   )     MEM_POOL_Pop_Unfreeze_P(pool,0,NULL)

Definition at line 652 of file mempool.h.

#define MEM_POOL_Push ( pool   )     MEM_POOL_Push_P(pool,0,NULL)

Definition at line 643 of file mempool.h.

#define MEM_POOL_Push_Freeze ( pool   )     MEM_POOL_Push_Freeze_P(pool,0,NULL)

Definition at line 646 of file mempool.h.

#define MEM_POOL_Realloc ( pool,
o,
os,
ns   )     MEM_POOL_Realloc_P((pool),(o),(os),(ns),0,NULL)

Definition at line 640 of file mempool.h.

#define MEM_POOL_Zeroed ( pool   )     ((pool)->bz)

Definition at line 518 of file mempool.h.

#define MEM_STAT_ARGS ( line,
file   )     ,INT32 line, const char *file

Definition at line 513 of file mempool.h.

#define P_Alloc (  )     MEM_POOL_Alloc(MEM_phase_pool_ptr,(x))

Definition at line 677 of file mempool.h.

#define Pu_Alloc (  )     MEM_POOL_Alloc(MEM_pu_pool_ptr,(x))

Definition at line 679 of file mempool.h.

#define Src_Alloc (  )     MEM_POOL_Alloc(MEM_src_pool_ptr,(x))

Definition at line 678 of file mempool.h.

#define TYPE_ALLOCA ( type   )     ((type *)alloca(sizeof(type)))

Definition at line 443 of file mempool.h.

#define TYPE_ALLOCA_N ( type,
n   )     ((type *)alloca(sizeof(type) * (n)))

Definition at line 444 of file mempool.h.

#define TYPE_L_ALLOC ( type   )     ((type*)L_Alloc(sizeof(type)))

Definition at line 681 of file mempool.h.

#define TYPE_L_ALLOC_N ( type,
n   )     ((type*)L_Alloc(sizeof(type)*(n)))

Definition at line 682 of file mempool.h.

#define TYPE_MEM_POOL_ALLOC ( type,
pool   )     ((type *) MEM_POOL_Alloc(pool,sizeof(type)))

Definition at line 659 of file mempool.h.

#define TYPE_MEM_POOL_ALLOC_N ( type,
pool,
n   )     ((type *) MEM_POOL_Alloc(pool,sizeof(type) * (n)))

Definition at line 662 of file mempool.h.

#define TYPE_MEM_POOL_REALLOC_N ( type,
pool,
old_block,
old_n,
new_n   ) 

Value:

((type *) MEM_POOL_Realloc(pool,((MEM_PTR) old_block),              \
                                    (sizeof(type) * (old_n)),           \
                                    (sizeof(type) * (new_n))))

Definition at line 665 of file mempool.h.

#define TYPE_P_ALLOC ( type   )     ((type*)P_Alloc(sizeof(type)))

Definition at line 683 of file mempool.h.

#define TYPE_P_ALLOC_N ( type,
n   )     ((type*)P_Alloc(sizeof(type)*(n)))

Definition at line 684 of file mempool.h.

#define TYPE_PU_ALLOC ( type   )     ((type*)Pu_Alloc(sizeof(type)))

Definition at line 685 of file mempool.h.

#define TYPE_PU_ALLOC_N ( type,
n   )     ((type*)Pu_Alloc(sizeof(type)*(n)))

Definition at line 686 of file mempool.h.

#define TYPE_SRC_ALLOC ( type   )     ((type*)Src_Alloc(sizeof(type)))

Definition at line 687 of file mempool.h.

#define TYPE_SRC_ALLOC_N ( type,
n   )     ((type*)Src_Alloc(sizeof(type)*(n)))

Definition at line 688 of file mempool.h.


Typedef Documentation

Definition at line 456 of file mempool.h.

Definition at line 476 of file mempool.h.

Definition at line 460 of file mempool.h.

Definition at line 468 of file mempool.h.

Definition at line 464 of file mempool.h.


Function Documentation

void MEM_Initialize ( void   ) 

MEM_PTR MEM_POOL_Alloc_P ( MEM_POOL mempool,
size_t  size 
)

void MEM_POOL_Delete ( MEM_POOL pool  ) 

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().

void MEM_POOL_FREE ( MEM_POOL pool,
void data 
)

void MEM_POOL_Initialize_P ( MEM_POOL pool,
char *  name,
BOOL  bz 
)

void MEM_POOL_Pop_P ( MEM_POOL pool  ) 

void MEM_POOL_Pop_Unfreeze_P ( MEM_POOL pool  ) 

void MEM_POOL_Push_Freeze_P ( MEM_POOL pool  ) 

void MEM_POOL_Push_P ( MEM_POOL pool  ) 

MEM_PTR MEM_POOL_Realloc_P ( MEM_POOL mempool,
MEM_PTR  old_block,
size_t  old_size,
size_t  new_size 
)

void MEM_POOL_Set_Default ( MEM_POOL pool  ) 

void MEM_Trace ( void   ) 

void MEM_Tracing_Enable ( void   ) 

MEM_PTR Re_Calloc ( MEM_PTR  ptr,
INT32  new_nelem,
INT32  elsize,
INT32  old_nelem 
)

Definition at line 2208 of file memory.c.

References Realloc_Clear().

MEM_PTR Realloc_Clear ( MEM_PTR  ptr,
INT32  new_size,
INT32  old_size 
)

Definition at line 2158 of file memory.c.

References BZERO, bzero(), EC_No_Mem, ErrMsg(), INT32, NULL, printf(), purify_pools_trace, realloc, and result.

Referenced by Re_Calloc().

void Trace_Memory_Allocation ( INT  phase,
const char *  pname 
)

Definition at line 949 of file memory.c.

References DBar, fprintf(), Get_Trace(), MEM_Trace(), TFile, and TKIND_ALLOC.

Referenced by Check_for_Dump().


Variable Documentation

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 148 of file memory.c.

Referenced by Perform_Interprocedural_Analysis().

Definition at line 134 of file memory.c.

Definition at line 146 of file memory.c.


Generated on Wed Apr 8 14:43:21 2009 for Open64 by  doxygen 1.5.6