Lines Matching refs:forOp
101 LogicalResult matchAndRewrite(ForOp forOp,
290 LogicalResult ForLowering::matchAndRewrite(ForOp forOp, in matchAndRewrite() argument
292 Location loc = forOp.getLoc(); in matchAndRewrite()
305 auto *conditionBlock = &forOp.getRegion().front(); in matchAndRewrite()
308 auto *lastBodyBlock = &forOp.getRegion().back(); in matchAndRewrite()
309 rewriter.inlineRegionBefore(forOp.getRegion(), endBlock); in matchAndRewrite()
317 auto step = forOp.getStep(); in matchAndRewrite()
330 Value lowerBound = forOp.getLowerBound(); in matchAndRewrite()
331 Value upperBound = forOp.getUpperBound(); in matchAndRewrite()
339 auto iterOperands = forOp.getIterOperands(); in matchAndRewrite()
353 rewriter.replaceOp(forOp, conditionBlock->getArguments().drop_front()); in matchAndRewrite()
466 ForOp forOp = rewriter.create<ForOp>(loc, lower, upper, step, iterArgs); in matchAndRewrite() local
467 ivs.push_back(forOp.getInductionVar()); in matchAndRewrite()
468 auto iterRange = forOp.getRegionIterArgs(); in matchAndRewrite()
474 loopResults.assign(forOp.result_begin(), forOp.result_end()); in matchAndRewrite()
476 } else if (!forOp.getResults().empty()) { in matchAndRewrite()
480 rewriter.create<scf::YieldOp>(loc, forOp.getResults()); in matchAndRewrite()
483 rewriter.setInsertionPointToStart(forOp.getBody()); in matchAndRewrite()