[flang-commits] [flang] [flang][OpenMP] Do not emit a use-only item for a reduction symbol in a module file (PR #207492)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 6 10:49:34 PDT 2026
MattPD wrote:
Good catch. I generalized the skip. It now covers any reduction whose operator is itself re-exported, whether a defined operator or an intrinsic operator with a user interface such as a derived-type `operator(+)`. On read, the reduction is recovered through that operator.
The remaining reductions have no operator to recover through: an intrinsic operator on an intrinsic type, and special functions like max and min. A plain USE of the defining module re-exports them instead. That half lands in #207493 alongside its lowering.
The module file now round-trips for every re-exported user reduction.
https://github.com/llvm/llvm-project/pull/207492
More information about the flang-commits
mailing list