[Mlir-commits] [flang] [mlir] [flang][OpenACC] Changed memory management for private POINTERs. (PR #219052)
Razvan Lupusoru
llvmlistbot at llvm.org
Thu Aug 27 08:39:02 PDT 2026
https://github.com/razvanlupusoru approved this pull request.
Looks great to me. Nice work.
Regarding this case:
```
allocate(ptr(10))
!$acc parallel private(ptr)...
deallocate(ptr)
```
So when pointer variable privatization was made, the decision was to actually allocate a private copy when the pointer was associated. This was not spec specified behavior - and another reasonable behavior would be to only create an unassociated copy. Anyway, the pattern you described wouldn't work with that approach either - and the error message is reasonable behavior that I am comfortable with.
https://github.com/llvm/llvm-project/pull/219052
More information about the Mlir-commits
mailing list