#include "config.h"#include "system.h"#include "coretypes.h"#include "tm.h"#include "tree.h"#include "flags.h"#include "function.h"#include "diagnostic.h"#include "errors.h"#include "tree-flow.h"#include "tree-inline.h"#include "tree-pass.h"#include "ggc.h"#include "timevar.h"#include "langhooks.h"#include "gt-tree-ssa-operands.h"

Go to the source code of this file.
| #define opf_is_def (1 << 0) |
Definition at line 91 of file tree-ssa-operands.c.
Referenced by add_call_clobber_ops(), add_stmt_operand(), add_virtual_operand(), build_ssa_operands(), get_asm_expr_operands(), get_expr_operands(), and get_modify_expr_operands().
| #define opf_kill_def (1 << 1) |
Definition at line 94 of file tree-ssa-operands.c.
Referenced by add_stmt_operand(), add_virtual_operand(), build_ssa_operands(), get_expr_operands(), get_indirect_ref_operands(), get_modify_expr_operands(), and get_tmr_operands().
| #define opf_no_vops (1 << 2) |
Definition at line 102 of file tree-ssa-operands.c.
Referenced by add_stmt_operand(), add_virtual_operand(), and get_expr_operands().
| #define opf_none 0 |
Definition at line 87 of file tree-ssa-operands.c.
Referenced by add_call_clobber_ops(), add_call_read_ops(), build_ssa_operands(), get_call_expr_operands(), get_expr_operands(), get_indirect_ref_operands(), get_modify_expr_operands(), get_tmr_operands(), and parse_ssa_operands().
Definition at line 1655 of file tree-ssa-operands.c.
References add_stmt_operand(), call_clobbered_vars, DECL_EXTERNAL, EXECUTE_IF_SET_IN_BITMAP, gcc_assert, global_var, i, memset, opf_is_def, opf_none, referenced_var, SSA_NAME, stmt_ann(), TREE_CODE, TREE_READONLY, TREE_STATIC, var_ann(), VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL, VARRAY_PUSH_TREE, VARRAY_TREE, and VARRAY_TREE_INIT.
Referenced by get_call_expr_operands().
Definition at line 1750 of file tree-ssa-operands.c.
References add_stmt_operand(), call_clobbered_vars, EXECUTE_IF_SET_IN_BITMAP, gcc_assert, global_var, i, memset, opf_none, referenced_var, SSA_NAME, stmt_ann(), TREE_CODE, var_ann(), VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL, VARRAY_PUSH_TREE, VARRAY_TREE, and VARRAY_TREE_INIT.
Referenced by get_call_expr_operands().
| static void add_stmt_operand | ( | tree * | var_p, | |
| stmt_ann_t | s_ann, | |||
| int | flags | |||
| ) | [static] |
Definition at line 1506 of file tree-ssa-operands.c.
References append_def(), append_use(), append_v_may_def(), append_v_must_def(), append_vuse(), DECL_P, gcc_assert, get_virtual_var(), i, is_gimple_reg(), NOT_A_TAG, note_addressable(), NULL, NULL_TREE, opf_is_def, opf_kill_def, opf_no_vops, SSA_NAME, SSA_NAME_VAR, SSA_VAR_P, STRIP_NOPS, sym, TREE_CODE, TREE_OPERAND, TREE_THIS_VOLATILE, var_ann(), VARRAY_ACTIVE_SIZE, VARRAY_TREE, and varray_type.
Referenced by add_call_clobber_ops(), add_call_read_ops(), get_asm_expr_operands(), get_expr_operands(), get_indirect_ref_operands(), and get_tmr_operands().
| static def_optype allocate_def_optype | ( | unsigned | num | ) | [inline, static] |
Definition at line 155 of file tree-ssa-operands.c.
References ggc_alloc, and size.
Referenced by finalize_ssa_defs().
| static use_optype allocate_use_optype | ( | unsigned | num | ) | [inline, static] |
Definition at line 169 of file tree-ssa-operands.c.
References ggc_alloc, and size.
Referenced by finalize_ssa_uses().
| static v_may_def_optype allocate_v_may_def_optype | ( | unsigned | num | ) | [inline, static] |
Definition at line 183 of file tree-ssa-operands.c.
References ggc_alloc, and size.
Referenced by copy_virtual_operands(), and finalize_ssa_v_may_defs().
| static v_must_def_optype allocate_v_must_def_optype | ( | unsigned | num | ) | [inline, static] |
Definition at line 212 of file tree-ssa-operands.c.
References ggc_alloc, and size.
Referenced by copy_virtual_operands(), and finalize_ssa_v_must_defs().
| static vuse_optype allocate_vuse_optype | ( | unsigned | num | ) | [inline, static] |
Definition at line 198 of file tree-ssa-operands.c.
References ggc_alloc, and size.
Referenced by copy_virtual_operands(), and finalize_ssa_vuses().
Definition at line 785 of file tree-ssa-operands.c.
References VARRAY_PUSH_TREE_PTR.
Referenced by add_stmt_operand().
Definition at line 794 of file tree-ssa-operands.c.
References VARRAY_PUSH_TREE_PTR.
Referenced by add_stmt_operand().
Definition at line 803 of file tree-ssa-operands.c.
References get_var_ann(), and VARRAY_PUSH_TREE.
Referenced by add_stmt_operand(), add_virtual_operand(), and copy_virtual_operands().
Definition at line 839 of file tree-ssa-operands.c.
References i, VARRAY_ACTIVE_SIZE, VARRAY_PUSH_TREE, and VARRAY_TREE.
Referenced by add_stmt_operand(), add_virtual_operand(), and copy_virtual_operands().
Definition at line 819 of file tree-ssa-operands.c.
References get_var_ann(), SSA_NAME, TREE_CODE, and VARRAY_PUSH_TREE.
Referenced by add_stmt_operand(), add_virtual_operand(), copy_virtual_operands(), and create_ssa_artficial_load_stmt().
| static void build_ssa_operands | ( | tree | stmt, | |
| stmt_ann_t | ann, | |||
| stmt_operands_p | old_ops, | |||
| stmt_operands_p | new_ops | |||
| ) | [static] |
Definition at line 870 of file tree-ssa-operands.c.
References COND_EXPR_COND, finalize_ssa_stmt_operands(), get_asm_expr_operands(), get_expr_operands(), GOTO_DESTINATION, LABEL_EXPR_LABEL, opf_is_def, opf_kill_def, opf_none, start_ssa_stmt_operands(), SWITCH_COND, TREE_CODE, and TREE_OPERAND.
Referenced by copy_virtual_operands(), create_ssa_artficial_load_stmt(), get_stmt_operands(), and update_stmt_operands().
Definition at line 519 of file tree-ssa-operands.c.
References var_ann(), VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL, VARRAY_TREE, and x.
Referenced by finalize_ssa_vuses().
Definition at line 1811 of file tree-ssa-operands.c.
Referenced by tree_duplicate_bb(), vectorizable_load(), and vectorizable_store().
| void create_ssa_artficial_load_stmt | ( | stmt_operands_p | old_ops, | |
| tree | new_stmt | |||
| ) |
Definition at line 1858 of file tree-ssa-operands.c.
References append_vuse(), build_ssa_operands(), finalize_ssa_vuses(), free_ssa_operands(), free_v_may_defs(), free_v_must_defs(), free_vuses(), get_stmt_ann(), memset, NULL, NUM_V_MAY_DEFS, NUM_V_MUST_DEFS, stmt_operands_t, tmp, V_MAY_DEF_RESULT, and V_MUST_DEF_RESULT.
Referenced by insert_fake_stores(), and record_equivalences_from_stmt().
| static def_optype finalize_ssa_defs | ( | def_optype * | old_ops_p, | |
| tree stmt | ATTRIBUTE_UNUSED | |||
| ) | [static] |
Definition at line 340 of file tree-ssa-operands.c.
References allocate_def_optype(), gcc_assert, NULL, TREE_CODE, VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL, VARRAY_TREE_PTR, and x.
Referenced by finalize_ssa_stmt_operands().
| static void finalize_ssa_stmt_operands | ( | tree | stmt, | |
| stmt_operands_p | old_ops, | |||
| stmt_operands_p | new_ops | |||
| ) | [inline, static] |
Definition at line 757 of file tree-ssa-operands.c.
References finalize_ssa_defs(), finalize_ssa_uses(), finalize_ssa_v_may_defs(), finalize_ssa_v_must_defs(), and finalize_ssa_vuses().
Referenced by build_ssa_operands(), and create_ssa_artficial_load_stmt().
| static use_optype finalize_ssa_uses | ( | use_optype * | old_ops_p, | |
| tree stmt | ATTRIBUTE_UNUSED | |||
| ) | [static] |
Definition at line 389 of file tree-ssa-operands.c.
References allocate_use_optype(), gcc_assert, NULL, VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL, VARRAY_TREE_PTR, and x.
Referenced by finalize_ssa_stmt_operands().
| static v_may_def_optype finalize_ssa_v_may_defs | ( | v_may_def_optype * | old_ops_p | ) | [static] |
Definition at line 445 of file tree-ssa-operands.c.
References allocate_v_may_def_optype(), i, NULL, result, SSA_NAME, SSA_NAME_VAR, TREE_CODE, VARRAY_ACTIVE_SIZE, VARRAY_TREE, and x.
Referenced by copy_virtual_operands(), and finalize_ssa_stmt_operands().
| static v_must_def_optype finalize_ssa_v_must_defs | ( | v_must_def_optype * | old_ops_p, | |
| tree stmt | ATTRIBUTE_UNUSED | |||
| ) | [static] |
Definition at line 680 of file tree-ssa-operands.c.
References allocate_v_must_def_optype(), gcc_assert, i, NULL, result, SSA_NAME, SSA_NAME_VAR, TREE_CODE, VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL, VARRAY_TREE, and x.
Referenced by copy_virtual_operands(), and finalize_ssa_stmt_operands().
| static vuse_optype finalize_ssa_vuses | ( | vuse_optype * | old_ops_p | ) | [static] |
Definition at line 536 of file tree-ssa-operands.c.
References allocate_vuse_optype(), cleanup_v_may_defs(), i, NULL, result, SSA_NAME, SSA_NAME_VAR, TREE_CODE, var_ann(), VARRAY_ACTIVE_SIZE, VARRAY_POP, VARRAY_POP_ALL, VARRAY_TREE, and x.
Referenced by copy_virtual_operands(), create_ssa_artficial_load_stmt(), and finalize_ssa_stmt_operands().
Definition at line 304 of file tree-ssa-operands.c.
Referenced by delete_tree_ssa(), and remove_ssa_form().
| static void free_defs | ( | def_optype * | defs | ) | [inline, static] |
Definition at line 239 of file tree-ssa-operands.c.
References ggc_free(), and NULL.
Referenced by finalize_ssa_def_ops(), fini_ssa_operands(), and free_ssa_operands().
| static void free_ssa_operands | ( | stmt_operands_p | ops | ) | [static] |
Definition at line 977 of file tree-ssa-operands.c.
References free_defs(), free_uses(), free_v_may_defs(), free_v_must_defs(), and free_vuses().
Referenced by create_ssa_artficial_load_stmt(), delete_tree_ssa(), and get_stmt_operands().
| static void free_uses | ( | use_optype * | uses | ) | [inline, static] |
Definition at line 226 of file tree-ssa-operands.c.
References ggc_free(), and NULL.
Referenced by finalize_ssa_use_ops(), fini_ssa_operands(), and free_ssa_operands().
| static void free_v_may_defs | ( | v_may_def_optype * | v_may_defs | ) | [inline, static] |
Definition at line 265 of file tree-ssa-operands.c.
References ggc_free(), and NULL.
Referenced by create_ssa_artficial_load_stmt(), and free_ssa_operands().
| static void free_v_must_defs | ( | v_must_def_optype * | v_must_defs | ) | [inline, static] |
Definition at line 278 of file tree-ssa-operands.c.
References ggc_free(), and NULL.
Referenced by create_ssa_artficial_load_stmt(), and free_ssa_operands().
| static void free_vuses | ( | vuse_optype * | vuses | ) | [inline, static] |
Definition at line 252 of file tree-ssa-operands.c.
References ggc_free(), and NULL.
Referenced by create_ssa_artficial_load_stmt(), finalize_ssa_vuse_ops(), fini_ssa_operands(), and free_ssa_operands().
Definition at line 1286 of file tree-ssa-operands.c.
References add_stmt_operand(), addressable_vars, alloca, ASM_CLOBBERS, ASM_INPUTS, ASM_OUTPUTS, call_clobbered_vars, DECL_P, EXECUTE_IF_SET_IN_BITMAP, gcc_assert, get_base_address(), get_expr_operands(), global_var, i, list_length(), note_addressable(), opf_is_def, parse_input_constraint(), parse_output_constraint(), referenced_var, stmt_ann(), strcmp(), TREE_CHAIN, TREE_PURPOSE, TREE_STRING_POINTER, and TREE_VALUE.
Referenced by build_ssa_operands(), parse_ssa_operands(), scan_for_refs(), scan_for_static_refs(), and scan_function().
Definition at line 1462 of file tree-ssa-operands.c.
References add_call_clobber_ops(), add_call_read_ops(), aliases_computed_p, bitmap_empty_p, call_clobbered_vars, call_expr_flags(), ECF_CONST, ECF_NORETURN, ECF_PURE, get_expr_operands(), opf_none, TREE_CHAIN, TREE_OPERAND, TREE_SIDE_EFFECTS, and TREE_VALUE.
Referenced by get_expr_operands().
Definition at line 1038 of file tree-ssa-operands.c.
References add_stmt_operand(), BLOCK, commutative_tree_code(), debug_tree(), error_mark_node, fprintf(), fputs(), gcc_unreachable, get_call_expr_operands(), get_indirect_ref_operands(), internal_error(), is_gimple_min_invariant(), NULL, opf_is_def, opf_kill_def, opf_no_vops, opf_none, SSA_NAME, SSA_VAR_P, stmt_ann(), swap_tree_comparison(), tcc_binary, tcc_comparison, tcc_constant, tcc_type, tcc_unary, TREE_CHAIN, TREE_CODE, TREE_CODE_CLASS, TREE_OPERAND, TREE_SET_CODE, tree_swap_operands_p(), TREE_THIS_VOLATILE, and TREE_VALUE.
Referenced by build_ssa_operands(), get_asm_expr_operands(), get_call_expr_operands(), get_expr_operands(), get_indirect_ref_operands(), get_modify_expr_operands(), get_tmr_operands(), and parse_ssa_operands().
Definition at line 1372 of file tree-ssa-operands.c.
References add_stmt_operand(), dump_file, dump_flags, fprintf(), gcc_unreachable, get_expr_operands(), NULL, opf_kill_def, opf_none, pi, print_generic_expr(), print_generic_stmt(), ptr, SSA_NAME, SSA_NAME_PTR_INFO, SSA_NAME_VAR, SSA_VAR_P, stmt_ann(), TREE_CODE, TREE_OPERAND, and var_ann().
Referenced by get_expr_operands().
Definition at line 997 of file tree-ssa-operands.c.
References build_ssa_operands(), free_ssa_operands(), gcc_assert, get_stmt_ann(), memset, SSA_VAR_P, stmt_operands_t, timevar_pop, timevar_push, and TREE_CODE.
Referenced by build_tree_conflict_graph(), calculate_live_on_entry(), ccp_initialize(), chain_of_csts_start(), check_loop_closed_ssa_stmt(), compute_avail(), compute_immediate_uses(), compute_points_to_and_addr_escape(), create_ssa_var_map(), dse_optimize_stmt(), eliminate_tail_call(), find_invariants_stmt(), find_tail_calls(), find_uses_to_rename_stmt(), fix_phi_uses(), fix_stmt_v_may_defs(), gcc_loop_to_lambda_loop(), init_alias_info(), likely_value(), mark_all_v_defs(), mark_def_sites(), mark_new_vars_to_rename(), mark_stmt_if_obviously_necessary(), movement_possibility(), new_loop_vec_info(), optimize_stmt(), propagate_necessity(), protect_loop_closed_ssa_form(), remove_dead_inserted_code(), rename_variables_in_bb(), replace_immediate_uses(), replace_uses_in(), replace_vuse_in(), rewrite_stmt(), rewrite_to_new_ssa_names_bb(), rewrite_trees(), ssa_mark_def_sites(), stmt_references_memory_p(), tree_duplicate_bb(), tree_may_unswitch_on(), vect_create_index_for_vector_ref(), and verify_ssa().
| static GTY | ( | () | ) | [static] |
Definition at line 291 of file tree-ssa-operands.c.
Referenced by init_tree_ssa(), and rewrite_into_ssa().
| static void note_addressable | ( | tree | var, | |
| stmt_ann_t | s_ann | |||
| ) | [static] |
Definition at line 1636 of file tree-ssa-operands.c.
References BITMAP_GGC_ALLOC, bitmap_set_bit(), get_base_address(), NULL, SSA_VAR_P, and var_ann().
Referenced by add_stmt_operand(), and get_asm_expr_operands().
Definition at line 772 of file tree-ssa-operands.c.
References gcc_assert, and VARRAY_ACTIVE_SIZE.
Referenced by build_ssa_operands(), and create_ssa_artficial_load_stmt().
| use_operand_p NULL_USE_OPERAND_P = { NULL } |
Definition at line 137 of file tree-ssa-operands.c.
1.5.6