Lines Matching refs:branch

310       vtn_assert(b->block && b->block->branch == NULL);
311 b->block->branch = w;
439 "Each case construct can have at most one branch to "
534 const uint32_t *branch,
537 const uint32_t *branch_end = branch + (branch[0] >> SpvWordCountShift);
539 struct vtn_value *sel_val = vtn_untyped_value(b, branch[1]);
554 for (const uint32_t *w = branch + 2; w < branch_end;) {
667 vtn_fail_if((*block->branch & SpvOpCodeMask) != SpvOpBranch &&
668 (*block->branch & SpvOpCodeMask) != SpvOpBranchConditional,
720 switch (*block->branch & SpvOpCodeMask) {
722 struct vtn_block *branch_block = vtn_block(b, block->branch[1]);
754 struct vtn_value *cond_val = vtn_untyped_value(b, block->branch[1]);
782 struct vtn_block *then_block = vtn_block(b, block->branch[2]);
789 struct vtn_block *else_block = vtn_block(b, block->branch[3]);
806 swtch->selector = block->branch[1];
822 vtn_parse_switch(b, swtch, block->branch, &swtch->cases);
824 /* Gather the branch types for the switch */
862 vtn_fail("Block did not end with a valid branch instruction");
1018 vtn_fail("Invalid branch type");
1084 if ((*block->branch & SpvOpCodeMask) != SpvOpReturnValue)
1089 struct vtn_ssa_value *src = vtn_ssa_value(b, block->branch[1]);
1111 block->branch;
1133 const uint32_t *branch = vtn_if->header_block->branch;
1134 vtn_assert((branch[0] & SpvOpCodeMask) == SpvOpBranchConditional);
1140 if (branch[2] == branch[3]) {
1151 nir_push_if(&b->nb, vtn_get_nir_ssa(b, branch[1]));
1314 const uint32_t *block_end = block->branch;
1325 struct vtn_block *branch_block = vtn_block(b, block->branch[1]);
1332 nir_ssa_def *cond = vtn_ssa_value(b, block->branch[1])->def;
1333 struct vtn_block *then_block = vtn_block(b, block->branch[2]);
1334 struct vtn_block *else_block = vtn_block(b, block->branch[3]);
1351 vtn_parse_switch(b, NULL, block->branch, &cases);
1353 nir_ssa_def *sel = vtn_get_nir_ssa(b, block->branch[1]);
1380 /* now that all cases are handled, branch into the default block */