osprey/common/com/symtab_utils.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MTYPE_To_TY(t)   MTYPE_TO_TY_array[t]
#define Be_Type_Tbl(t)   MTYPE_TO_TY_array[t]
#define TY_EQUIV_NO_FLAGS   0x00000000
#define TY_EQUIV_IGNORE_NAMES   0x00000001
#define TY_EQUIV_ALIGN   0x00000002
#define TY_EQUIV_QUALIFIER   0x00000004
#define MTYPE_To_PREG(t)   MTYPE_TO_PREG_array[t]
#define Int32_Preg   MTYPE_To_PREG (MTYPE_I4)
#define Int64_Preg   MTYPE_To_PREG (MTYPE_I8)
#define Float32_Preg   MTYPE_To_PREG (MTYPE_F4)
#define Float64_Preg   MTYPE_To_PREG (MTYPE_F8)
#define FOREACH_SYMBOL(level, s, i)   for (i = 1; i < ST_Table_Size(level) && (s = &St_Table(level,i)); ++i)
#define FOREACH_LABEL(level, s, i)   for (i = 1; i < LABEL_Table_Size(level) && (s = &Label_Table(i)); ++i)
#define FOREACH_INITO(level, o, i)   for (i = 1; i < INITO_Table_Size(level) && (o = &Inito_Table(level,i)); ++i)
#define FOREACH_INITV(init, v)   for (v = init; v != 0; v = Initv_Table[v].next)

Functions/Subroutines

INT64 ST_size (const ST *)
STCopy_ST (ST *st)
STCopy_ST (ST *st, SYMTAB_IDX scope)
STCopy_ST_No_Base (ST *st, SYMTAB_IDX scope)
BOOL ST_is_constant (const ST *)
BOOL ST_is_private_local (const ST *)
STGen_Temp_Symbol (TY_IDX ty, const char *rootname)
STGen_Read_Only_Symbol (TY_IDX, const char *rootname)
BOOL ST_visible_outside_dso (const ST &s)
BOOL ST_visible_outside_dso (const ST *s)
STGen_Intrinsic_Function (TY_IDX, const char *function_name)
TY_IDX Make_Function_Type (TY_IDX return_ty_idx)
TY_IDX Make_Array_Type (TYPE_ID element_type, INT32 ndim, INT64 len)
void Clear_local_symtab_addr_flags (const SCOPE &scope)
TY_IDX Copy_TY (TY_IDX ty)
UINT TY_log_base2 (UINT align)
TY_IDX TY_pointer (TY_IDX ty, BOOL f90_pointer=FALSE)
TY_IDX Make_Pointer_Type (TY_IDX ty_idx, BOOL f90_pointer=FALSE)
TY_IDX Make_F90_Pointer_Type (TY_IDX ty_idx)
TY_IDX Make_Align_Type (TY_IDX ty_idx, INT32 align)
TY_IDX Promoted_Parm_Type (const ST *)
BOOL TY_are_equivalent (TY_IDX ty_id1, TY_IDX ty_id2, UINT32 flags=TY_EQUIV_NO_FLAGS)
TY_IDX TY_is_unique (TY_IDX)
BOOL TY_has_union (TY_IDX ty)
TYPE_ID Mtype_For_Type_Offset (TY_IDX ty, INT64 offset)
const char * Preg_Name (PREG_NUM i)
PREG_NUM Create_Preg_explicit (TYPE_ID mtype, const char *name, SCOPE *scope_tab, SYMTAB_IDX level)
PREG_NUM Create_Preg (TYPE_ID mtype, const char *name)
INT32 Preg_Increment (TYPE_ID mtype)
BOOL ARB_are_equivalent (ARB_HANDLE arb_id1, ARB_HANDLE arb_id2, UINT32 flags=TY_EQUIV_NO_FLAGS)
void ARB_swap (ARB_HANDLE arb1, ARB_HANDLE arb2)
void ARB_copy (ARB_HANDLE arb1, ARB_HANDLE arb2)
BOOL FLD_are_equivalent (FLD_HANDLE fld_id1, FLD_HANDLE fld_id2, UINT32 flags=TY_EQUIV_NO_FLAGS)
FLD_HANDLE FLD_get_to_field (TY_IDX struct_ty_idx, UINT field_id, UINT &cur_field_id)
BOOL TYLIST_are_equivalent (TYLIST_IDX tylist_id1, TYLIST_IDX tylist_id2, UINT32 flags=TY_EQUIV_NO_FLAGS)
BLK_IDX Copy_BLK (BLK_IDX b)
void Base_Symbol_And_Offset (ST *st, ST **base_symbol, INT64 *offset_from_base)
const char * Class_Name (INT cl)
const char * Sclass_Name (INT s)
const char * Export_Name (INT)
const char * Kind_Name (INT k)
void Print_local_symtab (FILE *f, const SCOPE &scope)
void Print_global_symtab (FILE *f)
void Print_symtab (FILE *f, SYMTAB_IDX level)
void New_Scope (SYMTAB_IDX level, MEM_POOL *pool, BOOL reserve_index_zero)
void Delete_Scope (SYMTAB_IDX level)
void Initialize_Symbol_Tables (BOOL reserve_index_zero)
void Initialize_Special_Global_Symbols ()
PU_ITER Make_pu_iter (PU_IDX pu_idx)
ST_ITER Make_st_iter (const ST *st)
TY_ITER Make_ty_iter (TY_IDX ty_idx)
FLD_ITER Make_fld_iter (FLD_HANDLE fld)
TYLIST_ITER Make_tylist_iter (TYLIST_IDX tylist_idx)
ARB_ITER Make_arb_iter (ARB_HANDLE arb)
LABEL_ITER Make_label_iter (LABEL_IDX label_idx)
PREG_ITER Make_preg_iter (PREG_IDX preg_idx)
ST_ATTR_ITER Make_st_attr_iter (ST_ATTR_IDX st_attr_idx)
TCON_ITER Make_tcon_iter (TCON_IDX tcon_idx)
INITO_ITER Make_inito_iter (INITO_IDX inito_idx)
INITV_ITER Make_initv_iter (INITV_IDX initv_idx)
template<class T, UINT block_size, class OP>
void For_all (SEGMENTED_ARRAY< T, block_size > &table, const OP &op)
template<class T, UINT block_size, class OP>
void For_all (RELATED_SEGMENTED_ARRAY< T, block_size > &table, const OP &op)
template<class OP>
void For_all (const SYMBOL_TABLE &, SYMTAB_IDX level, const OP &op)
template<class OP>
void For_all (const LABEL_TABLE &, const OP &op)
template<class OP>
void For_all (const PREG_TABLE &, const OP &op)
template<class OP>
void For_all (const ST_ATTR_TABLE &, SYMTAB_IDX level, const OP &op)
template<class OP>
void For_all (const TYPE_TABLE &, const OP &op)
template<class T, UINT block_size, class PREDICATE>
UINT32 For_all_until (const SEGMENTED_ARRAY< T, block_size > &table, const PREDICATE &pred)
template<class T, UINT block_size, class PREDICATE>
UINT32 For_all_until (const RELATED_SEGMENTED_ARRAY< T, block_size > &table, const PREDICATE &pred)
template<class PREDICATE>
ST_IDX For_all_until (const SYMBOL_TABLE &, SYMTAB_IDX level, const PREDICATE &pred)
template<class PREDICATE>
UINT32 For_all_until (const LABEL_TABLE &, const PREDICATE &pred)
template<class PREDICATE>
UINT32 For_all_until (const PREG_TABLE &, const PREDICATE &pred)
template<class PREDICATE>
ST_ATTR_IDX For_all_until (const ST_ATTR_TABLE &, SYMTAB_IDX level, const PREDICATE &pred)
template<class PREDICATE>
TY_IDX For_all_until (const TYPE_TABLE &, const PREDICATE &pred)

