osprey/crayf90/sgi/cwh_stk.cxx File Reference

#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"

Include dependency graph for cwh_stk.cxx:

Go to the source code of this file.

Data Types

type  stk_entry_t

Defines

#define STK_SIZE_CHANGE   512
#define STK_EMPTY   -1

Functions/Subroutines

void cwh_stk_push (void *item, enum item_class Class)
void cwh_stk_push_typed (void *item, enum item_class Class, TY_IDX ty)
void cwh_stk_push_STR (void *len, void *addr, TY_IDX ty, enum item_class addr_class)
WNcwh_stk_pop_WN (void)
WNcwh_stk_pop_WHIRL (void)
STcwh_stk_pop_ST (void)
FLD_IDX cwh_stk_pop_FLD (void)
WNcwh_stk_pop_ADDR (void)
WNcwh_stk_pop_DEREF (void)
void cwh_stk_pop_STR (void)
STcwh_stk_pop_PCONST (void)
LABEL_IDX cwh_stk_pop_LB (void)
void cwh_stk_pop_whatever (void)
enum item_class cwh_stk_get_class (void)
TY_IDX cwh_stk_get_TY (void)
TY_IDX cwh_stk_get_FLD_TY (void)
INT32 cwh_stk_count_STRs (INT32 n)
BOOL cwh_stk_is_byte_STR (INT32 n)
void cwh_stk_verify_empty (void)
void cwh_stk_dump (void)
WNcwh_stk_pop_iostmt (IOSTATEMENT opc, INT32 eeeflag)
INT32 cwh_stk_get_num_inquire_items (void)
void cwh_stk_push_top_item_again (void)
char * cwh_stk_fld_name (void)

Variables

static const char * source_file = __FILE__
static INT32 current_size = 0
static stk_entry_tstk = NULL
static INT32 top = STK_EMPTY


Define Documentation

#define STK_EMPTY   -1

Definition at line 94 of file cwh_stk.cxx.

Referenced by cwh_stk_verify_empty().

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


Function Documentation

INT32 cwh_stk_count_STRs ( INT32  n  ) 

Definition at line 443 of file cwh_stk.cxx.

References c, DevAssert, i, INT32, STR_item, and top.

Referenced by cwh_stmt_call_helper().

void cwh_stk_dump ( void   ) 

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   ) 

TY_IDX cwh_stk_get_FLD_TY ( void   ) 

INT32 cwh_stk_get_num_inquire_items ( void   ) 

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

TY_IDX cwh_stk_get_TY ( void   ) 

BOOL cwh_stk_is_byte_STR ( INT32  n  ) 

WN* cwh_stk_pop_ADDR ( void   ) 

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

WN* cwh_stk_pop_DEREF ( void   ) 

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

FLD_IDX cwh_stk_pop_FLD ( void   ) 

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 
)

LABEL_IDX cwh_stk_pop_LB ( void   ) 

ST* cwh_stk_pop_PCONST ( void   ) 

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

ST* cwh_stk_pop_ST ( void   ) 

void cwh_stk_pop_STR ( void   ) 

void cwh_stk_pop_whatever ( void   ) 

WN* cwh_stk_pop_WHIRL ( void   ) 

WN* cwh_stk_pop_WN ( void   ) 

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 
)

void cwh_stk_push_top_item_again ( void   ) 

void cwh_stk_push_typed ( void item,
enum item_class  Class,
TY_IDX  ty 
)

void cwh_stk_verify_empty ( void   ) 

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


Variable Documentation

INT32 current_size = 0 [static]

const char* source_file = __FILE__ [static]

Definition at line 67 of file cwh_stk.cxx.

stk_entry_t* stk = NULL [static]

INT32 top = STK_EMPTY [static]

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


Generated on Wed Apr 8 14:45:48 2009 for Open64 by  doxygen 1.5.6