[flang-commits] [flang] [flang][OpenMP] Lower iterator indices with genExprValue instead of the legacy expression lowering (PR #210385)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Fri Jul 17 10:32:06 PDT 2026
eugeneepshteyn wrote:
Additional information about the change:
`genExprValue` lowers designators through the HLFIR path, which resolves a referenced symbol via its variable definition (an `hlfir.declare`). The iterator induction variables were previously bound in the symbol map as bare SSA values, which the HLFIR path cannot lower ("lowering symbol to HLFIR"). Bind each iterator induction variable as an HLFIR variable instead: store the induction value into a temporary and declare it, then register that declaration in the symbol map. This mirrors how ordinary loop induction variables are handled and lets the HLFIR expression path lower subscripts that reference the iterator identifier.
https://github.com/llvm/llvm-project/pull/210385
More information about the flang-commits
mailing list