Variables

TY_IDX MTYPE_TO_TY_array [MTYPE_LAST+1]
TY_IDX Void_Type
TY_IDX FE_int_Type
TY_IDX FE_double_Type
TY_IDX Spill_Int_Type
TY_IDX Spill_Float_Type
STMTYPE_TO_PREG_array [MTYPE_LAST+1]
STInt_Preg
STFloat_Preg
STReturn_Val_Preg
STBranch_Preg


Define Documentation

#define Be_Type_Tbl (  )     MTYPE_TO_TY_array[t]

Definition at line 117 of file symtab_utils.h.

Referenced by Atomic_Direct(), Atomic_Using_Swap(), CGSPILL_Attach_Floatconst_Remat(), CGSPILL_Load_From_Memory(), DISTR_DIM::Chunksize(), Convert_Alloca_To_Intrinsic(), Convert_Dealloca_To_Intrinsic(), DISTR_ARRAY::Convert_Expr_To_Symbol(), Copy_Array(), Copy_Array_Section(), Copy_Loads_In_Bound(), copyout_temp_to_var(), CR_CreateFPconst(), Create_Array_Load(), Create_Array_Store(), Create_Common_Block(), Create_DST_type_For_Tree(), Create_Global_Variable(), Create_Initialize_Loop(), Create_Io_Entry(), Create_Local_Symbol(), Create_Local_Variable(), Create_Lock_Type(), Create_MemTools_Load(), Create_MemTools_MakeGlobal(), Create_MemTools_MakeLocal(), Create_MemTools_RemoveLocal(), Create_MemTools_Store(), Create_MicroTask(), Create_Omp_Get_Thread_Num(), Create_Stack_Symbol(), Create_Sync_Structure(), Create_TY_For_Tree(), Create_Unroll_Copy(), cwh_addr_stid(), cwh_auxst_add_dummy(), cwh_create_str_st(), cwh_dst_enter_pu(), cwh_dst_mk_subroutine_type(), cwh_expr_binop_shift(), cwh_inline_allocate(), cwh_intrin_ieee_intrin_call_helper(), cwh_intrin_make_intrinsic_symbol(), cwh_intrin_null_parm(), cwh_intrin_popcnt_leadz_helper(), cwh_intrin_sync_intrin(), cwh_intrin_wrap_value_parm(), cwh_io_conv_array_to_dope(), cwh_io_conv_arrsection_to_dope(), cwh_io_ioitem(), cwh_load_distribute_temp(), cwh_preg_next_preg(), cwh_stab_altentry_temp(), cwh_stab_altentry_TY(), cwh_stab_altres_offset(), cwh_stab_altres_offset_comp(), cwh_stab_const_ST(), cwh_stmt_append_truebr(), cwh_stmt_return_altentry(), cwh_stmt_return_scalar(), cwh_types_character_extra(), cwh_types_dim_struct_TY(), cwh_types_dope_TY(), cwh_types_make_bounds_ST(), cwh_types_mk_basic_TY(), cwh_types_mk_dope_invariant_TY(), cwh_types_mk_f90_pointer_ty(), cwh_types_mk_namelist_item_TY(), cwh_types_mk_result_temp_TY(), cwh_types_WN_TY(), Declare_Func_N_Arg(), Declare_Func_One_Arg(), Declare_Func_Three_Arg(), Declare_Func_Two_Arg(), Declare_Func_Zero_Arg(), Declare_Function(), DISTR_INFO::Dimsize(), DISTR_INFO::DISTR_INFO(), DRA_EC_Array_Portion_Parms(), DRA_EC_Declare_Types(), EC_Array_Portion_Calls(), em_exp_float(), emit_builtin_compare_and_swap(), emit_builtin_lock_test_and_set(), emit_builtin_sync_fetch_op(), Exp_Immediate(), Exp_Immediate_Int(), Exp_Intrinsic_Op(), Exp_Ldst(), Exp_Select_And_Condition(), Expand_Abs(), Expand_Add(), Expand_Expr(), Expand_Fast_Sqrt(), Expand_Int_To_Long_Double(), Expand_Long_Double_To_Int(), Expand_Neg(), Expand_Recip(), Expand_Unsigned_Int_To_Float_m32(), extract_calls(), F90_Lower_Copy_To_ATemp(), F90_Lower_Create_Temp(), F90_Lower_Init(), fei_addr_con(), fei_allocate(), fei_arith_goto(), fei_bneg(), fei_cvtop(), fei_descriptor(), fei_doloop(), fei_fpclass(), fei_get_dv_hdr_fld(), fei_ieee_sign_xfer(), fei_length(), fei_logb(), fei_malloc(), fei_mask(), fei_new_binop_cshift(), fei_new_select(), fei_new_select_case(), fei_omp_set_lock(), fei_omp_test_lock(), fei_omp_unset_lock(), fei_ranget(), fei_ranset(), fei_remainder(), fei_return(), fei_round(), fei_rtc(), fei_scalb(), fei_select(), fei_set_dv_hdr_fld(), fei_unit(), OUTPUT_FUNC_START_PROFILER::Fill_In_Func_Body(), Find_Return_Registers(), OPT_TAIL::Fixup_exit(), Freeze_Cur_Numthreads_Func(), Gather_Scatter_Scalar_Expand(), Gen_Alloc_DART(), Gen_Alloc_Reshape(), Gen_Auto_Alloca(), Gen_Call_Array(), Gen_Call_Array_Arg(), Gen_Call_Array_Cart(), Gen_Call_Array_Dart_Args(), Gen_Compare_DARTS(), Gen_Const_Symbol_TN(), Gen_Critical(), Gen_Dealloc_DART(), Gen_End_Critical(), Gen_End_Master(), Gen_End_Ordered(), Gen_End_Serialized_Parallel(), Gen_End_Single(), Gen_Flush(), Gen_Fork(), Gen_Free_Cart(), Gen_Impld_Io_Calls(), Gen_Init_DART(), Gen_Io_Calls(), Gen_Io_GetFieldST(), Gen_Io_GetFieldWN(), Gen_Io_PutAddrWN(), Gen_Io_PutFieldConst(), Gen_Io_PutFieldST(), Gen_Io_PutFieldWN(), Gen_Io_PutKeyFieldWN(), Gen_Iolist_PutAddrWN(), Gen_Iolist_PutFieldConst(), Gen_Iolist_PutFieldWN(), Gen_Lookup_DART(), Gen_Malloc_Cart(), Gen_Master(), Gen_MP_Copyin(), Gen_Ordered(), Gen_Parm_WN(), Gen_Restore_Stack_Pointer(), Gen_Serialized_Parallel(), Gen_Set_Num_Threads(), Gen_Single(), Gen_Symbols_In_DINFO(), Generate_Dynamic_Bounds(), OUTPUT_FUNC_START_PROFILER::Generate_Func_Start_Profiler_PU(), ARA_LOOP_INFO::Generate_Parallel_Pragma(), Generate_Runtime_Cyclic_Bounds(), Generate_Runtime_Stuff(), Generate_Simple_Bounds(), generate_tree_add(), Get_Expansion_Space(), Get_Func_One_Arg_TY(), Get_Func_Zero_Arg_TY(), Get_Return_Info(), Get_Runtime_Cur_Numthreads_Ldid(), Get_Runtime_Max_Numthreads_Ldid(), Get_Runtime_Numthreads_Ldid(), Get_Runtime_Numthreads_Ldid_From_Func(), Get_Struct_Parameter_Location(), Get_UnitPointer_ST(), HMB_Hoist_Expressions(), HMB_Replace_Messy_Bounds(), Hoist_Iload_Ldid_Upper_Bound_One_Level(), DISTR_INFO::Hoist_Proc_Init(), Init_fioruntime_ty(), Init_Special_Lego_Mp_Call(), Initialize_Pdo_Last_Local_Index(), INITVKIND_ty(), Insert_Alloca(), Instrument_Address(), Lego_File_Init(), Lego_Layout_Code(), Lego_PU_Init(), Lock_Padding_TY(), Lookup_Function_Name(), lower_bit_field_id(), lower_cray_io_items(), lower_f77_io_items(), Lower_Fetch_And_Op(), Lower_IO_Init(), lower_io_statement(), lower_maxminloc(), lower_random_number(), LWN_CreateDivceil(), LWN_CreateDivfloor(), Make_Const(), make_dope_vector_ty(), Make_IoStruct_TY(), Make_MPRuntime_ST(), MemCtr_Init(), MIR_Replace(), GOTO_TABLE::Move_Goto_Out(), Mp_Collapse_Tile_Loops(), Mp_Coordinate_Call(), Mp_Coordinate_Copy_Out_Coordinates(), Mp_Layout_Call(), Mp_Layout_Code(), Mp_Layout_Copy_Out_Layout(), Mp_Layout_Lego_Layout(), my_Get_Return_Pregs(), Numprocs(), DISTR_INFO::Numprocs(), Pad_Degenerates(), Parallelize_Doacross_Loop(), Perform_Gather_Scatter(), LEGO_INFO::Pid0(), LEGO_INFO::Pid1(), Points_To_For_Array_Star(), IPO_INLINE::Process_Alloca_Postamble(), IPO_INLINE::Process_Alloca_Preamble(), process_inqvar(), process_iostat(), Process_Store(), Read_Pragma_Page_Place(), Read_Pragma_Thread_Affinity(), Rewrite_Bounds(), scalar_rename(), SE_Iload(), SE_Istore(), SE_Symbols_For_SE(), Section_Variable_TY(), Simd_Vectorize_Constants(), Simd_Vectorize_Induction_Variables(), Simd_Vectorize_Scalar_Reduction(), simple_intrinsic(), SNL_GEN_2D_Regtile(), SNL_INV_Cache_Block(), Stab_Mtype_To_Ty(), Transform_Code(), Transform_Do(), WN_INSTRUMENT_WALKER::Tree_Walk(), Twod_Setbound(), TY2C_initialize(), TY2F_pointer(), vho_lower_cand_cior(), vho_lower_combine_loads(), vho_lower_cselect(), vho_lower_expr(), vho_lower_if(), vho_lower_rcomma(), Vintrinsic_Fission(), WFE_Alloca_0(), WFE_Expand_Expr(), WFE_Generate_Thunk(), WFE_Get_Return_Address_ST(), WFE_Start_Function(), WGEN_Alloca_0(), WGEN_Expand_Expr(), WGEN_Generate_Thunk(), WGEN_Get_Return_Address_ST(), WGEN_Start_Function(), WN_LdaLabel(), and Write_TCON().

