[flang-commits] [flang] [flang][OpenMP] Scope-qualify user-defined reduction names in lowering (PR #202474)

Carlos Seo via flang-commits flang-commits at lists.llvm.org
Thu Jun 18 10:33:58 PDT 2026


ceseo wrote:

> LGTM so far but what about other kinds of operator names e.g. the DefinedOpName branch?

I looked at the IR and it still emits the bare mangled operator name (i.e. `omp.declare_reduction @op.fluffy. : !fir.ref<...t1...>`), so a cross-scope collision for defined-operator reductions probably exists.

I think this is a bug, but I'd fix it in a separate PR. What do you think?

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


More information about the flang-commits mailing list