[Mlir-commits] [flang] [mlir] [flang][OpenMP] WIP: Rewrite `omp.loop` to semantically equivalent ops (PR #115443)

Tom Eccles llvmlistbot at llvm.org
Mon Nov 11 07:29:45 PST 2024


================
@@ -50,4 +50,16 @@ def FunctionFilteringPass : Pass<"omp-function-filtering"> {
   ];
 }
 
+def GenericLoopConversionPass
+    : Pass<"omp-generic-loop-conversion", "mlir::func::FuncOp"> {
+  let summary = "Converts OpenMP generic `loop` direcitve to semantically "
+                "equivalent OpenMP ops";
+  let description = [{
+     Rewrites `loop` ops to their semantically equivalent nest of ops. The
+     rewrite depends on the nesting/combination structure of the `loop` op
+     within its surrounding context as well as its `bind` clause value.
+  }];
+  let dependentDialects = ["mlir::omp::OpenMPDialect"];
----------------
tblah wrote:

I'm not sure how important these dependent dialects are, but it must at least depend on mlir::func::FuncDialect as this is a mlir::func::FuncOp pass?

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


More information about the Mlir-commits mailing list