#define Float32_Preg   MTYPE_To_PREG (MTYPE_F4)

#define Float64_Preg   MTYPE_To_PREG (MTYPE_F8)

#define FOREACH_INITO ( level,
o,
i   )     for (i = 1; i < INITO_Table_Size(level) && (o = &Inito_Table(level,i)); ++i)

#define FOREACH_INITV ( init,
 )     for (v = init; v != 0; v = Initv_Table[v].next)

#define FOREACH_LABEL ( level,
s,
i   )     for (i = 1; i < LABEL_Table_Size(level) && (s = &Label_Table(i)); ++i)

Definition at line 570 of file symtab_utils.h.

#define FOREACH_SYMBOL ( level,
s,
i   )     for (i = 1; i < ST_Table_Size(level) && (s = &St_Table(level,i)); ++i)

#define Int32_Preg   MTYPE_To_PREG (MTYPE_I4)

#define Int64_Preg   MTYPE_To_PREG (MTYPE_I8)

#define MTYPE_To_PREG (  )     MTYPE_TO_PREG_array[t]

Definition at line 229 of file symtab_utils.h.

Referenced by RVI::Annotate_load_store(), GVN::Apply_cr(), AssignPregExprPos(), Atomic_Using_Swap(), CGEMIT_Call(), CGEMIT_Function_Prototype(), CGTARG_TN_And_Name_For_Asm_Constraint(), Change_expr_to_temp(), AUX_STAB_ENTRY::Change_to_new_preg(), checkForZero(), Compute_Return_Preg_Offset(), Convert_Section_To_Pdo(), CODEMAP::Convert_to_loop_invar(), Copy_Array(), Copy_Array_Section(), Copy_Loads_In_Bound(), Create_All_Preg_Symbols(), create_doloop(), Create_Initialize_Loop(), Create_Io_Entry(), RVI_NODE::Create_load(), OPT_STAB::Create_preg(), Create_Preg_or_Temp(), Create_Preg_Symbol(), RVI_NODE::Create_store(), cwh_io_split_io_items(), cwh_preg_next_preg(), cwh_preg_temp_save(), cwh_stmt_return_altentry(), cwh_stmt_return_scalar(), em_alloca(), em_quad_abs(), em_quad_neg(), em_setstackpointer(), em_split_select(), emit_builtin_compare_and_swap(), emit_builtin_lock_test_and_set(), emit_builtin_sync_fetch_op(), Exp_Ldst(), F90_Generate_Loops(), F90_Lower_Alloc_Dealloc(), fei_doloop(), Fix_LDID_Of_Return_Preg(), Gen_quad_preg(), Gen_Save_Stack_Pointer(), Gen_stmt_wn(), CSE::Get_new_temp_cr(), EXP_OCCURS::Get_temp_cr(), Handle_ASM(), Handle_LDID(), Handle_STID(), HMB_Hoist_Expressions(), HMB_Replace_Messy_Bounds(), Hoist_Iload_Ldid_Upper_Bound_One_Level(), WN_INSTRUMENT_WALKER::Instrument_Branch(), WN_INSTRUMENT_WALKER::Instrument_Circuit(), WN_INSTRUMENT_WALKER::Instrument_Compgoto(), WN_INSTRUMENT_WALKER::Instrument_Cselect(), WN_INSTRUMENT_WALKER::Instrument_Switch(), lower_bit_field_id(), lower_complex_expr(), lower_eoshift(), lower_formal_ref(), lower_io_items(), Lower_Master(), lower_record_items(), lower_reduction(), lower_return_ldid(), GOTO_TABLE::Move_Goto_Out(), MTYPE_To_Dedicated_PREG(), ETABLE::New_temp_cr(), Parallelize_Doacross_Loop(), IPO_INLINE::Process_Alloca_Postamble(), IPO_INLINE::Process_Alloca_Preamble(), process_inqvar(), process_iostat(), Process_Preg_Temps(), Process_Store(), Read_Pragma_Thread_Affinity(), REGION_Entry_PREG_Whirl(), REGION_Exit_PREG_Whirl(), Save_And_Restore_Stack(), Set_up_all_preg_symbols(), Setup_Preg_Pointers(), Split_Using_Preg(), Transform_Code(), WN_INSTRUMENT_WALKER::Tree_Walk_Node(), vho_lower_cand_cior(), vho_lower_comma(), vho_lower_cselect(), vho_lower_rcomma(), Wfe_Expand_Asm_Operands(), WFE_Expand_Expr(), WFE_Lhs_Of_Modify_Expr(), Wgen_Expand_Asm_Operands(), WGEN_Expand_Expr(), WGEN_Lhs_Of_Modify_Expr(), and WN_LdidPreg().

