#include "defs.h"#include "symtab.h"#include "wn.h"#include "wn_util.h"#include "ir_reader.h"#include "cwh_defines.h"#include "cwh_stk.h"

Go to the source code of this file.
| #define STK_EMPTY -1 |
| #define STK_SIZE_CHANGE 512 |
Definition at line 93 of file cwh_stk.cxx.
Referenced by cwh_stk_push_typed(), and cwh_types_push_dtype().
Definition at line 443 of file cwh_stk.cxx.
References c, DevAssert, i, INT32, STR_item, and top.
Referenced by cwh_stmt_call_helper().
Definition at line 557 of file cwh_stk.cxx.
References ADDR_item, break, DEREF_item, DUMP_LB, DUMP_ST, DUMP_WN, f, FLD_item, FLD_name, FLD_ofst, i, LB_item, NULL, PCONST_item, printf(), ST_item, ST_item_whole_array, STR_item, top, WN_item, and WN_item_whole_array.
| char* cwh_stk_fld_name | ( | void | ) |
Definition at line 818 of file cwh_stk.cxx.
References FLD_item, FLD_name, free(), i, INT, malloc, NULL, r, s, sprintf(), strlen(), and top.
Referenced by fei_dv_deref(), fei_nseq_subscr(), and fei_seq_subscr().
| enum item_class cwh_stk_get_class | ( | void | ) |
Definition at line 389 of file cwh_stk.cxx.
References DevAssert, and top.
Referenced by cwh_addr_offset(), cwh_addr_substr_util(), cwh_char_intrin(), cwh_do_tranformational(), cwh_dope_read_bound(), cwh_dope_store_bound(), cwh_expr_address(), cwh_expr_compare(), cwh_expr_operand(), cwh_intrin_sync_intrin(), cwh_io_cvt_tos_label_to_wn(), cwh_io_ioitem(), cwh_io_no_desc(), cwh_stmt_call_helper(), fei_addr_con(), fei_arg_addr(), fei_close(), fei_control_list(), fei_copy_in(), fei_cvtop(), fei_doloop(), fei_dv_def(), fei_dv_deref(), fei_get_dv_hdr_fld(), fei_inquire(), fei_IO_list(), fei_len(), fei_new_select(), fei_new_select_case(), fei_non_conform_store(), fei_nseq_subscr(), fei_open(), fei_return(), fei_seq_subscr(), fei_set_dv_hdr_fld(), fei_stop(), fei_store(), fei_substr(), and TCON_from_stack().
Definition at line 424 of file cwh_stk.cxx.
References DevAssert, FLD_item, FLD_type, stk_entry_t::item, and top.
Referenced by cwh_io_ioitem(), fei_control_list(), fei_return(), and fei_set_dv_hdr_fld().
Definition at line 710 of file cwh_stk.cxx.
References cwh_stk_pop_WN(), i, INT32, NULL, OPR_IO_ITEM, top, wn, WN_item, WN_item_whole_array, and WN_operator_is.
Referenced by fei_iolength().
Definition at line 405 of file cwh_stk.cxx.
References DevAssert, and top.
Referenced by cwh_do_tranformational(), cwh_expr_operand(), cwh_expr_str_operand(), cwh_io_char_ioitem(), cwh_io_ioitem(), cwh_io_no_desc(), cwh_stmt_call_helper(), fei_addr_con(), fei_allocate(), fei_arg_addr(), fei_close(), fei_control_list(), fei_fcd(), fei_inquire(), fei_non_conform_store(), fei_nseq_subscr(), fei_open(), fei_seq_subscr(), fei_set_dv_hdr_fld(), fei_store(), fei_substr(), and TCON_from_stack().
Definition at line 476 of file cwh_stk.cxx.
References BOOL, DEREF_item, DevAssert, FALSE, FLD_item, i, INT32, INTRN_CHAR, OPR_ARRAY, OPR_ARRAYEXP, OPR_ARRSECTION, OPR_ILOAD, OPR_INTCONST, OPR_INTRINSIC_OP, OPR_LDID, ST_item, ST_item_whole_array, STR_item, top, TRUE, wn, WN_const_val(), WN_intrinsic(), WN_item, WN_item_whole_array, WN_kid0(), and WN_operator().
Referenced by cwh_stmt_character_store().
Definition at line 273 of file cwh_stk.cxx.
References ADDR_item, stk_entry_t::Class, DevAssert, top, and UNDEF.
Referenced by cwh_expr_operand(), cwh_stmt_call_helper(), and fei_stop().
Definition at line 294 of file cwh_stk.cxx.
References stk_entry_t::Class, DEREF_item, DevAssert, top, and UNDEF.
Referenced by cwh_expr_operand(), cwh_stmt_call_helper(), and fei_as_ref().
Definition at line 252 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, FLD_item, top, and UNDEF.
Referenced by cwh_addr_offset(), fei_dv_def(), and fei_dv_deref().
| WN* cwh_stk_pop_iostmt | ( | IOSTATEMENT | opc, | |
| INT32 | eeeflag | |||
| ) |
Definition at line 656 of file cwh_stk.cxx.
References i, INT, NULL, OPR_IO_ITEM, top, wn, WN_CreateIo, WN_item, WN_item_whole_array, WN_kid(), and WN_operator_is.
Referenced by fei_formatted_read(), fei_formatted_write(), fei_namelist_read(), fei_namelist_write(), fei_unformatted_read(), and fei_unformatted_write().
Definition at line 354 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, LB_item, top, and UNDEF.
Referenced by cwh_io_cvt_tos_label_to_wn(), cwh_stmt_assigned_goto(), cwh_stmt_computed_goto(), cwh_stmt_select_case_char(), and fei_new_select_case().
Definition at line 336 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, PCONST_item, top, and UNDEF.
Referenced by cwh_expr_operand(), fei_store(), and TCON_from_stack().
Definition at line 233 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, ST_item, ST_item_whole_array, top, and UNDEF.
Referenced by cwh_addr_substr_util(), cwh_directive_barrier_insert(), cwh_directive_fill_align(), cwh_dope_read_bound(), cwh_dope_store_bound(), cwh_expr_address(), cwh_expr_operand(), cwh_io_ioitem(), cwh_reorder(), cwh_stmt_call_helper(), fei_allocate(), fei_control_list(), fei_copy_in(), fei_doloop(), fei_dv_def(), fei_dv_deref(), fei_dynamic(), fei_get_dv_hdr_fld(), fei_implied_do(), fei_iolength(), fei_len(), fei_nseq_subscr(), fei_return(), fei_section_gp(), fei_section_nongp(), fei_seq_subscr(), fei_set_dv_hdr_fld(), fei_start_ioblock(), fei_store(), and TCON_from_stack().
Definition at line 312 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, NULL, STR_item, top, and UNDEF.
Referenced by cwh_char_intrin(), cwh_do_tranformational(), cwh_expr_address(), cwh_expr_compare_char(), cwh_expr_str_operand(), cwh_io_str_ioitem(), cwh_stmt_call_helper(), cwh_stmt_character_icall(), cwh_stmt_character_store(), fei_addr_con(), fei_arg_addr(), fei_close(), fei_concat(), fei_control_list(), fei_cvtop(), fei_inquire(), fei_len(), fei_non_conform_store(), fei_open(), fei_select(), fei_start_ioblock(), fei_stop(), and TCON_from_stack().
Definition at line 372 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, top, and UNDEF.
Referenced by cwh_io_cvt_tos_label_to_wn(), cwh_io_no_desc(), cwh_stmt_character_store(), fei_assert(), fei_close(), fei_inquire(), fei_len(), fei_open(), fei_seq_subscr(), fei_start_ioblock(), and fei_store().
Definition at line 211 of file cwh_stk.cxx.
References ADDR_item, stk_entry_t::Class, DEREF_item, DevAssert, top, UNDEF, WN_item, and WN_item_whole_array.
Referenced by cwh_expr_address(), cwh_expr_operand(), fei_doloop(), fei_fcd(), fei_non_conform_store(), and fei_store().
Definition at line 189 of file cwh_stk.cxx.
References stk_entry_t::Class, DevAssert, top, UNDEF, WN_item, and WN_item_whole_array.
Referenced by cwh_addr_stid(), cwh_expr_operand(), cwh_mp_region(), cwh_stk_get_num_inquire_items(), cwh_stmt_call_helper(), fei_addr_con(), fei_arg_addr(), fei_as_ref(), fei_concat(), fei_else(), fei_endif(), fei_endsingle_open_mp(), fei_non_conform_store(), fei_stop(), and TCON_from_stack().
| void cwh_stk_push | ( | void * | item, | |
| enum item_class | Class | |||
| ) |
Definition at line 109 of file cwh_stk.cxx.
References cwh_stk_push_typed(), and return.
Referenced by cwh_addr_do_bounds_check(), cwh_addr_stid(), cwh_ceiling_floor(), cwh_char_intrin(), cwh_dope_read_bound(), cwh_expr_compare_bitwise(), cwh_expr_unop(), cwh_inline_allocate(), cwh_intrin_ieee_intrin_call_helper(), cwh_intrin_ieee_intrin_helper(), cwh_intrin_popcnt_leadz_helper(), cwh_intrin_sync_intrin(), cwh_io_ioitem(), cwh_stk_push_STR(), cwh_stmt_call_helper(), cwh_stmt_character_store(), cwh_stmt_select_case_char(), cwh_stmt_select_char(), do_simple(), fei_abs(), fei_addr(), fei_addr_con(), fei_adjustl(), fei_adjustr(), fei_alloc(), fei_arg_addr(), fei_as_ref(), fei_constant(), fei_control_list(), fei_copy_in(), fei_cot(), fei_count(), fei_dv_def(), fei_dv_deref(), fei_dv_ptr_asg(), fei_else(), fei_exponent(), fei_exponentiate(), fei_function_ref(), fei_get_dv_hdr_fld(), fei_ibits(), fei_ieee_sign_xfer(), fei_if(), fei_imag(), fei_implied_do(), fei_IO_list(), fei_iolength(), fei_iotype(), fei_islg(), fei_label_addr(), fei_label_def_named(), fei_label_ref(), fei_len(), fei_length(), fei_malloc(), fei_mbits(), fei_member_ref(), fei_multiply_high(), fei_mvbits(), fei_near(), fei_new_binop_cshift(), fei_new_select(), fei_new_select_case(), fei_non_conform_store(), fei_nseq_subscr(), fei_null_expr(), fei_object_ref(), fei_omp_set_lock(), fei_omp_test_lock(), fei_omp_unset_lock(), fei_pos_diff(), fei_push_arith_con(), fei_push_pattern_con(), fei_ranf(), fei_ranget(), fei_ranset(), fei_rtc(), fei_scale(), fei_seg_ref(), fei_select(), fei_seq_subscr(), fei_set_exponent(), fei_sign_xfer(), fei_subscr_triplet(), fei_task_var(), fei_trunc(), fei_unit(), simple_intrinsic(), and simple_intrinsic_nt().
| void cwh_stk_push_STR | ( | void * | len, | |
| void * | addr, | |||
| TY_IDX | ty, | |||
| enum item_class | addr_class | |||
| ) |
Definition at line 168 of file cwh_stk.cxx.
References cwh_stk_push(), cwh_stk_push_typed(), DevAssert, NULL, STR_item, and WN_item.
Referenced by cwh_do_tranformational(), cwh_stmt_select_case_char(), cwh_stmt_select_char(), cwh_stmt_str_falsebr_util(), fei_addr_con(), fei_arg_addr(), fei_concat(), fei_constant(), fei_cvtop(), fei_fcd(), fei_non_conform_store(), fei_push_pattern_con(), fei_select(), and fei_substr().
Definition at line 743 of file cwh_stk.cxx.
References ADDR_item, cwh_stk_push_typed(), DEREF_item, DevAssert, FLD_item, i, INT, LB_item, PCONST_item, return, ST_item, ST_item_whole_array, STR_item, top, WN_COPY_Tree(), WN_item, and WN_item_whole_array.
Referenced by fei_control_list().
| void cwh_stk_push_typed | ( | void * | item, | |
| enum item_class | Class, | |||
| TY_IDX | ty | |||
| ) |
Definition at line 130 of file cwh_stk.cxx.
References ADDR_item, stk_entry_t::Class, current_size, DEREF_item, DevAssert, stk_entry_t::it_ty, stk_entry_t::item, realloc, return, ST_item, ST_item_whole_array, STK_SIZE_CHANGE, top, WN_item, and WN_item_whole_array.
Referenced by cwh_do_tranformational(), cwh_expr_binop(), cwh_expr_binop_shift(), cwh_expr_compare(), cwh_expr_compare_logical(), cwh_funny_fp_intrinsic(), cwh_inline_allocate(), cwh_intrin_ieee_intrin_helper(), cwh_stk_push(), cwh_stk_push_STR(), cwh_stk_push_top_item_again(), cwh_stmt_call_helper(), fei_arg_addr(), fei_bneg(), fei_constant(), fei_cvtop(), fei_dot_product(), fei_dot_product_logical(), fei_dv_deref(), fei_ieee_trunc(), fei_lneg(), fei_logb(), fei_mask(), fei_matmul(), fei_non_conform_store(), fei_nseq_subscr(), fei_omp_test_lock(), fei_present(), fei_push_arith_con(), fei_round(), fei_select(), and fei_seq_subscr().
Definition at line 539 of file cwh_stk.cxx.
References DevAssert, STK_EMPTY, and top.
Referenced by fei_user_code_start(), and PDGCS_do_proc().
INT32 current_size = 0 [static] |
Definition at line 96 of file cwh_stk.cxx.
Referenced by cwh_stk_push_typed(), Init_inline_parameters(), Instr::vector< Instr::Switch_Profile >::resize(), WFE_Expand_EH_Spec(), and WGEN_Expand_EH_Spec().
const char* source_file = __FILE__ [static] |
Definition at line 67 of file cwh_stk.cxx.
stk_entry_t* stk = NULL [static] |
Definition at line 97 of file cwh_stk.cxx.
Referenced by ARA_LOOP_INFO::CI_Print(), Initialize_Pdo_Last_Local_Index(), m88k_va_arg(), m88k_va_start(), Maybe_Assigned(), ARA_LOOP_INFO::Print(), ARA_LOOP_INFO::Print_Analysis_Info(), SNL_Distribute(), ARA_LOOP_INFO::Tlog_CI_Print(), ARA_LOOP_INFO::WB_Print(), xtensa_gimplify_va_arg_expr(), xtensa_va_arg(), and xtensa_va_start().
Definition at line 98 of file cwh_stk.cxx.
Referenced by _cpp_parse_expr(), add_scope_stmt(), LAT_DIRECTED_GRAPH16::Add_Vertices_Op_Edges_Rec(), adjust_atomic(), adjust_depth(), alpha_ra_ever_killed(), bfd_mach_o_core_fetch_environment(), KEY_SCH::Build_OPR(), c_finish_loop(), Can_Be_Immediate(), Can_Mem_Op_Be_Moved(), cancel_in_relop(), CGTARG_Dependence_Required(), CGTARG_Init_OP_cond_def_kind(), CGTARG_Is_OP_Addr_Incr(), CGTARG_Is_OP_daddu(), CGTARG_Simulated_Top(), Check_loadbw_execute(), clipper_movstr(), Compose_Addr(), INTERVAL_PROCESSOR::Construct_Loops(), Convert_Imm_Add(), Convert_Regs(), create_loop_notes(), cwh_stk_count_STRs(), cwh_stk_dump(), cwh_stk_fld_name(), cwh_stk_get_class(), cwh_stk_get_FLD_TY(), cwh_stk_get_num_inquire_items(), cwh_stk_get_TY(), cwh_stk_is_byte_STR(), cwh_stk_pop_ADDR(), cwh_stk_pop_DEREF(), cwh_stk_pop_FLD(), cwh_stk_pop_iostmt(), cwh_stk_pop_LB(), cwh_stk_pop_PCONST(), cwh_stk_pop_ST(), cwh_stk_pop_STR(), cwh_stk_pop_whatever(), cwh_stk_pop_WHIRL(), cwh_stk_pop_WN(), cwh_stk_push_top_item_again(), cwh_stk_push_typed(), cwh_stk_verify_empty(), darwin_unwind_dyld_remove_image_hook(), decimal128FromNumber(), decimal128ToNumber(), decimal32FromNumber(), decimal32ToNumber(), decimal64FromNumber(), decimal64ToNumber(), decode_and(), delete_duplicate_op(), delete_memory_op(), delete_subset_mem_op(), dfs(), EBO_Can_Merge_Into_Offset(), EBO_Load_Execution(), Emit_Bundle_Scheduling(), Enumerate_Insts(), exchange(), Exp_Call(), Exp_Fetch_and_Add(), Exp_Fetch_and_And(), Exp_Fetch_and_Or(), Exp_Fetch_and_Sub(), Exp_Fetch_and_Xor(), Exp_Intrinsic_Call(), Exp_OP(), Exp_Pred_Set(), Exp_Prefetch(), Exp_Simulated_Op(), Expand_64Bit_ALU_OP(), Expand_Branch(), Expand_C3_DADD(), Expand_C3_DMAC(), Expand_C3_DMAC_A(), Expand_C3_DMULA(), Expand_C3_DMULT_A(), Expand_C3_DSHIFT_I(), Expand_C3_MAC(), Expand_C3_MAC_A(), Expand_C3_MAC_AR(), Expand_C3_MAC_I(), Expand_C3_MULA(), Expand_C3_SAADD_A(), Expand_C3_SAADDH_A(), Expand_C3_SAADDS(), Expand_C3_SAADDSH(), Expand_C3_shlafa_i(), Expand_Ceil(), Expand_Composed_Load(), Expand_Composed_Store(), Expand_Convert(), Expand_Copy_HI(), Expand_Count_Trailing_Zeros(), Expand_Divide(), Expand_DivRem(), Expand_Expr(), Expand_Extract(), Expand_Float_Compares(), Expand_Float_To_Float(), Expand_Float_To_Int(), Expand_Floor(), Expand_High_Multiply(), Expand_Init_HI(), Expand_Int_Cmp(), Expand_Int_To_Float(), Expand_Int_To_Int(), Expand_Int_To_Long_Double(), Expand_Left_Rotate(), Expand_Load(), Expand_Long_Double_To_Int(), Expand_Madd(), Expand_Multiply(), Expand_Recip(), Expand_Recip_Sqrt(), Expand_Rem(), Expand_Round(), Expand_Rrotate(), Expand_Shift(), Expand_Simulated_Ops(), Expand_Split_BOP(), Expand_Split_UOP(), Expand_SSE3_Long_Double_To_Int(), Expand_Store(), Expand_Trunc(), Expr_DU_Copy(), free_page(), IF_CONVERTOR::Gen_Predicate_Assign(), gimplify_c_loop(), gimplify_cp_loop(), imm_sll(), imm_sra(), imm_srl(), index_add(), MRT::Init(), internal_mcount(), ISA_Hazards_End(), ISA_Pack_End(), ISA_Pack_Is_Unused(), ISA_Print_End(), ISA_Subset_End(), LNOTARGET_Complex_Add_Lat(), LNOTARGET_Complex_Add_Res(), LNOTARGET_Complex_Neg_Lat(), LNOTARGET_Complex_Neg_Res(), LNOTARGET_Cvt_Res(), LNOTARGET_FP_Div_Lat(), LNOTARGET_FP_Recip_Lat(), LNOTARGET_FP_Recip_Res(), LNOTARGET_FP_Rsqrt_Lat(), LNOTARGET_FP_Rsqrt_Res(), LNOTARGET_FP_Sqrt_Lat(), LNOTARGET_FP_Sqrt_Res(), LNOTARGET_Int_Div_Res(), LNOTARGET_Int_Div_Str_Red_Res(), LNOTARGET_Int_DivRem_Res(), LNOTARGET_Int_DivRem_Str_Red_Res(), LNOTARGET_Int_Rem_Res(), LNOTARGET_Int_Rem_Str_Red_Res(), lookup_field(), GROUP_ASSEMBLE::MakeNop2Slot(), mips_gimplify_va_arg_expr(), mips_va_arg(), Negate_Branch(), OP_is_addition(), OP_is_lea(), OP_is_multiplication(), LOOP_MODEL::OP_Resources_R(), PARAMS(), pop_to_template_arg_list(), pop_topmost_sequence(), Predicate_Block(), Prepend_Wn_Pair(), print_frame_inst_bytes(), print_operand(), TRACK_CUR_VERSION::Print_stack(), Print_version_stack(), MRT::Probe_Resources(), prune_unused_phi_nodes(), EXC::Push_exc_scope(), push_topmost_sequence(), Resolve_Conditional_Branch(), result_pop(), rs6000_ra_ever_killed(), Simulated_Op_Real_Inst_Words(), sort_pointers(), Special_Sequence(), ETABLE::SPRE_rename_var(), ETABLE::Stmt_is_redundant(), SCC_FINDER::Strong_Components(), SWP_Bundle_Next_Cycle(), SWP_Pack_A_Bundle(), SWP_Pack_Into_New_Bundles(), test_is_replaced(), TOP_with_Imm_Opnd(), Verify_Instruction(), WGEN_process_omp_clause(), and WHIRL_To_TOP().
1.5.6