[Mlir-commits] [mlir] [mlir][acc] Introduce acc data bounds accessors (PR #156545)

Razvan Lupusoru llvmlistbot at llvm.org
Tue Sep 2 15:59:45 PDT 2025


================
@@ -1180,30 +1258,48 @@ def OpenACC_PrivateRecipeOp
       1. The initializer region specifies how to allocate and initialize a new
          private value. For example in Fortran, a derived-type might have a
          default initialization. The region has an argument that contains the
-         value that need to be privatized. This is useful if the type is not
-         known at compile time and the private value is needed to create its
-         copy.
+         original value that needs to be privatized, followed by bounds arguments
+         (if any) in order from innermost to outermost dimension. The region
+         must yield the privatized copy.
       2. The destroy region specifies how to destruct the value when it reaches
-         its end of life. It takes the privatized value as argument.
+         its end of life. It takes the original value, the privatized value, and
----------------
razvanlupusoru wrote:

The way I just documented this is that the original (read this as "non-private") variable is always passed in as the first argument for consistency. So it is the second one that should be destroyed. Are you OK with this?

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


More information about the Mlir-commits mailing list