#define MTYPE_To_TY (  )     MTYPE_TO_TY_array[t]

Definition at line 116 of file symtab_utils.h.

Referenced by Add_Float_Stores(), CODEMAP::Add_tcon(), Allocate_All_Formals(), AssignExpr(), Atomic_Using_Critical(), aux_compute_alignment(), aux_CreateMstore(), aux_memcpy(), by_value(), CG_Instrument_Arcs(), CGSPILL_Get_TN_Spill_Location(), CGSPILL_Initialize_For_PU(), CGTARG_Init_Asm_Constraints(), CGTARG_TN_And_Name_For_Asm_Constraint(), Change_types_to_32bit(), IVR::Choose_primary_IV(), OPT_STAB::Convert_ST_to_AUX(), CODEMAP::Convert_to_loop_invar(), CODEREP::Copy_type(), CR_ty(), Create_All_Preg_Symbols(), Create_Const_ST(), Create_Copy_Expr(), Create_Copy_Expr_For_Ptr(), CODEREP::Create_cpstmt(), Create_Global_ST(), Create_Gtid_ST(), Create_Io_Entry(), create_lda_of_temp(), RVI_NODE::Create_load(), Create_Lock_Type(), Create_Maligned_TY(), Create_MicroTask(), OPT_STAB::Create_preg(), Create_Preg_or_Temp(), Create_Slink_Symbol(), Create_Special_Global_Symbols(), RVI_NODE::Create_store(), Create_Temp(), Create_TY_For_Tree(), createParm(), cwh_addr_mk_ldid(), cwh_stmt_init_pu(), CYG_Initialize_for_PU(), SSA::Du2cr(), EETARG_Call_Mcount(), EETARG_Generate_PIC_Entry_Code(), em_alloca(), Exp_Ldst(), Expand_Float_To_Float(), Expand_Float_To_Int_Tas(), Expand_Int_To_Float_Tas(), Expand_Int_To_Long_Double(), Expand_Int_To_Vect_Tas(), Expand_Long_Double_To_Int(), Expand_non_SSE2_Float_Floor(), Expand_Replicate(), Expand_Select(), Expand_SSE3_Long_Double_To_Int(), expand_start_critical(), extract_calls(), OUTPUT_FUNC_START_PROFILER::Fill_In_Func_Body(), BB_NODE::Find_def(), Fix_do_loop(), OPT_REVISE_SSA::Fold_lda_iloads(), OPT_REVISE_SSA::Fold_lda_indirects(), OPT_REVISE_SSA::Form_extract_compose(), EDGE_PROFILE::Gen_Call_BB(), Gen_Call_Shell(), Gen_exp_wn(), Gen_Param(), Gen_quad_preg(), Gen_ST_For_BB(), Gen_stmt_wn(), Gen_WN_Const(), Generate_cyg_profile_func(), OUTPUT_FUNC_START_PROFILER::Generate_Func_Start_Profiler_PU(), get_32bit_cilist_item(), SSA::Get_zero_version_CR(), Handle_Entry(), Handle_INTRINSIC_CALL(), Identity_assignment_type(), Initialize_Special_Global_Symbols(), Initialize_Stack_Frame(), Insert_ctype_b(), Insert_ctype_tolower(), Insert_ctype_toupper(), OPT_REVISE_SSA::Insert_mu_and_chi_list_for_new_var(), intrinsic_runtime(), OPT_STAB::Its_ret_val_of_malloc(), lower_bit_field_id(), lower_complex_expr(), lower_io_statement(), lower_quad_expr(), lower_reduction(), lower_return_ldid(), Make_Array_Type(), make_pointer_to_node(), Merge_Global_Ty(), RVI_ANN::New_ldid(), RVI_ANN::Preg_ty(), Process_Preg_Temps(), Promoted_Parm_Type(), WN_INSTRUMENT_WALKER::PU_Handle(), Rewrite_Do(), Rewrite_Do_New(), Set_up_all_preg_symbols(), Setup_Entry_For_EH(), Setup_Preg_Pointers(), Simd_Align_Analysis(), st_of_new_temp_for_expr(), Store_To_Temp_Stack(), Throw_Runtime_st_idx(), TLS_init(), Traverse_Aggregate_Pad(), AGGINIT::Traverse_Aggregate_Pad(), WN_INSTRUMENT_WALKER::Tree_Walk(), TY_Of_Expr(), OPT_REVISE_SSA::Update_chi_list_for_old_var(), OPT_REVISE_SSA::Update_phis(), vho_lower_cselect(), Wfe_Expand_Asm_Operands(), WFE_Expand_End_Case(), WFE_Expand_Expr(), WFE_Expand_Internal_Throw(), WFE_Generate_Thunk(), WFE_Lhs_Of_Modify_Expr(), WGEN_add_guard_var(), WGEN_Adjust_Thunk(), Wgen_Expand_Asm_Operands(), WGEN_Expand_Expr(), WGEN_Finish_Function(), WGEN_Lhs_Of_Modify_Expr(), WN2C_lda(), WN_INSTRUMENT_WALKER::WN_INSTRUMENT_WALKER(), WN_Lda(), and WN_LdaString().

