[flang-commits] [flang] [flang][OpenMP] Support user-defined declare reduction with derived types (PR #184897)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Mar 9 10:48:18 PDT 2026


kparzysz wrote:

The lowering uses different representation for OpenMP clauses, which is what you saw with the `omp::clause` thing.  The translation is done in flang/lib/Lower/OpenMP/Clauses.cpp.  You can add declarations of makeDefinedOperator, makeProcedureDesignator, and makeReductionOperator to flang/include/flang/Lower/OpenMP/Clauses.h, then use them in OpenMP.cpp together with the functions from ReductionProcessor.

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


More information about the flang-commits mailing list