[flang-commits] [flang] [flang][OpenMP] fix lastprivate for allocatables (PR #99686)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Jul 22 08:04:41 PDT 2024
tblah wrote:
> Thanks Tom. Moving this into the copyHostAssociateVar/copyVarHLFIR would make sense to me.
>
> I updated the allocatable handling part that was broken a while ago with the assumption that reallocation was not a thing inside the OpenMP region (#69441). If it is, then what you are doing is the right approach..
Thanks for taking a look. Explicit reallocation is not allowed inside of an OpenMP region but I think allocation is allowed implicitly via intrinsic assignment or privatisation (which works the same as intrinsic assignment).
One of our internal tests failed when I tried to put this in copyHostAssociateVar. I will investigate this and post a followup patch if I get it working.
https://github.com/llvm/llvm-project/pull/99686
More information about the flang-commits
mailing list