#define TY_EQUIV_ALIGN   0x00000002

Definition at line 179 of file symtab_utils.h.

Referenced by TY_are_equivalent().

#define TY_EQUIV_IGNORE_NAMES   0x00000001

Definition at line 178 of file symtab_utils.h.

Referenced by FLD_are_equivalent(), and TY_are_equivalent().

#define TY_EQUIV_NO_FLAGS   0x00000000

Definition at line 177 of file symtab_utils.h.

#define TY_EQUIV_QUALIFIER   0x00000004

Definition at line 180 of file symtab_utils.h.

Referenced by TY_are_equivalent().


Function Documentation

BOOL ARB_are_equivalent ( ARB_HANDLE  arb_id1,
ARB_HANDLE  arb_id2,
UINT32  flags = TY_EQUIV_NO_FLAGS 
)

void ARB_copy ( ARB_HANDLE  arb1,
ARB_HANDLE  arb2 
) [inline]

Definition at line 269 of file symtab_utils.h.

References ARB_HANDLE::Entry().

Referenced by Copy_array_type(), and Create_New_Array_Type().

void ARB_swap ( ARB_HANDLE  arb1,
ARB_HANDLE  arb2 
)

Definition at line 924 of file symtab.cxx.

References ARB_HANDLE::Entry().

