Lines Matching refs:switch_stmt
1601 gswitch *switch_stmt = as_a <gswitch *> (stmt);
1602 size_t i, n = gimple_switch_num_labels (switch_stmt);
1607 tree case_label = gimple_switch_label (switch_stmt, i);
2453 /* Given SWITCH_STMT and an INTEGER_CST VAL for use as the index, determine
2456 If VAL is NULL_TREE, then the current value of SWITCH_STMT's index
2460 find_taken_edge_switch_expr (const gswitch *switch_stmt, tree val)
2466 if (gimple_switch_num_labels (switch_stmt) == 1)
2467 taken_case = gimple_switch_default_label (switch_stmt);
2471 val = gimple_switch_index (switch_stmt);
2475 taken_case = find_case_label_for_value (switch_stmt, val);
2479 e = find_edge (gimple_bb (switch_stmt), dest_bb);
2485 /* Return the CASE_LABEL_EXPR that SWITCH_STMT will take for VAL.
2490 find_case_label_for_value (const gswitch *switch_stmt, tree val)
2492 size_t low, high, n = gimple_switch_num_labels (switch_stmt);
2493 tree default_case = gimple_switch_default_label (switch_stmt);
2498 tree t = gimple_switch_label (switch_stmt, i);
5775 gswitch *switch_stmt = as_a <gswitch *> (stmt);
5780 n = gimple_switch_num_labels (switch_stmt);
5785 basic_block label_bb = gimple_switch_label_bb (cfun, switch_stmt, i);
5791 prev = gimple_switch_label (switch_stmt, 0);
5794 tree c = gimple_switch_label (switch_stmt, i);
5841 switch_stmt, i);
6036 gswitch *switch_stmt = as_a <gswitch *> (stmt);
6038 tree cases = get_cases_for_edge (e, switch_stmt);
6059 tree cases2 = get_cases_for_edge (e2, switch_stmt);
6068 size_t i, n = gimple_switch_num_labels (switch_stmt);
6072 tree elt = gimple_switch_label (switch_stmt, i);