GCC Middle and Back End API Reference
gimple-iterator.c File Reference

Functions

static void update_modified_stmt ()
static void update_modified_stmts ()
static void update_bb_for_stmts (gimple_seq_node first, gimple_seq_node last, basic_block bb)
static void update_call_edge_frequencies ()
static void gsi_insert_seq_nodes_before (gimple_stmt_iterator *i, gimple_seq_node first, gimple_seq_node last, enum gsi_iterator_update mode)
void gsi_insert_seq_before_without_update (gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)
void gsi_insert_seq_before (gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)
static void gsi_insert_seq_nodes_after (gimple_stmt_iterator *i, gimple_seq_node first, gimple_seq_node last, enum gsi_iterator_update m)
void gsi_insert_seq_after_without_update (gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)
void gsi_insert_seq_after (gimple_stmt_iterator *i, gimple_seq seq, enum gsi_iterator_update mode)
gimple_seq gsi_split_seq_after ()
void gsi_set_stmt ()
void gsi_split_seq_before ()
void gsi_replace ()
void gsi_replace_with_seq (gimple_stmt_iterator *gsi, gimple_seq seq, bool update_eh_info)
void gsi_insert_before_without_update (gimple_stmt_iterator *i, gimple stmt, enum gsi_iterator_update m)
void gsi_insert_before (gimple_stmt_iterator *i, gimple stmt, enum gsi_iterator_update m)
void gsi_insert_after_without_update (gimple_stmt_iterator *i, gimple stmt, enum gsi_iterator_update m)
void gsi_insert_after (gimple_stmt_iterator *i, gimple stmt, enum gsi_iterator_update m)
bool gsi_remove ()
gimple_stmt_iterator gsi_for_stmt ()
void gsi_move_after ()
void gsi_move_before ()
void gsi_move_to_bb_end ()
void gsi_insert_on_edge ()
void gsi_insert_seq_on_edge ()
static bool gimple_find_edge_insert_loc (edge e, gimple_stmt_iterator *gsi, basic_block *new_bb)
basic_block gsi_insert_on_edge_immediate ()
basic_block gsi_insert_seq_on_edge_immediate ()
void gsi_commit_edge_inserts ()
void gsi_commit_one_edge_insert ()
gimple_stmt_iterator gsi_start_phis ()

Function Documentation

static bool gimple_find_edge_insert_loc ( edge  e,
gimple_stmt_iterator gsi,
basic_block new_bb 
)
static
Insert the statement pointed-to by GSI into edge E.  Every attempt
   is made to place the statement in an existing basic block, but
   sometimes that isn't possible.  When it isn't possible, the edge is
   split and the statement is added to the new block.

   In all cases, the returned *GSI points to the correct location.  The
   return value is true if insertion should be done after the location,
   or false if it should be done before the location.  If a new basic block
   has to be created, it is stored in *NEW_BB.   

References edge_def::dest, edge_def::flags, gimple_seq_empty_p(), gsi_end_p(), gsi_last_bb(), gsi_next(), gsi_start_bb(), gsi_stmt(), phi_nodes(), single_pred_edge(), single_pred_p(), single_succ_p(), split_edge(), edge_def::src, and stmt_ends_bb_p().

Referenced by gsi_commit_one_edge_insert(), gsi_insert_on_edge_immediate(), and gsi_insert_seq_on_edge_immediate().

void gsi_commit_one_edge_insert ( )
Commit insertions pending at edge E. If a new block is created, set NEW_BB
   to this block, otherwise set it to NULL.   

References gimple_stmt_iterator_d::bb, gimple_find_edge_insert_loc(), gimple_seq_first(), gsi_insert_seq_after(), gsi_insert_seq_before(), GSI_NEW_STMT, and update_call_edge_frequencies().

Referenced by copy_phis_for_bb(), and gsi_commit_edge_inserts().

gimple_stmt_iterator gsi_for_stmt ( )
Finds iterator for STMT.   

References gimple_bb(), gsi_start_bb(), gsi_start_phis(), and gimple_stmt_iterator_d::ptr.