Referenced by cwh_types_mk_array_TY().

void Base_Symbol_And_Offset ( ST st,
ST **  base_symbol,
INT64 offset_from_base 
)

Definition at line 1399 of file symtab.cxx.

const char* Class_Name ( INT  cl  ) 

void Clear_local_symtab_addr_flags ( const SCOPE scope  ) 

Definition at line 2143 of file symtab.cxx.

References For_all_entries(), and SCOPE::st_tab.

Referenced by Backend_Processing(), and PU_adjust_addr_flags().

BLK_IDX Copy_BLK ( BLK_IDX  b  ) 

ST* Copy_ST ( ST st,
SYMTAB_IDX  scope 
)

ST* Copy_ST ( ST st  ) 

ST* Copy_ST_No_Base ( ST st,
SYMTAB_IDX  scope 
)

TY_IDX Copy_TY ( TY_IDX  ty  ) 

PREG_NUM Create_Preg ( TYPE_ID  mtype,
const char *  name 
)

Definition at line 1338 of file symtab.cxx.

References Create_Preg_explicit(), and CURRENT_SYMTAB.

PREG_NUM Create_Preg_explicit ( TYPE_ID  mtype,
const char *  name,
SCOPE scope_tab,
SYMTAB_IDX  level 
)

void Delete_Scope ( SYMTAB_IDX  level  ) 

const char* Export_Name ( INT   ) 

BOOL FLD_are_equivalent ( FLD_HANDLE  fld_id1,
FLD_HANDLE  fld_id2,
UINT32  flags = TY_EQUIV_NO_FLAGS 
)

FLD_HANDLE FLD_get_to_field ( TY_IDX  struct_ty_idx,
UINT  field_id,
UINT cur_field_id 
)

template<class OP>
void For_all ( const TYPE_TABLE ,
const OP op 
) [inline]

Definition at line 485 of file symtab_utils.h.

References For_all_entries(), and Ty_tab.

template<class OP>
void For_all ( const ST_ATTR_TABLE ,
SYMTAB_IDX  level,
const OP op 
) [inline]

Definition at line 478 of file symtab_utils.h.

References For_all_entries(), and Scope_tab.

template<class OP>
void For_all ( const PREG_TABLE ,
const OP op 
) [inline]

Definition at line 471 of file symtab_utils.h.

References CURRENT_SYMTAB, For_all_entries(), and Scope_tab.

template<class OP>
void For_all ( const LABEL_TABLE ,
const OP op 
) [inline]

Definition at line 464 of file symtab_utils.h.

References CURRENT_SYMTAB, For_all_entries(), and Scope_tab.

template<class OP>
void For_all ( const SYMBOL_TABLE ,
SYMTAB_IDX  level,
const OP op 
) [inline]

Definition at line 450 of file symtab_utils.h.

References For_all_entries(), and Scope_tab.

template<class T, UINT block_size, class OP>
void For_all ( RELATED_SEGMENTED_ARRAY< T, block_size > &  table,
const OP op 
) [inline]

Definition at line 443 of file symtab_utils.h.

References For_all_entries().

template<class T, UINT block_size, class OP>
void For_all ( SEGMENTED_ARRAY< T, block_size > &  table,
const OP op 
) [inline]

template<class PREDICATE>
TY_IDX For_all_until ( const TYPE_TABLE ,
const PREDICATE &  pred 
) [inline]

Definition at line 556 of file symtab_utils.h.

References Find_entry_if(), make_TY_IDX(), NOT_FOUND, Ty_tab, and UINT32.

template<class PREDICATE>
ST_ATTR_IDX For_all_until ( const ST_ATTR_TABLE ,
SYMTAB_IDX  level,
const PREDICATE &  pred 
) [inline]

