[Mlir-commits] [mlir] [mlir][OpenMP] Extend `omp.private` with a `dealloc` region (PR #90456)
Kiran Chandramohan
llvmlistbot at llvm.org
Mon Apr 29 04:36:12 PDT 2024
================
@@ -187,10 +188,23 @@ def PrivateClauseOp : OpenMP_Op<"private", [IsolatedFromAbove]> {
}
```
+ * `private(x)` for "allocatables" would be emitted as:
+ ```mlir
+ omp.private {type = private} @x.privatizer : !some.type alloc {
+ ^bb0(%arg0: !some.type):
+ %0 = ... allocate proper memory for the private clone ...
+ omp.yield(%0 : !fir.ref<i32>)
+ } deaclloc {
----------------
kiranchandramohan wrote:
```suggestion
} dealloc {
```
https://github.com/llvm/llvm-project/pull/90456
More information about the Mlir-commits
mailing list