Referenced by adjust_iv_update_pos(), adjust_last_stmt(), appears_later_in_bb(), attempt_builtin_powi(), build_and_add_sum(), build_arrays(), build_one_array(), cgraph_redirect_edge_call_stmt_to_callee(), cond_if_else_store_replacement_1(), cond_store_replacement(), conditional_replacement(), convert_mult_to_fma(), create_new_iv(), determine_known_aggregate_parts(), eliminate(), execute_cse_reciprocals(), execute_cse_sincos_1(), execute_sm(), execute_update_addresses_taken(), expand_omp_build_assign(), expand_omp_for_init_counts(), expand_omp_for_static_chunk(), expand_omp_for_static_nochunk(), expand_omp_simd(), find_conditional_asserts(), find_switch_asserts(), forward_propagate_addr_expr(), forward_propagate_comparison(), gen_inbound_check(), get_string_length(), gimple_divmod_fixed_value(), gimple_gen_average_profiler(), gimple_gen_ic_profiler(), gimple_gen_interval_profiler(), gimple_gen_ior_profiler(), gimple_gen_one_value_profiler(), gimple_gen_pow2_profiler(), gimple_ic(), gimple_mod_pow2(), gimple_mod_subtract(), gimple_stringop_fixed_value(), gimple_value_profile_transformations(), hoist_adjacent_loads(), ifcombine_ifandif(), insert_clobber_before_stack_restore(), insert_debug_temp_for_var_def(), insert_initializers(), insert_out_of_ssa_copy(), insert_stmt_after(), instrument_builtin_call(), instrument_mem_region_access(), introduce_cast_before_cand(), ipa_modify_call_arguments(), issue_prefetch_ref(), linearize_expr(), n_of_executions_at_most(), negate_value(), sm_set_flag_if_changed::operator()(), optimize_stack_restore(), propagate_into_all_uses(), propagate_op_to_single_use(), propagate_rhs_into_lhs(), propagate_with_phi(), reassociate_to_the_same_stmt(), release_defs_bitset(), remove_dead_inserted_code(), remove_exits_and_undefined_stmts(), remove_gimple_phi_args(), remove_name_from_operation(), remove_prop_source_from_use(), remove_stmt(), remove_stmt_or_phi(), remove_unused_ivs(), remove_visited_stmt_chain(), replace_mult_candidate(), replace_one_candidate(), replace_reciprocal(), replace_ref(), replace_ref_with(), replace_rhs_if_not_dup(), replace_uses_by(), repropagate_negates(), rewrite_cross_bb_scalar_dependence(), rewrite_cross_bb_scalar_deps(), rewrite_use_address(), rewrite_use_compare(), rewrite_use_nonlinear_expr(), scev_const_prop(), shrink_wrap_one_built_in_call(), simplify_builtin_call(), simplify_conversion_from_bitmask(), slpeel_make_loop_iterate_ntimes(), sra_ipa_reset_debug_stmts(), statement_sink_location(), substitute_and_fold(), tm_log_emit_stmt(), translate_scalar_reduction_to_array_for_stmt(), update_range_test(), vect_get_constant_vectors(), vect_is_simple_reduction_1(), vect_remove_slp_scalar_calls(), vect_remove_stores(), vect_schedule_slp(), vect_schedule_slp_instance(), and verify_bb_vtables().

void gsi_insert_after ( gimple_stmt_iterator i,
gimple  stmt,
enum gsi_iterator_update  m 
)
Insert statement STMT after the statement pointed-to by iterator I.
   Update STMT's basic block and scan it for new operands.  M
   specifies how to update iterator I after insertion (see enum
   gsi_iterator_update).   

References gsi_insert_after_without_update(), and update_modified_stmt().

