Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "defs.h"
Go to the source code of this file.
Classes | |
struct | W_node |
struct | blist |
struct | clist |
Defines | |
#define | cast_to_TY(x) ((TY_IDX) (mUINT32)x) /* eraxxon: replace (void *) */ |
#define | cast_to_WN(x) ((WN *) (void *)x) |
#define | cast_to_ST(x) ((ST *) (void *)x) |
#define | cast_to_LB(x) ((LABEL_IDX) (mUINT32)x) /* eraxxon: replace (void *) */ |
#define | cast_to_uint(x) ((unsigned long) (void *)x) |
#define | cast_to_int(x) ((long ) (void *)x) |
#define | cast_to_void(x) ((void *)x) |
#define | cast_to_STB(x) ((STB_pkt *) (void *)x) |
#define | DUMP_TY(ty) dump_ty(ty) |
#define | DUMP_ST(st) dump_st(st) |
#define | DUMP_LB(lb) dump_label(lb) |
#define | DUMP_WN(wn) fdump_tree(stdout,wn); |
#define | DUMP_STK cwh_stk_dump() |
#define | bit_to_byte(a) (a >> 3) |
#define | bit_to_byte_WN(a) (cwh_expr_bincalc(OPR_DIV,WN_COPY_Tree(a),WN_CreateIntconst (OPC_U4INTCONST,8))) |
#define | byte_to_bit(a) (a << 3) |
#define | test_flag(f, sh) ((INT32)((f >> sh) & 1)) |
#define | GLOBAL_LEVEL 1 |
#define | HOST_LEVEL GLOBAL_LEVEL + 1 |
#define | INTERNAL_LEVEL HOST_LEVEL + 1 |
#define | WNOPR(w) (WN_operator(w)) |
#define | WNRTY(w) (WN_rtype(w)) |
#define | IS_GLOBAL_SYMTAB(s) (SYMTAB_level(s) == GLOBAL_LEVEL) |
#define | IN_HOST_PU (CURRENT_SYMTAB == HOST_LEVEL) |
#define | IN_NESTED_PU (CURRENT_SYMTAB >= INTERNAL_LEVEL) |
#define | RESULT_SIZE 16 |
#define | RESULT_ALIGN 8 |
#define | W_wn(a) (a.wn) |
#define | W_ty(a) (a.ty) |
#define | iW_wn(a) (a->wn) |
#define | iW_ty(a) (a->ty) |
#define | I_element(i) ((i)->element) |
#define | I_next(i) ((i)->nxt) |
#define | L_first(l) ((l)->first) |
#define | L_last(l) ((l)->last) |
#define | L_num(l) ((l)->nitems) |
#define | OPC_UNKNOWN 0 |
#define | MAX_ARY_DIMS 7 |
#define | NUM_LOG_KINDS 4 |
#define | ANULL -1 |
#define | RESULT_SIZE 64 |
#define | STRUCT_BY_VALUE(ty) |
Typedefs | |
typedef INT64 | OFFSET_64 |
typedef unsigned long | ULONG |
typedef long | SLONG |
typedef struct blist | ITEM |
typedef struct clist | LIST |
Functions | |
void | dump_ty (TY_IDX ty) |
void | dump_st (ST *st) |
void | dump_label (LABEL_IDX lb) |
Variables | |
MEM_POOL * | FE_Mempool |
#define ANULL -1 |
Definition at line 156 of file cwh_defines.h.
Referenced by cwh_types_mk_array_TY(), fei_co_array_dimen(), fei_descriptor(), and fei_init_global_vars().
#define bit_to_byte | ( | a | ) | (a >> 3) |
Definition at line 84 of file cwh_defines.h.
Referenced by cwh_dope_initialize(), cwh_types_mk_basic_TY(), cwh_types_mk_common_TY(), cwh_types_mk_equiv_TY(), cwh_types_mk_logical_TY(), cwh_types_mk_module_TY(), fei_array_dimen(), fei_co_array_dimen(), fei_descriptor(), fei_member(), fei_next_type_idx(), fei_object(), and fei_user_type().
#define bit_to_byte_WN | ( | a | ) | (cwh_expr_bincalc(OPR_DIV,WN_COPY_Tree(a),WN_CreateIntconst (OPC_U4INTCONST,8))) |
Definition at line 85 of file cwh_defines.h.
Referenced by cwh_types_mk_basic_TY().
#define byte_to_bit | ( | a | ) | (a << 3) |
Definition at line 86 of file cwh_defines.h.
Referenced by cwh_stab_altentry_temp(), cwh_stab_split_ST(), and cwh_types_form_misaligned_TY().
#define cast_to_int | ( | x | ) | ((long ) (void *)x) |
Definition at line 64 of file cwh_defines.h.
Referenced by cwh_addr_do_bounds_check(), fei_arith_con(), fei_array_dimen(), fei_co_array_dimen(), fei_constant(), fei_imported_type(), fei_interface(), fei_label(), fei_name(), fei_namelist(), fei_next_func_idx(), fei_next_type_idx(), fei_object(), fei_pattern_con(), fei_proc_def(), fei_proc_imp(), fei_proc_interface(), fei_seg(), and fei_smt_parameter().
#define cast_to_LB | ( | x | ) | ((LABEL_IDX) (mUINT32)x) /* eraxxon: replace (void *) */ |
Definition at line 62 of file cwh_defines.h.
Referenced by cwh_stmt_select_char(), fei_arith_goto(), fei_brtrue(), fei_goto(), fei_label_def_named(), fei_label_ref(), and fei_new_select().
#define cast_to_ST | ( | x | ) | ((ST *) (void *)x) |
Definition at line 61 of file cwh_defines.h.
Referenced by cwh_types_mk_basic_TY(), fei_array_dimen(), fei_co_array_dimen(), fei_constant(), fei_copyin_bound(), fei_entry_pt(), fei_function_ref(), fei_gen_func_entry(), fei_gen_st_for_type(), fei_imported_type(), fei_name(), fei_object(), fei_object_ref(), fei_proc_def(), fei_proc_parent(), fei_seg_ref(), fei_smt_parameter(), fei_user_type(), and PDGCS_new_proc().
#define cast_to_STB | ( | x | ) | ((STB_pkt *) (void *)x) |
Definition at line 66 of file cwh_defines.h.
Referenced by cwh_directive_load_value_pragma(), cwh_types_mk_basic_TY(), fei_array_dimen(), fei_co_array_dimen(), fei_constant(), fei_copyin_bound(), fei_entry_pt(), fei_function_ref(), fei_gen_func_entry(), fei_gen_st_for_type(), fei_imported_type(), fei_name(), fei_namelist(), fei_object(), fei_object_ref(), fei_prefetch_ref_disable(), fei_proc_def(), fei_proc_parent(), fei_push_arith_con(), fei_push_pattern_con(), fei_redistribute(), fei_seg_ref(), fei_smt_parameter(), fei_static_base(), fei_task_var(), fei_user_type(), and PDGCS_new_proc().
#define cast_to_TY | ( | x | ) | ((TY_IDX) (mUINT32)x) /* eraxxon: replace (void *) */ |
Definition at line 59 of file cwh_defines.h.
Referenced by cwh_ceiling_floor(), cwh_do_tranformational(), cwh_stab_altentry_temp(), cwh_types_mk_basic_TY(), do_simple(), fei_abs(), fei_arith_con(), fei_array_construct(), fei_array_dimen(), fei_bneg(), fei_call(), fei_co_array_dimen(), fei_constant(), fei_dope_vector(), fei_dot_product(), fei_dot_product_logical(), fei_exponent(), fei_exponentiate(), fei_field_dot(), fei_gen_st_for_type(), fei_get_pdg_type(), fei_ibits(), fei_ieee_sign_xfer(), fei_ieee_trunc(), fei_imag(), fei_leqv(), fei_lneg(), fei_logb(), fei_lxor(), fei_matmul(), fei_member(), fei_mvbits(), fei_object(), fei_pattern_con(), fei_proc_def(), fei_proc_imp(), fei_proc_interface(), fei_ranf(), fei_round(), fei_rtc(), fei_smt_parameter(), fei_trunc(), and fei_user_type().
#define cast_to_uint | ( | x | ) | ((unsigned long) (void *)x) |
Definition at line 63 of file cwh_defines.h.
Referenced by cwh_addr_pstid(), cwh_addr_stid(), and cwh_types_fill_type().
#define cast_to_void | ( | x | ) | ((void *)x) |
Definition at line 65 of file cwh_defines.h.
Referenced by cwh_stmt_select_case_char(), fei_constant(), fei_interface(), fei_label_def_named(), fei_label_ref(), fei_member_ref(), fei_name(), fei_namelist(), fei_new_select_case(), fei_next_func_idx(), fei_push_arith_con(), and fei_seg().
#define cast_to_WN | ( | x | ) | ((WN *) (void *)x) |
Definition at line 60 of file cwh_defines.h.
Referenced by cwh_types_mk_basic_TY(), fei_constant(), and fei_smt_parameter().
#define DUMP_LB | ( | lb | ) | dump_label(lb) |
Definition at line 73 of file cwh_defines.h.
Referenced by cwh_stk_dump().
Definition at line 72 of file cwh_defines.h.
Referenced by cwh_auxst_dump_list(), and cwh_stk_dump().
#define DUMP_STK cwh_stk_dump() |
Definition at line 75 of file cwh_defines.h.
Definition at line 71 of file cwh_defines.h.
Referenced by cwh_types_array_TY(), and cwh_types_scalar_TY().
#define DUMP_WN | ( | wn | ) | fdump_tree(stdout,wn); |
Definition at line 74 of file cwh_defines.h.
Referenced by cwh_stk_dump().
#define GLOBAL_LEVEL 1 |
Definition at line 91 of file cwh_defines.h.
#define HOST_LEVEL GLOBAL_LEVEL + 1 |
Definition at line 92 of file cwh_defines.h.
Referenced by cwh_stab_adjust_base_name(), cwh_stab_emit_commons_and_equivalences(), fei_next_func_idx(), fei_object(), fei_proc_imp(), and fei_seg().
#define I_element | ( | i | ) | ((i)->element) |
Definition at line 136 of file cwh_defines.h.
Referenced by cwh_auxst_add_to_list(), cwh_auxst_dump_list(), cwh_auxst_find_item(), cwh_data_set_init_flag(), cwh_dst_enter_pu(), cwh_dst_mk_common(), cwh_stab_altres_offset(), cwh_stab_earlier_common(), cwh_stab_emit_list(), cwh_stab_full_split(), cwh_stab_mk_flds(), cwh_stab_seen_common_element(), cwh_stab_seen_derived_type_or_imported_var(), cwh_stab_set_tylist_for_entries(), fei_control_list(), fei_copy_in(), fei_namelist(), and fei_return().
#define I_next | ( | i | ) | ((i)->nxt) |
Definition at line 137 of file cwh_defines.h.
Referenced by cwh_auxst_add_to_list(), cwh_auxst_dump_list(), cwh_auxst_find_item(), cwh_auxst_free_list(), cwh_auxst_next_element(), cwh_stab_earlier_common(), and cwh_stab_emit_list().
#define IN_HOST_PU (CURRENT_SYMTAB == HOST_LEVEL) |
Definition at line 100 of file cwh_defines.h.
#define IN_NESTED_PU (CURRENT_SYMTAB >= INTERNAL_LEVEL) |
Definition at line 101 of file cwh_defines.h.
Referenced by cwh_addr_access_flags(), cwh_stab_end_procs(), fei_object(), and PDGCS_new_proc().
#define INTERNAL_LEVEL HOST_LEVEL + 1 |
Definition at line 93 of file cwh_defines.h.
Referenced by fei_next_func_idx(), and fei_proc_imp().
#define IS_GLOBAL_SYMTAB | ( | s | ) | (SYMTAB_level(s) == GLOBAL_LEVEL) |
Definition at line 99 of file cwh_defines.h.
#define iW_ty | ( | a | ) | (a->ty) |
Definition at line 121 of file cwh_defines.h.
Definition at line 120 of file cwh_defines.h.
#define L_first | ( | l | ) | ((l)->first) |
Definition at line 145 of file cwh_defines.h.
Referenced by cwh_auxst_add_to_list(), cwh_auxst_dump(), cwh_auxst_dump_list(), cwh_auxst_find_item(), cwh_auxst_free_list(), cwh_auxst_next_element(), cwh_stab_earlier_common(), cwh_stab_emit_list(), and cwh_stab_full_split().
#define L_last | ( | l | ) | ((l)->last) |
Definition at line 146 of file cwh_defines.h.
Referenced by cwh_auxst_add_to_list(), and cwh_stab_full_split().
#define L_num | ( | l | ) | ((l)->nitems) |
Definition at line 147 of file cwh_defines.h.
Referenced by cwh_auxst_add_to_list(), cwh_auxst_dump_list(), cwh_stab_full_split(), and cwh_stab_mk_flds().
#define MAX_ARY_DIMS 7 |
Definition at line 153 of file cwh_defines.h.
Referenced by cwh_dope_from_expression(), cwh_stmt_conformance_checks_walk(), cwh_types_dim_TY(), cwh_types_dope_TY(), cwh_types_shared_dope(), and fei_dv_def().
#define NUM_LOG_KINDS 4 |
Definition at line 154 of file cwh_defines.h.
Referenced by cwh_types_mk_logical_TY().
#define OPC_UNKNOWN 0 |
Definition at line 152 of file cwh_defines.h.
#define RESULT_ALIGN 8 |
Definition at line 104 of file cwh_defines.h.
Referenced by cwh_types_mk_result_temp_TY().
#define RESULT_SIZE 16 |
Definition at line 208 of file cwh_defines.h.
Referenced by cwh_types_mk_result_temp_TY().
#define RESULT_SIZE 64 |
Definition at line 208 of file cwh_defines.h.
#define STRUCT_BY_VALUE | ( | ty | ) |
((TY_kind(ty) == KIND_STRUCT) \ && (TY_size(ty) <= RESULT_SIZE) \ && !cwh_types_contains_dope(ty))
Definition at line 211 of file cwh_defines.h.
Referenced by cwh_auxst_set_tylist(), cwh_stmt_call_helper(), cwh_stmt_return_scalar(), fei_object(), and fei_return().
Definition at line 87 of file cwh_defines.h.
Referenced by cwh_stmt_call_helper(), cwh_types_fill_type(), fei_array_dimen(), fei_co_array_dimen(), fei_descriptor(), fei_dope_vector(), fei_label_def_named(), fei_member(), fei_next_type_idx(), fei_object(), fei_proc(), fei_proc_def(), fei_proc_imp(), fei_proc_interface(), fei_proc_parent(), fei_seg(), and PDGCS_initialize().
#define W_ty | ( | a | ) | (a.ty) |
Definition at line 119 of file cwh_defines.h.
Referenced by cwh_addr_substr_util(), cwh_stmt_select_case_char(), cwh_stmt_select_char(), cwh_stmt_str_falsebr_util(), and fei_substr().
Definition at line 118 of file cwh_defines.h.
Referenced by cwh_addr_substr_util(), cwh_stmt_select_case_char(), cwh_stmt_select_char(), cwh_stmt_str_falsebr_util(), and fei_substr().
#define WNOPR | ( | w | ) | (WN_operator(w)) |
Definition at line 97 of file cwh_defines.h.
Referenced by arrsection_to_array(), cwh_addr_do_bounds_check(), cwh_addr_find_address(), cwh_addr_find_section(), cwh_addr_nonc_recast(), cwh_addr_substr_util(), cwh_addr_triplet(), cwh_addr_WN_ST(), cwh_convert_to_ty(), cwh_dope_from_expression(), cwh_expr_extract_arrayexp(), cwh_inline_allocate(), cwh_intrin_wrap_value_parm(), cwh_io_analyse_arr(), cwh_io_analyse_expr(), cwh_io_analyse_index_expr(), cwh_io_analyse_io_item(), cwh_io_conv_array_to_dope(), cwh_io_conv_arrsection_to_dope(), cwh_io_create_dope_from_item(), cwh_io_search_implied_do_index(), cwh_mp_region(), cwh_stab_const_ST(), cwh_stmt_call_helper(), cwh_types_array_temp_TY(), cwh_types_mk_basic_TY(), cwh_types_mk_character_TY(), cwh_types_WN_TY(), fei_addr_con(), fei_allocate(), fei_arg_addr(), fei_concat(), fei_doloop(), fei_fcd(), fei_nseq_subscr(), fei_seq_subscr(), fei_subscr_triplet(), and TCON_from_stack().
Definition at line 98 of file cwh_defines.h.
Referenced by cwh_convert_to_ty(), cwh_do_tranformational(), cwh_expr_binop_shift(), cwh_intrin_sync_intrin(), cwh_preg_temp_save(), cwh_stab_const_ST(), fei_addr_con(), fei_ieee_sign_xfer(), fei_return(), fei_round(), fei_trunc(), and simple_intrinsic().
Definition at line 56 of file cwh_defines.h.
typedef long SLONG |
Definition at line 58 of file cwh_defines.h.
typedef unsigned long ULONG |
Definition at line 57 of file cwh_defines.h.
void dump_label | ( | LABEL_IDX | lb | ) |
Definition at line 2758 of file symtab.cxx.
References idx, and Label_Table.
Definition at line 2709 of file symtab.cxx.
References ST::blk, Blk_Table, CLASS_BLOCK, CLASS_FUNC, ST::Print(), ST::pu, Pu_Table, ST::sym_class, and ST::u2.
Definition at line 2738 of file symtab.cxx.
References TY::Print(), and Ty_Table.
Referenced by dump_ty_idx().
Definition at line 113 of file sgi_cmd_line.cxx.
Referenced by cwh_auxst_alloc_container_table(), cwh_auxst_register_table(), cwh_auxst_un_register_table(), cwh_pdgcs_pu_mem(), emit_inits_for_symbol(), fei_next_func_idx(), and fei_static_base().