[Mlir-commits] [mlir] [MLIR][SCFToOpenMP] Add num-threads option (PR #74854)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Mon Dec 11 03:39:56 PST 2023


================
@@ -340,8 +340,10 @@ namespace {
 
 struct ParallelOpLowering : public OpRewritePattern<scf::ParallelOp> {
 
-  ParallelOpLowering(MLIRContext *context)
-      : OpRewritePattern<scf::ParallelOp>(context) {}
+  unsigned numThreads;
+
+  ParallelOpLowering(MLIRContext *context, unsigned numThreads)
----------------
ftynse wrote:

Nit: can we have a default value for `numThreads` here?

https://github.com/llvm/llvm-project/pull/74854


More information about the Mlir-commits mailing list