Definition at line 547 of file symtab_utils.h.

References Find_entry_if(), NOT_FOUND, Scope_tab, and UINT32.

template<class PREDICATE>
UINT32 For_all_until ( const PREG_TABLE ,
const PREDICATE &  pred 
) [inline]

Definition at line 539 of file symtab_utils.h.

References CURRENT_SYMTAB, Find_entry_if(), NOT_FOUND, Scope_tab, and UINT32.

template<class PREDICATE>
UINT32 For_all_until ( const LABEL_TABLE ,
const PREDICATE &  pred 
) [inline]

Definition at line 531 of file symtab_utils.h.

References CURRENT_SYMTAB, Find_entry_if(), NOT_FOUND, Scope_tab, and UINT32.

template<class PREDICATE>
INITO_IDX For_all_until ( const SYMBOL_TABLE ,
SYMTAB_IDX  level,
const PREDICATE &  pred 
) [inline]

Definition at line 515 of file symtab_utils.h.

References Find_entry_if(), idx, make_ST_IDX(), NOT_FOUND, Scope_tab, and UINT32.

template<class T, UINT block_size, class PREDICATE>
UINT32 For_all_until ( const RELATED_SEGMENTED_ARRAY< T, block_size > &  table,
const PREDICATE &  pred 
) [inline]

Definition at line 506 of file symtab_utils.h.

References Find_entry_if(), idx, NOT_FOUND, and UINT32.

template<class T, UINT block_size, class PREDICATE>
UINT32 For_all_until ( const SEGMENTED_ARRAY< T, block_size > &  table,
const PREDICATE &  pred 
) [inline]

ST* Gen_Intrinsic_Function ( TY_IDX  ,
const char *  function_name 
)

ST* Gen_Read_Only_Symbol ( TY_IDX  ,
const char *  rootname 
)

ST* Gen_Temp_Symbol ( TY_IDX  ty,
const char *  rootname 
)

Definition at line 2331 of file symtab.cxx.

References CLASS_VAR, Gen_Temp_Named_Symbol(), SCLASS_AUTO, and Set_ST_is_temp_var.

Referenced by Add_Float_Stores(), Allocate_All_Formals(), Allocate_Local_Spill_Sym(), Create_Copy_Expr(), Create_Copy_Expr_For_Ptr(), Create_Io_Entry(), create_lda_of_temp(), Create_MicroTask(), OPT_STAB::Create_preg(), Create_Slink_Symbol(), Create_TY_For_Tree(), cwh_load_distribute_temp(), cwh_stab_temp_ST(), Expand_Float_To_Float(), Expand_Float_To_Int_Tas(), Expand_Int_To_Float_Tas(), Expand_Int_To_Long_Double(), Expand_Int_To_Vect_Tas(), Expand_Long_Double_To_Int(), Expand_non_SSE2_Float_Floor(), Expand_Replicate(), Expand_Select(), Expand_SSE3_Long_Double_To_Int(), expand_start_do_loop(), extract_calls(), Gen_Assign_Of_Init_Val(), Gen_Impld_Io_Calls(), Gen_Serialized_Parallel(), Gen_Spill_Symbol(), CIO_RWTRAN::Generate_Black_Holes(), ARA_LOOP_INFO::Generate_Parallel_Pragma(), GenLocalTable(), get_32bit_cilist_item(), handle_function_return(), Handle_INTRINSIC_CALL(), intrinsic_runtime(), lower_bit_field_id(), lower_cray_io_items(), lower_f77_io_items(), Lower_IO_Init(), lower_io_statement(), make_pointer_to_node(), MIR_Replace(), Store_To_Temp_Stack(), WN_INSTRUMENT_WALKER::Tree_Walk_Node(), vho_lower_comma(), vho_lower_cselect(), vho_lower_xpragma(), WFE_Alloca_0(), WFE_Expand_Expr(), WFE_Expand_Return(), WFE_Expand_Start_Case(), WFE_Save_Expr(), WGEN_Alloca_0(), WGEN_Expand_Expr(), WGEN_Expand_Math_Errno_Sqrt(), WGEN_Expand_Return(), WGEN_Expand_Start_Case(), WGEN_Generate_Thunk(), WGEN_process_omp_clause(), WGEN_Save_Expr(), and WN_INSTRUMENT_WALKER::WN_INSTRUMENT_WALKER().

void Initialize_Special_Global_Symbols (  ) 

void Initialize_Symbol_Tables ( BOOL  reserve_index_zero  ) 

const char* Kind_Name ( INT  k  ) 

TY_IDX Make_Align_Type ( TY_IDX  ty_idx,
INT32  align 
) [inline]

ARB_ITER Make_arb_iter ( ARB_HANDLE  arb  )  [inline]

Definition at line 388 of file symtab_utils.h.

References Arb_Table, and ARB_HANDLE::Idx().

Referenced by fix_var_dim_array(), is_variable_dim_array(), and recursive_ty_hash().

TY_IDX Make_Array_Type ( TYPE_ID  element_type,
INT32  ndim,
INT64  len 
)

TY_IDX Make_F90_Pointer_Type ( TY_IDX  ty_idx  ) 

Definition at line 467 of file symtab.cxx.

References make_ptr_type(), and TRUE.

Referenced by cwh_types_make_pointer_type(), and fix_array_bounds::operator()().

FLD_ITER Make_fld_iter ( FLD_HANDLE  fld  )  [inline]

TY_IDX Make_Function_Type ( TY_IDX  return_ty_idx  ) 

