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

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Wed Nov 20 20:48:09 PST 2024


================
@@ -50,4 +50,16 @@ def FunctionFilteringPass : Pass<"omp-function-filtering"> {
   ];
 }
 
+def GenericLoopConversionPass
+    : Pass<"omp-generic-loop-conversion", "mlir::func::FuncOp"> {
----------------
ergawy wrote:

That's a good quesiton and I am not sure about the answer. But my intuitiion is that even if we need a loop to initialize a `firstprivate` variable, then this loop will exists in a function of its own; for example, a copy constructor or an overload of the assignment operator which means the loop is still inside a function.

@mjklemm please correct me if I am wrong here.

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


More information about the flang-commits mailing list