Referenced by abs_replacement(), build_and_add_sum(), build_check_stmt(), build_ref_for_offset(), cond_if_else_store_replacement_1(), cond_store_replacement(), copy_bb(), create_add_on_incoming_edge(), create_call_for_reduction_1(), create_empty_if_region_on_edge(), create_empty_loop_on_edge(), create_iv(), create_loads_and_stores_for_name(), create_loads_for_reductions(), create_parallel_loop(), create_stores_for_reduction(), execute_cse_sincos_1(), execute_fixup_cfg(), execute_optimize_bswap(), execute_sm_if_changed(), expand_call_inline(), expand_call_tm(), expand_complex_div_wide(), expand_omp_for_generic(), expand_omp_for_init_vars(), expand_omp_for_static_chunk(), expand_omp_for_static_nochunk(), expand_omp_sections(), expand_omp_simd(), expand_omp_taskreg(), expand_parallel_call(), expand_thunk(), expand_transaction(), extract_omp_for_update_vars(), factor_computed_gotos(), generate_memcpy_builtin(), generate_memset_builtin(), generate_subtree_copies(), gimple_duplicate_bb(), gimple_duplicate_sese_tail(), gimple_lv_add_condition_to_bb(), gimple_merge_blocks(), gimple_regimplify_operands(), gimple_seq_add_stmt(), graphite_copy_stmts_from_block(), gsi_insert_on_edge_immediate(), gsi_move_after(), init_subtree_with_zero(), input_bb(), insert_backedge_copies(), insert_if_then_before_iter(), insert_init_debug_bind(), insert_init_stmt(), insert_initializers(), insert_reciprocals(), instrument_builtin_call(), instrument_strlen_call(), ipa_tm_insert_gettmclone_call(), load_assign_lhs_subreplacements(), lower_eh_constructs_2(), lower_function_body(), lower_omp_sections(), lower_resx(), lower_transaction(), make_blocks(), maybe_register_def(), sm_set_flag_if_changed::operator()(), process_assert_insertions_for(), reassociate_bb(), remap_ssa_name(), remove_dead_stmt(), replace_goto_queue_cond_clause(), replace_ref_with(), rewrite_stmt(), set_ifsese_condition(), set_prologue_iterations(), slpeel_add_loop_guard(), split_function(), sra_modify_expr(), thunk_adjust(), tm_log_emit_restores(), tree_transform_and_unroll_loop(), unloop_loops(), update_accumulator_with_ops(), and verify_bb_vtables().

void gsi_insert_after_without_update ( gimple_stmt_iterator i,
gimple  stmt,
enum gsi_iterator_update  m 
)
Insert statement STMT after the statement pointed-to by iterator I.
   M specifies how to update iterator I after insertion (see enum
   gsi_iterator_update).

   This function does not scan for new operands.  It is provided for
   the use of the gimplifier, which manipulates statements for which
   def/use information has not yet been constructed.  Most callers
   should use gsi_insert_after.   

References gsi_insert_seq_nodes_after().

Referenced by gimple_seq_add_stmt_without_update(), gimplify_and_update_call_from_tree(), gsi_insert_after(), and save_tmp_var().

void gsi_insert_before ( gimple_stmt_iterator i,
gimple  stmt,
enum gsi_iterator_update  m 
)
Insert statement STMT before the statement pointed-to by iterator I.
   Update STMT's basic block and scan it for new operands.  M
   specifies how to update iterator I after insertion (see enum
   gsi_iterator_update).   

References gsi_insert_before_without_update(), and update_modified_stmt().

