Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "wn.h"
Go to the source code of this file.
#define WN_INSERT_BlockFirst | ( | b, | |
in | |||
) | WN_INSERT_BlockBefore(b, WN_first(b), in) |
Definition at line 350 of file wn_util.h.
Referenced by cwh_block_append_given_id(), cwh_mp_region(), cwh_stmt_add_to_preamble(), cwh_stmt_insert_conformance_check(), fei_redistribute(), and Rewrite_Pragmas_On_Structs().
#define WN_INSERT_BlockLast | ( | b, | |
in | |||
) | WN_INSERT_BlockAfter(b, WN_last(b), in) |
Definition at line 359 of file wn_util.h.
Referenced by cwh_block_append_given_block(), cwh_block_append_given_id(), cwh_directive_add_do_loop_directive(), cwh_mp_region(), cwh_stmt_add_to_preamble(), fei_descriptor(), fei_redistribute(), Spill_And_Take_Address(), Spill_Shared_Load(), WN_Convert_Shared_To_Local(), WN_Create_PtrEq_Test(), WN_Create_Shared_Load(), WN_Create_Shared_Ptr_Arithmetic(), WN_Create_Shared_Ptr_Diff(), WN_Create_Shared_Store(), and WN_Create_StoP_Cvt().
#define WN_ITER_stack | ( | wni | ) | ((wni)->stack) |
Definition at line 314 of file wn_util.h.
Referenced by WN_WALK_Abort(), WN_WALK_SCFIter(), WN_WALK_SCFNext(), WN_WALK_StmtIter(), WN_WALK_StmtNext(), WN_WALK_TreeIter(), and WN_WALK_TreeNext().
#define WN_ITER_wn | ( | wni | ) | ((wni)->wn) |
Definition at line 313 of file wn_util.h.
Referenced by Adjust_Srcpos_Range(), cwh_stab_distrib_pragmas(), DRA_Mangle_All(), DRA_Processing(), ANL_VARLIST::Insert_Var_Refs(), Remove_Skips(), WN_num_var_refs(), WN_WALK_SCFIter(), WN_WALK_SCFNext(), WN_WALK_StmtIter(), WN_WALK_StmtNext(), WN_WALK_TreeIter(), and WN_WALK_TreeNext().
#define WN_STACK_size | ( | wns | ) | ((wns)->size) |
Definition at line 311 of file wn_util.h.
Referenced by WN_InitStack(), and WN_Push().
#define WN_STACK_sp | ( | wns | ) | ((wns)->sp) |
Definition at line 310 of file wn_util.h.
Referenced by WN_InitStack(), WN_Pop(), and WN_Push().
#define WN_STACK_stack | ( | wns | ) | ((wns)->stack) |
Definition at line 309 of file wn_util.h.
Referenced by WN_FreeStack(), WN_InitStack(), WN_Pop(), and WN_Push().
void WN_COPY_All_Maps | ( | WN * | dst, |
WN * | src | ||
) |
Definition at line 661 of file wn_util.cxx.
References wn_map_tab::_is_used, Current_Map_Tab, WN_CopyMap(), and WN_MAP_MAX.
Referenced by WN_COPY_Tree_With_Map().
WN* WN_COPY_Tree | ( | WN * | tree_node | ) |
Definition at line 597 of file wn_util.cxx.
References Is_True, NULL, OPC_BLOCK, OPCODE_operator(), OPERATOR_FIRST, OPERATOR_LAST, WN_COPY_Tree(), WN_CopyNode(), WN_first(), WN_kid(), WN_kid_count(), WN_last(), WN_next(), WN_opcode(), and WN_prev().
Referenced by cleanUpPUInfo(), cwh_addr_adjust_array(), cwh_addr_do_bounds_check(), cwh_addr_extent(), cwh_addr_nonc_recast(), cwh_addr_pstid(), cwh_addr_stid(), cwh_addr_temp_section(), cwh_addr_ubound_from_triplet(), cwh_char_intrin(), cwh_convert_to_ty(), cwh_do_tranformational(), cwh_dope_from_expression(), cwh_dope_store(), cwh_expr_binop_shift(), cwh_expr_compare_char(), cwh_inline_allocate(), cwh_io_conv_array_to_dope(), cwh_io_conv_arrsection_to_dope(), cwh_io_split_io_items(), cwh_io_split_io_statement(), cwh_stk_push_top_item_again(), cwh_stmt_assigned_goto(), cwh_stmt_call_helper(), cwh_stmt_character_icall(), cwh_stmt_computed_goto(), cwh_stmt_insert_conformance_check(), cwh_stmt_select_case_char(), cwh_types_array_temp_TY(), DRA_EC_Array_Portion_Parms(), F90_Size_Walk(), fei_allocate(), fei_arith_goto(), fei_as_ref(), fei_concat(), fei_constant(), fei_doloop(), fei_islg(), fei_logb(), fei_mvbits(), fei_new_select(), fei_new_select_case(), fei_push_arith_con(), fei_set_dv_hdr_fld(), fei_sign_xfer(), fei_stop(), fei_substr(), fei_task_var(), Insert_Call(), MemCtr_Add_Local(), Rewrite_Pragmas_On_Structs(), Rewrite_Structs_In_MPRegion(), WN_COPY_Tree(), WN_Create_Shared_Load(), WN_Create_Shared_Store(), and WN_LOOP_TripCount().
WN* WN_COPY_Tree_With_Map | ( | WN * | tree_node | ) |
Definition at line 675 of file wn_util.cxx.
References Is_True, NULL, OPC_BLOCK, OPCODE_operator(), OPERATOR_FIRST, OPERATOR_LAST, WN_COPY_All_Maps(), WN_COPY_Tree_With_Map(), WN_CopyNode(), WN_first(), WN_kid(), WN_kid_count(), WN_last(), WN_next(), WN_opcode(), and WN_prev().
Referenced by WN_COPY_Tree_With_Map().
void WN_DELETE_FromBlock | ( | WN * | blck, |
WN * | wn | ||
) |
Definition at line 765 of file wn_util.cxx.
References FALSE, Is_True, NULL, OPCODE_is_scf(), OPCODE_is_stmt(), TRUE, WN_DELETE_Tree(), WN_first(), WN_last(), WN_next(), WN_opcode(), and WN_prev().
Referenced by Delete_Dist_Reshape_Pragmas(), ANL_LOOP_CONSTRUCT::Remove_Stmt_In_Block(), Rewrite_Pragmas_On_Structs(), and Rewrite_Structs_In_MPRegion().
void WN_DELETE_Tree | ( | WN * | tree | ) |
Definition at line 739 of file wn_util.cxx.
References next, NULL, OPC_BLOCK, WN_Delete, WN_DELETE_Tree(), WN_first(), WN_kid(), WN_kid_count(), WN_next(), and WN_opcode().
Referenced by arrsection_to_array(), cwh_addr_adjust_array(), cwh_addr_do_bounds_check(), cwh_addr_fixup_nseq(), cwh_addr_nonc_recast(), cwh_addr_temp_section(), cwh_dope_from_expression(), cwh_expr_extract_arrayexp(), cwh_stab_add_pragma(), cwh_stmt_conformance_checks_walk(), cwh_stmt_insert_conformance_check(), cwh_stmt_select_char(), cwh_types_mk_namelist_item_TY(), F90_Rank_Walk(), F90_Size_Walk(), fei_allocate(), fei_doloop(), fei_fcd(), fei_near(), fei_new_select(), fei_static_simple_reloc_init(), Rewrite_Structs_In_MPRegion(), simple_intrinsic(), simple_intrinsic_nt(), TCON_from_stack(), WN_DELETE_FromBlock(), and WN_DELETE_Tree().
WN* WN_EXTRACT_FromBlock | ( | WN * | parent, |
WN * | item | ||
) |
Definition at line 813 of file wn_util.cxx.
References Is_True, NULL, OPC_BLOCK, WN_first(), WN_last(), WN_next(), WN_opcode(), and WN_prev().
Referenced by WN_EXTRACT_ItemsFromBlock().
WN* WN_EXTRACT_ItemsFromBlock | ( | WN * | parent, |
WN * | first_item, | ||
WN * | last_item | ||
) |
Definition at line 846 of file wn_util.cxx.
References Is_True, NULL, OPC_BLOCK, WN_EXTRACT_FromBlock(), WN_first(), WN_last(), WN_next(), WN_opcode(), and WN_prev().
void WN_INSERT_BlockAfter | ( | WN * | b, |
WN * | wn, | ||
WN * | in | ||
) |
Definition at line 469 of file wn_util.cxx.
References FALSE, FmtAssert, NULL, OPC_BLOCK, OPCODE_is_scf(), OPCODE_is_stmt(), OPR_BLOCK, TRUE, wn, WN_Delete, WN_first(), WN_last(), WN_next(), WN_opcode(), WN_operator(), and WN_prev().
Referenced by cwh_block_insert_after(), DRA_EC_Array_Portion_Parms(), DRA_Insert_Pragmas(), Gen_Call_Array(), Gen_Free_Cart(), Insert_Call(), and Rewrite_Pragmas_On_Structs().
void WN_INSERT_BlockBefore | ( | WN * | b, |
WN * | wn, | ||
WN * | in | ||
) |
Definition at line 346 of file wn_util.cxx.
References FALSE, FmtAssert, NULL, OPC_BLOCK, OPCODE_is_scf(), OPCODE_is_stmt(), OPR_BLOCK, TRUE, wn, WN_Delete, WN_first(), WN_last(), WN_next(), WN_opcode(), WN_operator(), and WN_prev().
Referenced by Add_Pragma_To_MP_Regions(), cwh_stmt_insert_conformance_check(), DRA_EC_Array_Portion_Parms(), Gen_Malloc_Cart(), Insert_Alloca(), MemCtr_Add_Local(), Rewrite_Pragmas_On_Structs(), and Rewrite_Structs_In_MPRegion().
BOOL WN_is_black_box | ( | const WN * | wn | ) | [inline] |
Definition at line 427 of file wn_util.h.
References OPCODE_is_black_box(), and WN_opcode().
WN* WN_LOOP_Increment | ( | const WN * | loop, |
BOOL * | is_incr | ||
) |
Definition at line 1067 of file wn_util.cxx.
References FALSE, NULL, OPR_ADD, OPR_PSTID, OPR_STID, OPR_SUB, TRUE, WN_kid0(), WN_kid1(), wn_loop_get_st_ofst(), WN_LOOP_InductionVariable(), wn_loop_ref_matches_var(), WN_operator(), WN_st_idx(), WN_step, and WN_store_offset().
Referenced by WN_LOOP_TripCount().
WN* WN_LOOP_InductionVariable | ( | const WN * | loop | ) |
Definition at line 958 of file wn_util.cxx.
References NULL, OPC_DO_LOOP, WN_index, and WN_opcode().
Referenced by WN_LOOP_Increment(), WN_LOOP_LowerBound(), and WN_LOOP_UpperBound().
WN* WN_LOOP_LowerBound | ( | const WN * | loop | ) |
Definition at line 977 of file wn_util.cxx.
References NULL, OPR_PSTID, OPR_STID, start, WN_kid0(), wn_loop_get_st_ofst(), WN_LOOP_InductionVariable(), WN_operator(), WN_st_idx(), WN_start, and WN_store_offset().
Referenced by WN_LOOP_TripCount().
WN* WN_LOOP_TripCount | ( | const WN * | loop | ) |
Definition at line 1134 of file wn_util.cxx.
References MTYPE_is_integral, MTYPE_V, NULL, OPC_DO_LOOP, OPCODE_desc(), OPCODE_operator(), OPR_ADD, OPR_DIV, OPR_GT, OPR_LT, OPR_SUB, TRUE, WN_COPY_Tree(), WN_CreateExp2(), WN_LOOP_Increment(), WN_LOOP_LowerBound(), WN_LOOP_UpperBound(), WN_opcode(), WN_rtype(), and WN_Simplifier_Enable().
WN* WN_LOOP_UpperBound | ( | const WN * | loop, |
OPCODE * | compare | ||
) |
Definition at line 1019 of file wn_util.cxx.
References NULL, OPCODE_is_compare(), OPCODE_UNKNOWN, WN_end, WN_kid0(), WN_kid1(), wn_loop_get_st_ofst(), WN_LOOP_InductionVariable(), wn_loop_ref_matches_var(), wn_loop_reverse_compare(), and WN_opcode().
Referenced by WN_LOOP_TripCount().
INT32 WN_object_size | ( | const WN * | ) |
Definition at line 1245 of file wn_util.cxx.
References FALSE, FmtAssert, MTYPE_size_min, OPR_ILDBITS, OPR_ILOAD, OPR_ILOADX, OPR_INTCONST, OPR_ISTBITS, OPR_ISTORE, OPR_ISTOREX, OPR_LDBITS, OPR_LDID, OPR_MLOAD, OPR_MSTORE, OPR_PARM, OPR_PSTID, OPR_PSTORE, OPR_STBITS, OPR_STID, WN_const_val(), WN_desc(), WN_kid1(), WN_kid2(), WN_operator(), and WN_rtype().
TY_IDX WN_object_ty | ( | const WN * | ) |
Definition at line 1218 of file wn_util.cxx.
References field_type(), Is_True, KIND_POINTER, KIND_STRUCT, OPCODE_is_load(), OPCODE_is_store(), OPR_LDBITS, OPR_LDID, OPR_PSTID, OPR_STBITS, OPR_STID, TY_kind(), TY_pointed(), Ty_Table, WN_field_id(), WN_opcode(), WN_operator(), and WN_ty().
Referenced by WN_Create_Shared_Load().
void WN_WALK_Abort | ( | WN_ITER * | ) |
Definition at line 332 of file wn_util.cxx.
References FmtAssert, free(), NULL, WN_FreeStack(), and WN_ITER_stack.
WN_ITER* WN_WALK_SCFIter | ( | WN * | wn | ) |
Definition at line 144 of file wn_util.cxx.
References FmtAssert, OPCODE_is_scf(), OPERATOR_FIRST, OPERATOR_LAST, wn, WN_InitStack(), WN_ITER_stack, WN_ITER_wn, WN_opcode(), and WN_operator().
WN_ITER* WN_WALK_SCFNext | ( | WN_ITER * | ) |
Definition at line 279 of file wn_util.cxx.
References free(), NULL, OPCODE_is_scf(), OPR_BLOCK, WN_FreeStack(), WN_ITER_stack, WN_ITER_wn, WN_kid(), WN_kid_count(), WN_last(), WN_opcode(), WN_operator(), WN_Pop(), WN_prev(), and WN_Push().
WN_ITER* WN_WALK_StmtIter | ( | WN * | ) |
Definition at line 165 of file wn_util.cxx.
References FmtAssert, OPCODE_is_scf(), OPCODE_is_stmt(), OPERATOR_FIRST, OPERATOR_LAST, wn, WN_InitStack(), WN_ITER_stack, WN_ITER_wn, WN_opcode(), and WN_operator().
Referenced by Accumulate_Stmt_PUinfo(), Adjust_Srcpos_Range(), cwh_stab_distrib_pragmas(), and Remove_Skips().
WN_ITER* WN_WALK_StmtNext | ( | WN_ITER * | ) |
Definition at line 232 of file wn_util.cxx.
References free(), NULL, OPCODE_is_scf(), OPR_BLOCK, WN_FreeStack(), WN_ITER_stack, WN_ITER_wn, WN_kid(), WN_kid_count(), WN_last(), WN_opcode(), WN_operator(), WN_Pop(), WN_prev(), and WN_Push().
Referenced by Adjust_Srcpos_Range(), cwh_stab_distrib_pragmas(), and Remove_Skips().
WN_ITER* WN_WALK_TreeIter | ( | WN * | ) |
Definition at line 125 of file wn_util.cxx.
References FmtAssert, OPERATOR_FIRST, OPERATOR_LAST, wn, WN_InitStack(), WN_ITER_stack, WN_ITER_wn, and WN_operator().
Referenced by Accumulate_Expr_PUinfo(), DRA_Mangle_All(), DRA_Processing(), ANL_VARLIST::Insert_Var_Refs(), True_Bound(), WN_num_var_refs(), WN_Rename_Duplicate_Labels(), and WN_Tree_Has_Duplicate_Labels().
WN_ITER* WN_WALK_TreeNext | ( | WN_ITER * | ) |
Definition at line 194 of file wn_util.cxx.
References free(), NULL, OPR_BLOCK, WN_FreeStack(), WN_ITER_stack, WN_ITER_wn, WN_kid(), WN_kid_count(), WN_last(), WN_operator(), WN_Pop(), WN_prev(), and WN_Push().
Referenced by DRA_Mangle_All(), DRA_Processing(), ANL_VARLIST::Insert_Var_Refs(), True_Bound(), WN_num_var_refs(), WN_Rename_Duplicate_Labels(), and WN_Tree_Has_Duplicate_Labels().