[flang-commits] [flang] [flang][OpenMP] Support ALLOCATABLE list items in LINEAR (PR #228827)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Oct 5 09:53:08 PDT 2026


https://github.com/tblah requested changes to this pull request.

Thank you for the contribution.

This is only a partial implementation. Simply providing the address of the host's variable doesn't mean each thread gets a new copy allocated and deallocated correctly.

I would advise re-using what is done for ordinary privatization: creating the omp.private op containing the code required for correct initialization and de-initialization of the allocatable varaible, then updating the OpenMPToLLVMIRConversion step to inline those parts in the correct place.

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


More information about the flang-commits mailing list