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

Pablo Antonio Martinez llvmlistbot at llvm.org
Mon Dec 11 05:04:38 PST 2023


================
@@ -886,6 +886,11 @@ def ConvertSCFToOpenMPPass : Pass<"convert-scf-to-openmp", "ModuleOp"> {
   let summary = "Convert SCF parallel loop to OpenMP parallel + workshare "
                 "constructs.";
 
+  let options = [
+    Option<"numThreads", "num-threads", "unsigned",
+           /*default=*/"0", "Number of threads to use">
----------------
pabloantoniom wrote:

Yes, I have also added the default value to the constructor as ftynse suggested.

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


More information about the Mlir-commits mailing list