Home
last modified time | relevance | path

Searched refs:switch_stmt (Results 1 – 25 of 44) sorted by relevance

12

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dsancov.cc146 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 Dtree-ssa-uncprop.cc172 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 Dtree-cfg.h99 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 Dtree-ssa-dom.cc443 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 Dtree-cfg.cc1601 gswitch *switch_stmt = as_a <gswitch *> (stmt); in cleanup_dead_labels() local
1602 size_t i, n = gimple_switch_num_labels (switch_stmt); in cleanup_dead_labels()
1607 tree case_label = gimple_switch_label (switch_stmt, i); in cleanup_dead_labels()
2460 find_taken_edge_switch_expr (const gswitch *switch_stmt, tree val) in find_taken_edge_switch_expr() argument
2466 if (gimple_switch_num_labels (switch_stmt) == 1) in find_taken_edge_switch_expr()
2467 taken_case = gimple_switch_default_label (switch_stmt); in find_taken_edge_switch_expr()
2471 val = gimple_switch_index (switch_stmt); in find_taken_edge_switch_expr()
2475 taken_case = find_case_label_for_value (switch_stmt, val); in find_taken_edge_switch_expr()
2479 e = find_edge (gimple_bb (switch_stmt), dest_bb); in find_taken_edge_switch_expr()
2490 find_case_label_for_value (const gswitch *switch_stmt, tree val) in find_case_label_for_value() argument
[all …]
H A Dtree-ssa-threadedge.cc1425 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 Dtree-vrp.cc2450 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 Dtree-eh.cc1371 gimple *switch_stmt; in lower_try_finally_switch() local
1554 switch_stmt = gimple_build_switch (finally_tmp, last_case, in lower_try_finally_switch()
1556 gimple_set_location (switch_stmt, finally_loc); in lower_try_finally_switch()
1560 gimple_seq_add_stmt (&tf->top_p_seq, switch_stmt); in lower_try_finally_switch()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dsancov.c146 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 Dtree-ssa-uncprop.c172 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 Dtree-ssa-dom.c443 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()
915 find_case_label_range (switch_stmt, vr->min (), vr->max (), &i, &j); 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()
[all …]
H A Dtree-cfg.h105 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 Dtree-cfg.c1606 gswitch *switch_stmt = as_a <gswitch *> (stmt); in cleanup_dead_labels() local
1607 size_t i, n = gimple_switch_num_labels (switch_stmt); in cleanup_dead_labels()
1612 tree case_label = gimple_switch_label (switch_stmt, i); in cleanup_dead_labels()
2440 find_taken_edge_switch_expr (const gswitch *switch_stmt, tree val) in find_taken_edge_switch_expr() argument
2446 if (gimple_switch_num_labels (switch_stmt) == 1) in find_taken_edge_switch_expr()
2447 taken_case = gimple_switch_default_label (switch_stmt); in find_taken_edge_switch_expr()
2451 val = gimple_switch_index (switch_stmt); in find_taken_edge_switch_expr()
2455 taken_case = find_case_label_for_value (switch_stmt, val); in find_taken_edge_switch_expr()
2459 e = find_edge (gimple_bb (switch_stmt), dest_bb); in find_taken_edge_switch_expr()
2470 find_case_label_for_value (const gswitch *switch_stmt, tree val) in find_case_label_for_value() argument
[all …]
H A Dtree-vrp.c4923 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()
H A Dtree-loop-distribution.c1057 gswitch *switch_stmt = as_a <gswitch *> (stmt); in generate_loops_for_partition() local
1059 (switch_stmt, CASE_LOW (gimple_switch_label (switch_stmt, 1))); in generate_loops_for_partition()
H A Dtree-eh.c1376 gimple *switch_stmt; in lower_try_finally_switch() local
1559 switch_stmt = gimple_build_switch (finally_tmp, last_case, in lower_try_finally_switch()
1561 gimple_set_location (switch_stmt, finally_loc); in lower_try_finally_switch()
1565 gimple_seq_add_stmt (&tf->top_p_seq, switch_stmt); in lower_try_finally_switch()
/netbsd-src/external/gpl3/gcc/dist/gcc/analyzer/
H A Dconstraint-manager.h173 const gswitch *switch_stmt);
192 const gswitch *switch_stmt);
195 make_case_label_ranges (const gswitch *switch_stmt,
H A Dconstraint-manager.cc942 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-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-common.def83 DEFTREECODE (SWITCH_STMT, "switch_stmt", tcc_statement, 4)
/netbsd-src/external/gpl3/gcc.old/dist/gcc/jit/
H A Djit-playback.c1796 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-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Dsemantics.c1244 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 …]
H A Ddecl.c3603 tree switch_stmt; member
3631 push_switch (tree switch_stmt) in push_switch() argument
3636 p->switch_stmt = switch_stmt; in push_switch()
3650 location_t switch_location = cp_expr_loc_or_input_loc (cs->switch_stmt); in pop_switch()
3651 tree cond = SWITCH_STMT_COND (cs->switch_stmt); in pop_switch()
3653 = (SWITCH_STMT_TYPE (cs->switch_stmt) in pop_switch()
3654 && TREE_CODE (SWITCH_STMT_TYPE (cs->switch_stmt)) == BOOLEAN_TYPE); in pop_switch()
3657 SWITCH_STMT_TYPE (cs->switch_stmt), cond, in pop_switch()
3665 SWITCH_STMT_TYPE (cs->switch_stmt)))) in pop_switch()
3666 SWITCH_STMT_ALL_CASES_P (cs->switch_stmt) = 1; in pop_switch()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/jit/
H A Djit-playback.cc2178 tree switch_stmt = build2 (SWITCH_EXPR, t_type, t_expr, t_switch_body); in add_switch() local
2180 set_tree_location (switch_stmt, loc); in add_switch()
2181 add_stmt (switch_stmt); in add_switch()
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Dsemantics.cc1515 finish_switch_cond (tree cond, tree switch_stmt) in finish_switch_cond() argument
1548 finish_cond (&SWITCH_STMT_COND (switch_stmt), cond); in finish_switch_cond()
1549 SWITCH_STMT_TYPE (switch_stmt) = orig_type; in finish_switch_cond()
1550 add_stmt (switch_stmt); in finish_switch_cond()
1551 push_switch (switch_stmt); in finish_switch_cond()
1552 SWITCH_STMT_BODY (switch_stmt) = push_stmt_list (); in finish_switch_cond()
1559 finish_switch_stmt (tree switch_stmt) in finish_switch_stmt() argument
1563 SWITCH_STMT_BODY (switch_stmt) = in finish_switch_stmt()
1564 pop_stmt_list (SWITCH_STMT_BODY (switch_stmt)); in finish_switch_stmt()
1567 scope = SWITCH_STMT_SCOPE (switch_stmt); in finish_switch_stmt()
[all …]
H A Ddecl.cc3806 tree switch_stmt; member
3834 push_switch (tree switch_stmt) in push_switch() argument
3839 p->switch_stmt = switch_stmt; in push_switch()
3853 location_t switch_location = cp_expr_loc_or_input_loc (cs->switch_stmt); in pop_switch()
3854 tree cond = SWITCH_STMT_COND (cs->switch_stmt); in pop_switch()
3856 = (SWITCH_STMT_TYPE (cs->switch_stmt) in pop_switch()
3857 && TREE_CODE (SWITCH_STMT_TYPE (cs->switch_stmt)) == BOOLEAN_TYPE); in pop_switch()
3860 SWITCH_STMT_TYPE (cs->switch_stmt), cond, in pop_switch()
3868 SWITCH_STMT_TYPE (cs->switch_stmt)))) in pop_switch()
3869 SWITCH_STMT_ALL_CASES_P (cs->switch_stmt) = 1; in pop_switch()
[all …]

12