[flang] [llvm] [mlir] [OpenMP][flang] Lowering of OpenMP custom reductions to MLIR (PR #168417)

Jan Leyonberg via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 07:13:26 PST 2025


================
@@ -3651,6 +3665,11 @@ getReductionType(lower::AbstractConverter &converter,
   const auto &name = std::get<parser::ObjectName>(decl.var.t);
   const auto &symbol = semantics::SymbolRef(*name.symbol);
   mlir::Type reductionType = converter.genType(symbol);
+
+  if (!isSimpleReductionType(reductionType))
+    TODO(converter.getCurrentLocation(),
+         "declare reduction using currently only supports trival types or "
----------------
jsjodin wrote:

Turns out it was already fixed, GitHub has been acting a bit weird for some reason and not showing the latest revision and not marking things "Outdated" correctly. I will still do a rebase.

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


More information about the llvm-commits mailing list