/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | sancov.c | 146 gswitch *switch_stmt = as_a<gswitch *> (stmt); in instrument_switch() local 147 tree index = gimple_switch_index (switch_stmt); in instrument_switch() 153 unsigned i, n = gimple_switch_num_labels (switch_stmt), num = 0; in instrument_switch() 156 tree label = gimple_switch_label (switch_stmt, i); in instrument_switch() 193 tree label = gimple_switch_label (switch_stmt, i); in instrument_switch()
|
H A D | sancov.cc | 146 gswitch *switch_stmt = as_a<gswitch *> (stmt); in instrument_switch() local 147 tree index = gimple_switch_index (switch_stmt); in instrument_switch() 153 unsigned i, n = gimple_switch_num_labels (switch_stmt), num = 0; in instrument_switch() 156 tree label = gimple_switch_label (switch_stmt, i); in instrument_switch() 193 tree label = gimple_switch_label (switch_stmt, i); in instrument_switch()
|
H A D | tree-ssa-uncprop.c | 172 gswitch *switch_stmt = as_a <gswitch *> (stmt); in associate_equivalences_with_edges() local 173 tree cond = gimple_switch_index (switch_stmt); in associate_equivalences_with_edges() 178 int i, n_labels = gimple_switch_num_labels (switch_stmt); in associate_equivalences_with_edges() 186 tree label = gimple_switch_label (switch_stmt, i); in associate_equivalences_with_edges()
|
H A D | tree-ssa-uncprop.cc | 172 gswitch *switch_stmt = as_a <gswitch *> (stmt); in associate_equivalences_with_edges() local 173 tree cond = gimple_switch_index (switch_stmt); in associate_equivalences_with_edges() 178 int i, n_labels = gimple_switch_num_labels (switch_stmt); in associate_equivalences_with_edges() 186 tree label = gimple_switch_label (switch_stmt, i); in associate_equivalences_with_edges()
|
H A D | tree-ssa-dom.c | 443 gswitch *switch_stmt = as_a <gswitch *> (stmt); in record_edge_info() local 444 tree index = gimple_switch_index (switch_stmt); in record_edge_info() 449 int n_labels = gimple_switch_num_labels (switch_stmt); in record_edge_info() 456 tree label = gimple_switch_label (switch_stmt, i); in record_edge_info() 899 if (gswitch *switch_stmt = dyn_cast <gswitch *> (stmt)) in simplify_stmt_for_jump_threading() local 901 tree op = gimple_switch_index (switch_stmt); in simplify_stmt_for_jump_threading() 920 tree label = gimple_switch_label (switch_stmt, i); in simplify_stmt_for_jump_threading() 936 return gimple_switch_label (switch_stmt, 0); in simplify_stmt_for_jump_threading() 941 unsigned n = gimple_switch_num_labels (switch_stmt); in simplify_stmt_for_jump_threading() 942 tree min_label = gimple_switch_label (switch_stmt, 1); in simplify_stmt_for_jump_threading() [all …]
|
H A D | tree-cfg.h | 99 extern tree find_case_label_for_value (const gswitch *switch_stmt, tree val); 100 extern edge find_taken_edge_switch_expr (const gswitch *switch_stmt, tree val);
|
H A D | tree-ssa-dom.cc | 443 gswitch *switch_stmt = as_a <gswitch *> (stmt); in record_edge_info() local 444 tree index = gimple_switch_index (switch_stmt); in record_edge_info() 449 int n_labels = gimple_switch_num_labels (switch_stmt); in record_edge_info() 456 tree label = gimple_switch_label (switch_stmt, i); in record_edge_info() 691 if (gswitch *switch_stmt = dyn_cast <gswitch *> (stmt)) in simplify() local 693 tree op = gimple_switch_index (switch_stmt); in simplify() 698 return find_case_label_range (switch_stmt, vr); in simplify()
|
H A D | tree-cfg.c | 1606 gswitch *switch_stmt = as_a <gswitch *> (stmt); in cleanup_dead_labels() local 2446 if (gimple_switch_num_labels (switch_stmt) == 1) in find_taken_edge_switch_expr() 2451 val = gimple_switch_index (switch_stmt); in find_taken_edge_switch_expr() 2459 e = find_edge (gimple_bb (switch_stmt), dest_bb); in find_taken_edge_switch_expr() 2478 tree t = gimple_switch_label (switch_stmt, i); in find_case_label_for_value() 5731 n = gimple_switch_num_labels (switch_stmt); in gimple_verify_flow_info() 5742 prev = gimple_switch_label (switch_stmt, 0); in gimple_verify_flow_info() 5745 tree c = gimple_switch_label (switch_stmt, i); in gimple_verify_flow_info() 5792 switch_stmt, i); in gimple_verify_flow_info() 5987 gswitch *switch_stmt = as_a <gswitch *> (stmt); in gimple_redirect_edge_and_branch() local [all …]
|
H A D | tree-cfg.cc | 1601 gswitch *switch_stmt = as_a <gswitch *> (stmt); in cleanup_dead_labels() local 2466 if (gimple_switch_num_labels (switch_stmt) == 1) in find_taken_edge_switch_expr() 2471 val = gimple_switch_index (switch_stmt); in find_taken_edge_switch_expr() 2479 e = find_edge (gimple_bb (switch_stmt), dest_bb); in find_taken_edge_switch_expr() 2498 tree t = gimple_switch_label (switch_stmt, i); in find_case_label_for_value() 5780 n = gimple_switch_num_labels (switch_stmt); in gimple_verify_flow_info() 5791 prev = gimple_switch_label (switch_stmt, 0); in gimple_verify_flow_info() 5794 tree c = gimple_switch_label (switch_stmt, i); in gimple_verify_flow_info() 5841 switch_stmt, i); in gimple_verify_flow_info() 6036 gswitch *switch_stmt = as_a <gswitch *> (stmt); in gimple_redirect_edge_and_branch() local [all …]
|
H A D | tree-ssa-threadedge.cc | 1425 gswitch *switch_stmt = dyn_cast <gswitch *> (stmt); in simplify() local 1426 tree index = gimple_switch_index (switch_stmt); in simplify() 1428 return find_case_label_range (switch_stmt, &r); in simplify()
|
H A D | tree-vrp.cc | 2450 find_case_label_range (gswitch *switch_stmt, const irange *range_of_op) in find_case_label_range() argument 2458 tree op = gimple_switch_index (switch_stmt); in find_case_label_range() 2462 find_case_label_range (switch_stmt, tmin, tmax, &i, &j); in find_case_label_range() 2467 tree label = gimple_switch_label (switch_stmt, i); in find_case_label_range() 2480 return gimple_switch_label (switch_stmt, 0); in find_case_label_range() 2488 unsigned n = gimple_switch_num_labels (switch_stmt); in find_case_label_range() 2489 tree min_label = gimple_switch_label (switch_stmt, 1); in find_case_label_range() 2490 tree max_label = gimple_switch_label (switch_stmt, n - 1); in find_case_label_range() 2499 return gimple_switch_label (switch_stmt, 0); in find_case_label_range()
|
H A D | tree-vrp.c | 4923 if (gswitch *switch_stmt = dyn_cast <gswitch *> (stmt)) in simplify_stmt_for_jump_threading() local 4925 tree op = gimple_switch_index (switch_stmt); in simplify_stmt_for_jump_threading() 4942 find_case_label_range (switch_stmt, vr->min (), vr->max (), &i, &j); in simplify_stmt_for_jump_threading() 4947 tree label = gimple_switch_label (switch_stmt, i); in simplify_stmt_for_jump_threading() 4963 return gimple_switch_label (switch_stmt, 0); in simplify_stmt_for_jump_threading() 4968 unsigned n = gimple_switch_num_labels (switch_stmt); in simplify_stmt_for_jump_threading() 4969 tree min_label = gimple_switch_label (switch_stmt, 1); in simplify_stmt_for_jump_threading() 4970 tree max_label = gimple_switch_label (switch_stmt, n - 1); in simplify_stmt_for_jump_threading() 4981 return gimple_switch_label (switch_stmt, 0); in simplify_stmt_for_jump_threading()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/ |
H A D | sancov.c | 146 gswitch *switch_stmt = as_a<gswitch *> (stmt); in instrument_switch() local 147 tree index = gimple_switch_index (switch_stmt); in instrument_switch() 153 unsigned i, n = gimple_switch_num_labels (switch_stmt), num = 0; in instrument_switch() 156 tree label = gimple_switch_label (switch_stmt, i); in instrument_switch() 193 tree label = gimple_switch_label (switch_stmt, i); in instrument_switch()
|
H A D | tree-ssa-uncprop.c | 172 gswitch *switch_stmt = as_a <gswitch *> (stmt); in associate_equivalences_with_edges() local 173 tree cond = gimple_switch_index (switch_stmt); in associate_equivalences_with_edges() 178 int i, n_labels = gimple_switch_num_labels (switch_stmt); in associate_equivalences_with_edges() 186 tree label = gimple_switch_label (switch_stmt, i); in associate_equivalences_with_edges()
|
H A D | tree-ssa-dom.c | 443 gswitch *switch_stmt = as_a <gswitch *> (stmt); in record_edge_info() local 444 tree index = gimple_switch_index (switch_stmt); in record_edge_info() 449 int n_labels = gimple_switch_num_labels (switch_stmt); in record_edge_info() 456 tree label = gimple_switch_label (switch_stmt, i); in record_edge_info() 899 if (gswitch *switch_stmt = dyn_cast <gswitch *> (stmt)) in simplify_stmt_for_jump_threading() local 901 tree op = gimple_switch_index (switch_stmt); in simplify_stmt_for_jump_threading() 920 tree label = gimple_switch_label (switch_stmt, i); in simplify_stmt_for_jump_threading() 936 return gimple_switch_label (switch_stmt, 0); in simplify_stmt_for_jump_threading() 941 unsigned n = gimple_switch_num_labels (switch_stmt); in simplify_stmt_for_jump_threading() 942 tree min_label = gimple_switch_label (switch_stmt, 1); in simplify_stmt_for_jump_threading() [all …]
|
H A D | tree-cfg.h | 105 extern tree find_case_label_for_value (const gswitch *switch_stmt, tree val); 106 extern edge find_taken_edge_switch_expr (const gswitch *switch_stmt, tree val);
|
H A D | tree-cfg.c | 1606 gswitch *switch_stmt = as_a <gswitch *> (stmt); in cleanup_dead_labels() local 2446 if (gimple_switch_num_labels (switch_stmt) == 1) in find_taken_edge_switch_expr() 2451 val = gimple_switch_index (switch_stmt); in find_taken_edge_switch_expr() 2459 e = find_edge (gimple_bb (switch_stmt), dest_bb); in find_taken_edge_switch_expr() 2478 tree t = gimple_switch_label (switch_stmt, i); in find_case_label_for_value() 5731 n = gimple_switch_num_labels (switch_stmt); in gimple_verify_flow_info() 5742 prev = gimple_switch_label (switch_stmt, 0); in gimple_verify_flow_info() 5745 tree c = gimple_switch_label (switch_stmt, i); in gimple_verify_flow_info() 5792 switch_stmt, i); in gimple_verify_flow_info() 5987 gswitch *switch_stmt = as_a <gswitch *> (stmt); in gimple_redirect_edge_and_branch() local [all …]
|
H A D | tree-vrp.c | 4923 if (gswitch *switch_stmt = dyn_cast <gswitch *> (stmt)) in simplify_stmt_for_jump_threading() local 4925 tree op = gimple_switch_index (switch_stmt); in simplify_stmt_for_jump_threading() 4942 find_case_label_range (switch_stmt, vr->min (), vr->max (), &i, &j); in simplify_stmt_for_jump_threading() 4947 tree label = gimple_switch_label (switch_stmt, i); in simplify_stmt_for_jump_threading() 4963 return gimple_switch_label (switch_stmt, 0); in simplify_stmt_for_jump_threading() 4968 unsigned n = gimple_switch_num_labels (switch_stmt); in simplify_stmt_for_jump_threading() 4969 tree min_label = gimple_switch_label (switch_stmt, 1); in simplify_stmt_for_jump_threading() 4970 tree max_label = gimple_switch_label (switch_stmt, n - 1); in simplify_stmt_for_jump_threading() 4981 return gimple_switch_label (switch_stmt, 0); in simplify_stmt_for_jump_threading()
|
/netbsd/external/gpl3/gcc/dist/gcc/analyzer/ |
H A D | constraint-manager.h | 173 const gswitch *switch_stmt); 192 const gswitch *switch_stmt); 195 make_case_label_ranges (const gswitch *switch_stmt,
|
H A D | constraint-manager.cc | 942 const gswitch *switch_stmt) in get_or_create_ranges_for_switch() argument 950 = create_ranges_for_switch (*edge, switch_stmt); in get_or_create_ranges_for_switch() 962 const gswitch *switch_stmt) in create_ranges_for_switch() argument 966 (gimple_switch_num_labels (switch_stmt)); in create_ranges_for_switch() 972 = make_case_label_ranges (switch_stmt, case_label); in create_ranges_for_switch() 988 make_case_label_ranges (const gswitch *switch_stmt, in make_case_label_ranges() argument 1008 (gimple_switch_num_labels (switch_stmt)); in make_case_label_ranges() 1010 other_idx < gimple_switch_num_labels (switch_stmt); in make_case_label_ranges() 1013 tree other_label = gimple_switch_label (switch_stmt, in make_case_label_ranges() 1016 = make_case_label_ranges (switch_stmt, other_label); in make_case_label_ranges() [all …]
|
/netbsd/external/gpl3/gcc/dist/gcc/c-family/ |
H A D | c-common.def | 83 DEFTREECODE (SWITCH_STMT, "switch_stmt", tcc_statement, 4)
|
/netbsd/external/gpl3/gcc/dist/gcc/jit/ |
H A D | jit-playback.c | 1796 tree switch_stmt = build2 (SWITCH_EXPR, t_type, t_expr, t_switch_body); in add_switch() local 1798 set_tree_location (switch_stmt, loc); in add_switch() 1799 add_stmt (switch_stmt); in add_switch()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/jit/ |
H A D | jit-playback.c | 1796 tree switch_stmt = build2 (SWITCH_EXPR, t_type, t_expr, t_switch_body); in add_switch() local 1798 set_tree_location (switch_stmt, loc); in add_switch() 1799 add_stmt (switch_stmt); in add_switch()
|
/netbsd/external/gpl3/gcc/dist/gcc/cp/ |
H A D | semantics.c | 1244 finish_switch_cond (tree cond, tree switch_stmt) in finish_switch_cond() argument 1277 finish_cond (&SWITCH_STMT_COND (switch_stmt), cond); in finish_switch_cond() 1278 SWITCH_STMT_TYPE (switch_stmt) = orig_type; in finish_switch_cond() 1279 add_stmt (switch_stmt); in finish_switch_cond() 1280 push_switch (switch_stmt); in finish_switch_cond() 1281 SWITCH_STMT_BODY (switch_stmt) = push_stmt_list (); in finish_switch_cond() 1288 finish_switch_stmt (tree switch_stmt) in finish_switch_stmt() argument 1292 SWITCH_STMT_BODY (switch_stmt) = in finish_switch_stmt() 1293 pop_stmt_list (SWITCH_STMT_BODY (switch_stmt)); in finish_switch_stmt() 1296 scope = SWITCH_STMT_SCOPE (switch_stmt); in finish_switch_stmt() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/gcc/cp/ |
H A D | semantics.c | 1244 finish_switch_cond (tree cond, tree switch_stmt) in finish_switch_cond() argument 1277 finish_cond (&SWITCH_STMT_COND (switch_stmt), cond); in finish_switch_cond() 1278 SWITCH_STMT_TYPE (switch_stmt) = orig_type; in finish_switch_cond() 1279 add_stmt (switch_stmt); in finish_switch_cond() 1280 push_switch (switch_stmt); in finish_switch_cond() 1281 SWITCH_STMT_BODY (switch_stmt) = push_stmt_list (); in finish_switch_cond() 1288 finish_switch_stmt (tree switch_stmt) in finish_switch_stmt() argument 1292 SWITCH_STMT_BODY (switch_stmt) = in finish_switch_stmt() 1293 pop_stmt_list (SWITCH_STMT_BODY (switch_stmt)); in finish_switch_stmt() 1296 scope = SWITCH_STMT_SCOPE (switch_stmt); in finish_switch_stmt() [all …]
|