Referenced by abs_replacement(), adjust_return_value_with_ops(), attempt_builtin_powi(), build_and_add_sum(), build_and_insert_binop(), build_and_insert_call(), build_and_insert_cast(), build_and_insert_ref(), build_arrays(), build_one_array(), build_ref_for_offset(), build_tm_load(), build_tm_store(), cond_if_else_store_replacement_1(), cond_store_replacement(), conditional_replacement(), convert_nl_goto_receiver(), create_add_on_incoming_edge(), create_final_loads_for_reduction(), create_iv(), create_parallel_loop(), do_regular_insertion(), eliminate_bb(), eliminate_insert(), emit_case_bit_tests(), emit_mfence_after_loop(), execute_cse_sincos(), execute_cse_sincos_1(), execute_optimize_bswap(), execute_sm(), expand_assign_tm(), expand_call_inline(), expand_complex_div_wide(), expand_complex_move(), expand_omp_atomic_mutex(), expand_omp_atomic_pipeline(), expand_omp_build_assign(), expand_omp_for_generic(), expand_omp_for_init_counts(), expand_omp_for_static_chunk(), expand_omp_for_static_nochunk(), expand_transaction(), expand_vector_divmod(), factor_computed_gotos(), gen_def_assigns(), gen_inbound_check(), generate_subtree_copies(), get_initial_def_for_induction(), get_string_length(), gimple_block_label(), gimple_divmod_fixed_value(), gimple_gen_average_profiler(), gimple_gen_ic_func_profiler(), gimple_gen_ic_profiler(), gimple_gen_interval_profiler(), gimple_gen_ior_profiler(), gimple_gen_one_value_profiler(), gimple_gen_pow2_profiler(), gimple_ic(), gimple_merge_blocks(), gimple_mod_pow2(), gimple_mod_subtract(), gimple_stringop_fixed_value(), gsi_insert_on_edge_immediate(), gsi_move_before(), handle_scalar_deps_crossing_scop_limits(), hoist_edge_and_branch_if_true(), ifc_temp_var(), init_subtree_with_zero(), init_tmp_var_with_call(), insert_backedge_copies(), insert_clobber_before_stack_restore(), insert_debug_temp_for_var_def(), insert_init_debug_bind(), insert_initializers(), insert_phi_nodes_for(), insert_reciprocals(), instrument_builtin_call(), instrument_func_entry(), instrument_func_exit(), instrument_strlen_call(), introduce_cast_before_cand(), ipa_modify_call_arguments(), ipa_tm_insert_gettmclone_call(), ipa_tm_insert_irr_call(), issue_prefetch_ref(), label_to_block_fn(), lower_builtin_setjmp(), lower_eh_constructs_2(), lower_eh_dispatch(), lower_gimple_return(), lower_resx(), maybe_instrument_call(), maybe_move_debug_stmts_to_successors(), minmax_replacement(), mx_register_decls(), powi_as_mults(), powi_as_mults_1(), predicate_scalar_phi(), propagate_threaded_block_debug_into(), reassociate_to_the_same_stmt(), remap_ssa_name(), remove_bb(), remove_exits_and_undefined_stmts(), remove_forwarder_block(), remove_unused_ivs(), replace_ref_with(), rewrite_bittest(), rewrite_close_phi_out_of_ssa(), rewrite_debug_stmt_uses(), rewrite_degenerate_phi(), rewrite_phi_with_iv(), rewrite_reciprocal(), rewrite_use_nonlinear_expr(), scev_const_prop(), shrink_wrap_one_built_in_call(), simplify_bitwise_binary(), simplify_float_conversion_using_ranges(), simplify_rotate(), simplify_truth_ops_using_ranges(), sink_clobbers(), slpeel_make_loop_iterate_ntimes(), split_function(), sra_ipa_reset_debug_stmts(), sra_modify_assign(), sra_modify_expr(), substitute_and_fold(), tm_log_emit_saves(), tm_log_emit_stmt(), transform_to_exit_first_loop(), vect_create_data_ref_ptr(), vect_create_epilog_for_reduction(), vect_finish_stmt_generation(), vect_init_vector_1(), vect_is_simple_reduction_1(), vect_setup_realignment(), and vector_element().

void gsi_insert_before_without_update ( gimple_stmt_iterator i,
gimple  stmt,
enum gsi_iterator_update  m 
)
Insert statement STMT before the statement pointed-to by iterator I.
   M specifies how to update iterator I after insertion (see enum
   gsi_iterator_update).

   This function does not scan for new operands.  It is provided for
   the use of the gimplifier, which manipulates statements for which
   def/use information has not yet been constructed.  Most callers
   should use gsi_insert_before.   

References gsi_insert_seq_nodes_before().

Referenced by gsi_insert_before(), init_tmp_var(), and lower_rec_input_clauses().

void gsi_insert_on_edge ( )
Add STMT to the pending list of edge E.  No actual insertion is
   made until a call to gsi_commit_edge_inserts () is made.   

References gimple_seq_add_stmt().

Referenced by cond_store_replacement(), execute_sm(), gimple_flow_call_edges_add(), gimple_gen_edge_profiler(), move_computations_stmt(), phiprop_insert_phi(), and process_assert_insertions_for().

void gsi_insert_seq_after_without_update ( gimple_stmt_iterator i,
gimple_seq  seq,
enum gsi_iterator_update  mode 
)
Links sequence SEQ after the statement pointed-to by iterator I.
   MODE is as in gsi_insert_after.

   This function does not scan for new operands.  It is provided for
   the use of the gimplifier, which manipulates statements for which
   def/use information has not yet been constructed.  Most callers
   should use gsi_insert_seq_after.   

