[Mlir-commits] [mlir] [MLIR] [Vector] ConstantFold MultiDReduction (PR #122450)

Andrzej WarzyƄski llvmlistbot at llvm.org
Fri Jan 10 11:56:37 PST 2025


================
@@ -463,10 +466,111 @@ void vector::MultiDimReductionOp::build(OpBuilder &builder,
   build(builder, result, kind, source, acc, reductionDims);
 }
 
+template <typename T>
+OpFoldResult foldSplatReduce(T src, T acc, int64_t times, CombiningKind kind,
+                             ShapedType dstType);
+
+template <>
+OpFoldResult foldSplatReduce(FloatAttr src, FloatAttr acc, int64_t times,
----------------
banach-space wrote:

DOCUMENTME :)

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


More information about the Mlir-commits mailing list