Lines Matching refs:parallelOp
28 LogicalResult matchAndRewrite(scf::ParallelOp parallelOp, in matchAndRewrite()
31 if (parallelOp.getNumResults() != 0) in matchAndRewrite()
33 parallelOp, in matchAndRewrite()
39 rewriter.setInsertionPointToEnd(parallelOp.getBody()); in matchAndRewrite()
40 assert(llvm::hasSingleElement(parallelOp.region()) && in matchAndRewrite()
43 parallelOp.getBody()->getTerminator(), ValueRange()); in matchAndRewrite()
48 parallelOp.getLoc(), parallelOp.lowerBound(), parallelOp.upperBound(), in matchAndRewrite()
49 parallelOp.step()); in matchAndRewrite()
50 rewriter.inlineRegionBefore(parallelOp.region(), loop.region(), in matchAndRewrite()
52 rewriter.eraseOp(parallelOp); in matchAndRewrite()
67 func.walk([&topLevelParallelOps](scf::ParallelOp parallelOp) { in insertOpenMPParallel() argument
69 if (!parallelOp->getParentOfType<scf::ParallelOp>()) in insertOpenMPParallel()
70 topLevelParallelOps.push_back(parallelOp); in insertOpenMPParallel()
74 for (scf::ParallelOp parallelOp : topLevelParallelOps) { in insertOpenMPParallel() local
75 OpBuilder builder(parallelOp); in insertOpenMPParallel()
76 auto omp = builder.create<omp::ParallelOp>(parallelOp.getLoc()); in insertOpenMPParallel()
78 builder.create<omp::TerminatorOp>(parallelOp.getLoc()); in insertOpenMPParallel()
80 parallelOp->getBlock()->getOperations(), in insertOpenMPParallel()
81 parallelOp.getOperation()); in insertOpenMPParallel()