References first, gimple_seq_first(), gimple_seq_last(), gsi_insert_seq_nodes_after(), last, and gimple_stmt_iterator_d::seq.

Referenced by gimplify_seq_add_seq(), and gsi_insert_seq_after().

void gsi_insert_seq_before_without_update ( gimple_stmt_iterator i,
gimple_seq  seq,
enum gsi_iterator_update  mode 
)
Inserts the sequence of statements SEQ before the statement pointed
   by iterator I.  MODE indicates what to do with the iterator after
   insertion (see enum gsi_iterator_update).

   This function does not scan for new operands.  It is provided for
   the use of the gimplifier, which manipulates statements for which
   def/use information has not yet been constructed.  Most callers
   should use gsi_insert_seq_before.   

References first, gimple_seq_first(), gimple_seq_last(), gsi_insert_seq_nodes_before(), last, and gimple_stmt_iterator_d::seq.

Referenced by gimplify_cleanup_point_expr(), gsi_insert_seq_before(), and vect_get_constant_vectors().

static void gsi_insert_seq_nodes_after ( gimple_stmt_iterator i,
gimple_seq_node  first,
gimple_seq_node  last,
enum gsi_iterator_update  m 
)
static
Insert the sequence delimited by nodes FIRST and LAST after
   iterator I.  M specifies how to update iterator I after insertion
   (see enum gsi_iterator_update).

   This routine assumes that there is a forward and backward path
   between FIRST and LAST (i.e., they are linked in a doubly-linked
   list).  Additionally, if FIRST == LAST, this routine will properly
   insert a single node.   

References first, gimple_seq_last(), gimple_seq_set_first(), gimple_seq_set_last(), gsi_bb(), GSI_CONTINUE_LINKING, GSI_NEW_STMT, GSI_SAME_STMT, last, gimple_statement_base::next, gimple_statement_base::prev, gimple_stmt_iterator_d::ptr, gimple_stmt_iterator_d::seq, and update_bb_for_stmts().

Referenced by gsi_insert_after_without_update(), and gsi_insert_seq_after_without_update().

static void gsi_insert_seq_nodes_before ( gimple_stmt_iterator i,
gimple_seq_node  first,
gimple_seq_node  last,
enum gsi_iterator_update  mode 
)
static
Insert the sequence delimited by nodes FIRST and LAST before
   iterator I.  M specifies how to update iterator I after insertion
   (see enum gsi_iterator_update).

   This routine assumes that there is a forward and backward path
   between FIRST and LAST (i.e., they are linked in a doubly-linked
   list).  Additionally, if FIRST == LAST, this routine will properly
   insert a single node.   

References first, gimple_seq_last(), gimple_seq_set_first(), gimple_seq_set_last(), gsi_bb(), GSI_CONTINUE_LINKING, GSI_NEW_STMT, GSI_SAME_STMT, last, gimple_statement_base::next, gimple_statement_base::prev, gimple_stmt_iterator_d::ptr, gimple_stmt_iterator_d::seq, and update_bb_for_stmts().

Referenced by gsi_insert_before_without_update(), and gsi_insert_seq_before_without_update().

void gsi_insert_seq_on_edge ( )
void gsi_move_after ( )
Move the statement at FROM so it comes right after the statement at TO.   

References gsi_insert_after(), GSI_NEW_STMT, gsi_remove(), and gsi_stmt().

Referenced by gsi_move_to_bb_end(), and insert_stmt_after().

void gsi_move_before ( )
void gsi_move_to_bb_end ( )
Move the statement at FROM to the end of basic block BB.   

References gsi_bb(), gsi_end_p(), gsi_last_bb(), gsi_move_after(), gsi_move_before(), gsi_stmt(), is_ctrl_stmt(), and last.

Referenced by hoist_adjacent_loads(), and sink_code_in_bb().

bool gsi_remove ( )
Remove the current stmt from the sequence.  The iterator is updated
   to point to the next statement.

   REMOVE_PERMANENTLY is true when the statement is going to be removed
   from the IL and not reinserted elsewhere.  In that case we remove the
   statement pointed to by iterator I from the EH tables, and free its
   operand caches.  Otherwise we do not modify this information.  Returns
   true whether EH edge cleanup is required.   

