[Mlir-commits] [flang] [mlir] [flang][OpenMP] Support ALLOCATABLE list items in LINEAR (PR #228827)
Aditya Trivedi
llvmlistbot at llvm.org
Fri Oct 16 02:08:57 PDT 2026
adit4443ya wrote:
- Thanks for the review! Fixed the nits and the final value of an allocatable DO variable (your example printed 5 instead of 7; added it as a test). On the initLinearVar question: it's not missing, it runs later for all linear vars once the loop exists; I've restructured it to make that clearer.
- Agreed on a single path. One question first: should the recipe move into the linear clause itself, like reductions (linear(@x.linear %x -> %arg0 : !llvm.ptr = %step : i32), with linear block arguments), or stay as a separate private(...) entry paired with the linear item? The first fits "the linear clause should stand on its own" better but is a larger dialect change. Happy to do either.
https://github.com/llvm/llvm-project/pull/228827
More information about the Mlir-commits
mailing list