Lines Matching defs:switchOp
331 auto switchOp = cast<scf::IndexSwitchOp>(op);
334 for (int64_t i = 0, numCases = switchOp.getNumCases(); i < numCases; ++i) {
336 cast<scf::YieldOp>(switchOp.getCaseBlock(i).getTerminator());
342 cast<scf::YieldOp>(switchOp.getDefaultBlock().getTerminator());
352 auto switchOp = cast<scf::IndexSwitchOp>(op);
356 for (Value result : switchOp.getResults()) {
368 rewriter.setInsertionPoint(switchOp);
370 switchOp.getLoc(), newTypes, switchOp.getArg(), switchOp.getCases(),
371 switchOp.getCases().size());
375 llvm::zip(switchOp.getCaseRegions(), newSwitchOp.getCaseRegions()))
377 rewriter.inlineRegionBefore(switchOp.getDefaultRegion(),
390 auto switchOp = cast<scf::IndexSwitchOp>(op);
409 auto maybeBufferType = getYieldedBufferType(switchOp.getDefaultBlock());
415 for (int64_t i = 0, numCases = switchOp.getNumCases(); i < numCases; ++i) {
416 auto yieldedBufferType = getYieldedBufferType(switchOp.getCaseBlock(i));