References cfun, delink_stmt_imm_use(), gimple_remove_stmt_histograms(), gimple_seq_set_last(), gimple_set_bb(), gimple_set_modified(), gsi_stmt(), insert_debug_temps_for_defs(), gimple_statement_base::next, gimple_statement_base::prev, gimple_stmt_iterator_d::ptr, remove_stmt_from_eh_lp(), and gimple_stmt_iterator_d::seq.

Referenced by adjust_last_stmt(), cleanup_control_expr_graph(), cleanup_control_flow_bb(), cleanup_dead_labels(), cleanup_empty_eh_move_lp(), cond_if_else_store_replacement_1(), cond_store_replacement(), convert_mult_to_fma(), create_parallel_loop(), dse_optimize_stmt(), eliminate(), eliminate_tail_call(), emit_case_bit_tests(), execute_fold_all_builtins(), execute_optimize_bswap(), execute_optimize_widening_mul(), execute_update_addresses_taken(), expand_assign_tm(), expand_call_inline(), expand_complex_div_wide(), expand_gimple_basic_block(), expand_omp_atomic_fetch_op(), expand_omp_atomic_load(), expand_omp_atomic_mutex(), expand_omp_atomic_pipeline(), expand_omp_atomic_store(), expand_omp_for_generic(), expand_omp_for_static_chunk(), expand_omp_for_static_nochunk(), expand_omp_sections(), expand_omp_simd(), expand_omp_single(), expand_omp_synch(), expand_omp_taskreg(), expand_transaction(), forward_propagate_addr_expr(), generate_loops_for_partition(), gimple_merge_blocks(), gimple_redirect_edge_and_branch(), gimple_try_redirect_by_replacing_jump(), gimplify_cleanup_point_expr(), gsi_move_after(), gsi_move_before(), gsi_replace_with_seq(), handle_char_store(), honor_protect_cleanup_actions(), input_function(), lower_builtin_setjmp(), lower_eh_constructs_2(), lower_eh_dispatch(), lower_gimple_bind(), lower_gimple_return(), lower_resx(), lower_stmt(), lower_transaction(), make_goto_expr_edges(), maybe_move_debug_stmts_to_successors(), move_computations_stmt(), optimize_clobbers(), optimize_stmt(), propagate_constants_for_unrolling(), propagate_op_to_single_use(), propagate_rhs_into_lhs(), propagate_with_phi(), reassociate_bb(), release_defs_bitset(), remove_bb(), remove_conditions_and_labels(), remove_ctrl_stmt_and_useless_edges(), remove_dead_inserted_code(), remove_dead_stmt(), remove_forwarder_block(), remove_phi_node(), remove_prop_source_from_use(), remove_range_assertions(), remove_stmt(), remove_stmt_or_phi(), remove_unused_locals(), remove_visited_stmt_chain(), replace_goto_queue_1(), replace_phi_edge_with_variable(), rewrite_bittest(), separate_decls_in_region(), set_ifsese_condition(), simplify_builtin_call(), simplify_conversion_from_bitmask(), sink_clobbers(), slpeel_make_loop_iterate_ntimes(), sra_ipa_reset_debug_stmts(), sra_modify_assign(), sra_modify_constructor_assign(), ssa_forward_propagate_and_combine(), strip_predict_hints(), substitute_and_fold(), tree_nrv(), vect_remove_stores(), vect_schedule_slp(), and vect_transform_loop().

void gsi_replace_with_seq ( gimple_stmt_iterator gsi,
gimple_seq  seq,
bool  update_eh_info 
)
Replace the statement pointed-to by GSI with the sequence SEQ.
   If UPDATE_EH_INFO is true, the exception handling information of
   the original statement is moved to the last statement of the new
   sequence.  If the old statement is an assignment, then so must
   be the last statement of the new sequence, and they must have the
   same LHS.   

References gimple_seq_empty_p(), gsi_insert_seq_before(), gsi_remove(), gsi_replace(), GSI_SAME_STMT, gsi_stmt(), and last.

Referenced by gimplify_and_update_call_from_tree().

