[Mlir-commits] [mlir] [MLIR][Linalg] Pattern to fold AddOp to accumulation via contraction op's dest (PR #110514)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Oct 2 01:43:28 PDT 2024


================
@@ -38,6 +38,12 @@ namespace linalg {
 // General utilities
 //===----------------------------------------------------------------------===//
 
+// Returns true if `val` represents a zero-filled tensor, per its defining op.
+bool isZeroTensor(Value val);
----------------
banach-space wrote:

This is a fairly generic hook and nothing specific to Linalg, is it?

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


More information about the Mlir-commits mailing list