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

Pablo Antonio Martinez llvmlistbot at llvm.org
Mon Dec 11 05:09:19 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)
----------------
pabloantoniom wrote:

Done, thanks. I didn't set it here in the first place because the default value it's already set in the .td file.

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


More information about the Mlir-commits mailing list