void gsi_set_stmt ( )
Set the statement to which GSI points to STMT.  This only updates
   the iterator and the gimple sequence, it doesn't do the bookkeeping
   of gsi_replace.   

References gimple_seq_set_first(), gimple_seq_set_last(), gsi_stmt(), gimple_statement_base::next, gimple_statement_base::prev, gimple_stmt_iterator_d::ptr, and gimple_stmt_iterator_d::seq.

Referenced by gimplify_cleanup_point_expr(), gsi_replace(), and reserve_phi_args_for_new_edge().

gimple_seq gsi_split_seq_after ( )
Move all statements in the sequence after I to a new sequence.
   Return this new sequence.   

References gimple_seq_last(), gimple_seq_set_first(), gimple_seq_set_last(), gimple_statement_base::next, gimple_stmt_iterator_d::ptr, and gimple_stmt_iterator_d::seq.

Referenced by gimplify_cleanup_point_expr().

void gsi_split_seq_before ( )
Move all statements in the sequence before I to a new sequence.
   Return this new sequence.  I is set to the head of the new list.   

References gimple_seq_last(), gimple_seq_set_first(), gimple_seq_set_last(), gimple_statement_base::next, gimple_statement_base::prev, gimple_stmt_iterator_d::ptr, and gimple_stmt_iterator_d::seq.

Referenced by gimple_split_block(), and make_blocks().

gimple_stmt_iterator gsi_start_phis ( )
Returns iterator at the start of the list of phi nodes of BB.   

References gsi_start_1(), and phi_nodes_ptr().

Referenced by add_phi_args_after_copy_edge(), add_scope_conflicts_1(), add_successor_phi_arg(), build_arrays(), build_cgraph_edges(), build_constructors(), build_ssa_conflict_graph(), calculate_live_on_exit(), canonicalize_loop_closed_ssa(), canonicalize_loop_ivs(), ccp_initialize(), cgraph_rebuild_references(), check_all_va_list_escapes(), check_final_bb(), cleanup_empty_eh_merge_phis(), coalesce_partitions(), collect_dfa_stats(), compute_avail(), compute_points_to_sets(), consider_split(), copy_phi_args(), copy_phis_for_bb(), cprop_into_successor_phis(), create_loads_for_reductions(), create_outofssa_var_map(), create_parallel_loop(), destroy_loop(), destroy_loop_vec_info(), determine_invariantness_stmt(), determine_set_costs(), dom_opt_enter_block(), dump_phi_nodes(), eliminate_bb(), eliminate_build(), eliminate_degenerate_phis_1(), eliminate_tail_call(), eliminate_temp_copies(), eliminate_unnecessary_stmts(), eliminate_useless_phis(), estimate_function_body_sizes(), execute_cse_reciprocals(), execute_late_warn_uninitialized(), execute_optimize_stdarg(), execute_sm_if_changed(), execute_update_addresses_taken(), expand_omp_for_static_chunk(), expand_omp_for_static_nochunk(), find_assert_locations_1(), find_bivs(), find_candidates_in_block(), find_decls_types_in_node(), find_interesting_uses(), find_interesting_uses_outside(), find_looparound_phi(), find_obviously_necessary_stmts(), find_subloop_latch_edge_by_ivs(), find_uses_to_rename_bb(), fix_phi_nodes(), flush_pending_stmts(), forward_edge_to_pdom(), gather_default_values(), gather_scalar_reductions(), generate_loops_for_partition(), gimple_can_merge_blocks_p(), gimple_dump_bb_for_graph(), gimple_duplicate_sese_tail(), gimple_ic(), gimple_lv_adjust_loop_header_phi(), gimple_make_forwarder_block(), gimple_merge_blocks(), gsi_for_phi_node(), gsi_for_stmt(), hoist_adjacent_loads(), if_convertible_loop_p_1(), init_copy_prop(), init_dont_simulate_again(), initialize_flags_in_bb(), input_function(), insert_backedge_copies(), ipa_analyze_params_uses(), ipa_pta_execute(), ipa_sra_modify_function_body(), loop_closed_phi_def(), loop_has_vector_phi_nodes(), lower_emutls_function_body(), make_close_phi_nodes_unique(), mark_bivs(), merge_phi_nodes(), move_block_to_fn(), move_computations_stmt(), new_loop_vec_info(), output_bb(), output_function(), phi_alternatives_equal(), phi_args_equal_on_edges(), predicate_all_scalar_phis(), prepare_block_for_update(), propagate_constants_for_unrolling(), propagate_rhs_into_lhs(), propagate_through_phis(), rebuild_cgraph_edges(), record_equivalences_from_phis(), record_temporary_equivalences_from_phis(), reinstall_phi_args(), release_last_vdef(), remove_dead_phis(), remove_forwarder_block(), remove_forwarder_block_with_phi(), remove_phi_args(), remove_phi_nodes(), remove_unused_locals(), rename_ssa_copies(), rename_variables_in_bb(), renumber_gimple_stmt_uids(), renumber_gimple_stmt_uids_in_blocks(), reserve_phi_args_for_new_edge(), rewrite_add_phi_arguments(), rewrite_all_phi_nodes_with_iv(), rewrite_commutative_reductions_out_of_ssa_loop(), rewrite_enter_block(), rewrite_reductions_out_of_ssa(), rewrite_trees(), rewrite_update_enter_block(), same_phi_alternatives_1(), same_phi_args_p(), same_succ_hash(), scev_const_prop(), scop_ivs_can_be_represented(), separate_decls_in_region(), sese_build_liveouts_bb(), simulate_block(), sink_clobbers(), slpeel_tree_peel_loop_to_edge(), slpeel_update_phi_nodes_for_guard1(), slpeel_update_phi_nodes_for_guard2(), split_function(), split_loop_exit_edge(), ssa_prop_init(), ssa_redirect_edge(), stmts_from_loop(), strlen_enter_block(), substitute_and_fold(), suitable_cond_bb(), thread_around_empty_block(), transform_to_exit_first_loop(), tree_loop_distribution(), tree_ssa_phiprop(), tree_transform_and_unroll_loop(), try_create_reduction_list(), unsplit_eh(), update_phi_components(), update_ssa_across_abnormal_edges(), vect_analyze_loop_operations(), vect_analyze_scalar_cycles_1(), vect_can_advance_ivs_p(), vect_determine_vectorization_factor(), vect_loop_versioning(), vect_mark_stmts_to_be_vectorized(), vect_transform_loop(), vect_update_ivs_after_vectorizer(), verify_cgraph_node(), verify_gimple_in_cfg(), verify_live_on_entry(), verify_loop_closed_ssa(), verify_non_ssa_vars(), verify_ssa(), visit_bb(), vop_phi(), and vrp_initialize().

