[Mlir-commits] [mlir] [mlir][linalg]Implement canonicalizer for `BroadCastOp` on tensors (PR #80466)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 2 14:01:18 PST 2024


================
@@ -1907,6 +1907,20 @@ void BroadcastOp::getEffects(
                         getDpsInits());
 }
 
+LogicalResult BroadcastOp::canonicalize(BroadcastOp op,
----------------
srcarroll wrote:

hmm, i guess not since `OpInterface` doesn't seem to have `hasCanonicalizer` or `hasCanonicalizationMethod`.  I'm sure there are ways to do it.  I just dont know how. But i'd rather figure that out, if reasonable, than have to do this for other named ops later.

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


More information about the Mlir-commits mailing list