[llvm-branch-commits] [flang] [flang][OpenMP] lower simple array reductions (PR #84958)

Kiran Chandramohan via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Mar 17 15:41:24 PDT 2024


================
@@ -465,8 +642,8 @@ void ReductionProcessor::addReductionDecl(
             if (auto declOp = symVal.getDefiningOp<hlfir::DeclareOp>())
               symVal = declOp.getBase();
             auto redType = symVal.getType().cast<fir::ReferenceType>();
-            assert(redType.getEleTy().isIntOrIndexOrFloat() &&
-                   "Unsupported reduction type");
+            if (!redType.getEleTy().isIntOrIndexOrFloat())
+              TODO(currentLocation, "User Defined Reduction on arrays");
----------------
kiranchandramohan wrote:

Nit: We don't support complex type now. So this could be due to being a complex type as well.

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


More information about the llvm-branch-commits mailing list