static void update_bb_for_stmts ( gimple_seq_node  first,
gimple_seq_node  last,
basic_block  bb 
)
static
Set BB to be the basic block for all the statements in the list
   starting at FIRST and LAST.   

References gimple_set_bb(), and gimple_statement_base::next.

Referenced by gsi_insert_seq_nodes_after(), and gsi_insert_seq_nodes_before().

static void update_call_edge_frequencies ( )
static
Set the frequencies for the cgraph_edges for each of the calls
   starting at FIRST for their new position within BB.   

References cgraph_edge(), cgraph_get_node(), compute_call_stmt_bb_frequency(), current_function_decl, cgraph_edge::frequency, is_gimple_call(), and gimple_statement_base::next.

Referenced by gsi_commit_one_edge_insert(), gsi_insert_on_edge_immediate(), and gsi_insert_seq_on_edge_immediate().

static void update_modified_stmt ( )
inlinestatic
@verbatim Iterator routines for GIMPLE statements.

Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by Aldy Hernandez aldy@.nosp@m.ques.nosp@m.ejoda.nosp@m..com

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

Mark the statement STMT as modified, and update it.   

References cfun, ssa_operands_active(), and update_stmt_if_modified().

Referenced by gsi_insert_after(), gsi_insert_before(), and gsi_replace().

static void update_modified_stmts ( )
static
Mark the statements in SEQ as modified, and update them.   

References cfun, gsi_end_p(), gsi_next(), gsi_stmt(), ssa_operands_active(), and update_stmt_if_modified().

Referenced by gsi_insert_seq_after(), and gsi_insert_seq_before().