INITO_ITER Make_inito_iter ( INITO_IDX  inito_idx  )  [inline]

Definition at line 419 of file symtab_utils.h.

References INITO_IDX_index(), INITO_IDX_level(), and Scope_tab.

INITV_ITER Make_initv_iter ( INITV_IDX  initv_idx  )  [inline]

Definition at line 426 of file symtab_utils.h.

References Initv_Table.

LABEL_ITER Make_label_iter ( LABEL_IDX  label_idx  )  [inline]

Definition at line 394 of file symtab_utils.h.

References LABEL_IDX_index(), LABEL_IDX_level(), and Scope_tab.

TY_IDX Make_Pointer_Type ( TY_IDX  ty_idx,
BOOL  f90_pointer = FALSE 
)

Definition at line 458 of file symtab.cxx.

PREG_ITER Make_preg_iter ( PREG_IDX  preg_idx  )  [inline]

Definition at line 401 of file symtab_utils.h.

References CURRENT_SYMTAB, and Scope_tab.

PU_ITER Make_pu_iter ( PU_IDX  pu_idx  )  [inline]

Definition at line 357 of file symtab_utils.h.

References Pu_Table.

ST_ATTR_ITER Make_st_attr_iter ( ST_ATTR_IDX  st_attr_idx  )  [inline]

Definition at line 407 of file symtab_utils.h.

References CURRENT_SYMTAB, and Scope_tab.

ST_ITER Make_st_iter ( const ST st  )  [inline]

Definition at line 363 of file symtab_utils.h.

References idx, Scope_tab, ST_IDX_index(), ST_IDX_level(), and ST_st_idx.

TCON_ITER Make_tcon_iter ( TCON_IDX  tcon_idx  )  [inline]

Definition at line 413 of file symtab_utils.h.

References Tcon_Table.

TY_ITER Make_ty_iter ( TY_IDX  ty_idx  )  [inline]

Definition at line 370 of file symtab_utils.h.

References TY_IDX_index(), and Ty_Table.

TYLIST_ITER Make_tylist_iter ( TYLIST_IDX  tylist_idx  )  [inline]

Definition at line 382 of file symtab_utils.h.

References Tylist_Table.

Referenced by Is_Incomplete_Or_Recursive(), recursive_ty_hash(), and TY_fun_hash().

TYPE_ID Mtype_For_Type_Offset ( TY_IDX  ty,
INT64  offset 
)

void New_Scope ( SYMTAB_IDX  level,
MEM_POOL pool,
BOOL  reserve_index_zero 
)

INT32 Preg_Increment ( TYPE_ID  mtype  ) 

Definition at line 1346 of file symtab.cxx.

const char* Preg_Name ( PREG_NUM  i  ) 

Definition at line 1281 of file symtab.cxx.

void Print_global_symtab ( FILE f  ) 

void Print_local_symtab ( FILE f,
const SCOPE scope 
)

void Print_symtab ( FILE f,
SYMTAB_IDX  level 
) [inline]

TY_IDX Promoted_Parm_Type ( const ST  ) 

const char* Sclass_Name ( INT  s  ) 

BOOL ST_is_constant ( const ST  ) 

BOOL ST_is_private_local ( const ST  ) 

Definition at line 206 of file symtab.cxx.

INT64 ST_size ( const ST  ) 

BOOL ST_visible_outside_dso ( const ST s  )  [inline]

Definition at line 93 of file symtab_utils.h.

References ST_visible_outside_dso.

BOOL ST_visible_outside_dso ( const ST s  )  [inline]

Definition at line 86 of file symtab_utils.h.

References EXPORT_INTERNAL, EXPORT_LOCAL_INTERNAL, and ST_export.

BOOL TY_are_equivalent ( TY_IDX  ty_id1,
TY_IDX  ty_id2,
UINT32  flags = TY_EQUIV_NO_FLAGS 
)

BOOL TY_has_union ( TY_IDX  ty  ) 

TY_IDX TY_is_unique ( TY_IDX   ) 

UINT TY_log_base2 ( UINT  align  ) 

Definition at line 255 of file symtab.cxx.

References Is_True, result, and UINT.

Referenced by Create_Unroll_Copy(), Set_STB_align(), and Set_TY_align().

TY_IDX TY_pointer ( TY_IDX  ty,
BOOL  f90_pointer = FALSE 
)

Definition at line 422 of file symtab.cxx.

References Find_Ty_Pointer(), result, TY_IS_F90_POINTER, and Update_Pointer_Map().

BOOL TYLIST_are_equivalent ( TYLIST_IDX  tylist_id1,
TYLIST_IDX  tylist_id2,
UINT32  flags = TY_EQUIV_NO_FLAGS 
)

Definition at line 1002 of file symtab.cxx.

References FALSE, TRUE, and TY_are_equivalent().

Referenced by TY_are_equivalent().


Variable Documentation

Definition at line 2389 of file symtab.cxx.

Definition at line 2396 of file symtab.cxx.

Definition at line 2396 of file symtab.cxx.

Definition at line 2387 of file symtab.cxx.

Definition at line 2387 of file symtab.cxx.

ST* MTYPE_TO_PREG_array[MTYPE_LAST+1]

Definition at line 2385 of file symtab.cxx.

Referenced by Live_Init().

TY_IDX MTYPE_TO_TY_array[MTYPE_LAST+1]

Definition at line 2397 of file symtab.cxx.

Definition at line 2397 of file symtab.cxx.

Definition at line 2396 of file symtab.cxx.


Generated on Wed Apr 8 14:40:10 2009 for Open64 by  doxygen 1.5.6