Lines Matching defs:cases
323 /* This function performs a depth-first search of the cases and puts them
348 list_add(&cse->node.link, &swtch->cases);
355 struct list_head cases;
356 list_replace(&swtch->cases, &cases);
357 list_inithead(&swtch->cases);
358 while (!list_is_empty(&cases)) {
360 list_first_entry(&cases, struct vtn_case, node.link);
406 /* When it comes to handling switch cases, we can break calls to
407 * vtn_handle_branch into two cases: calls from within a case construct
635 /* The two cases where we can get early exits from a construct that
637 * switch fall-throughs. In these cases, we need to break out of the
691 * handle this loop goes to the cases below and gets handled as a
807 list_inithead(&swtch->cases);
821 /* First, we go through and record all of the cases. */
822 vtn_parse_switch(b, swtch, block->branch, &swtch->cases);
825 vtn_foreach_cf_node(case_node, &swtch->cases) {
831 /* This is a "real" cases which has stuff in it */
1028 vtn_foreach_cf_node(other_node, &swtch->cases) {
1224 /* Before we can emit anything, we need to sort the list of cases in
1239 /* Now we can walk the list of cases and actually emit code */
1240 vtn_foreach_cf_node(case_node, &vtn_switch->cases) {
1349 struct list_head cases;
1350 list_inithead(&cases);
1351 vtn_parse_switch(b, NULL, block->branch, &cases);
1356 vtn_foreach_cf_node(case_node, &cases) {
1380 /* now that all cases are handled, branch into the default block */
1438 * There are some cases where we need to repair SSA to insert