[Mlir-commits] [mlir] [mlir][linalg]Implement canonicalizer for `BroadCastOp` on tensors (PR #80466)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 2 16:08:17 PST 2024
================
@@ -1907,6 +1907,20 @@ void BroadcastOp::getEffects(
getDpsInits());
}
+LogicalResult BroadcastOp::canonicalize(BroadcastOp op,
----------------
srcarroll wrote:
i'm not exactly sure how to get the canonicalizer pass to grap `LinalgOp::getCanonicalizationPattern`. I naively added it to `extraClassDeclarations` in `LinalgStructuredInterface` and then just replaced `GenericOp::getCanonicalizationPattern`. Any ideas?
https://github.com/llvm/llvm-project/pull/80466
More information about the Mlir-commits
mailing list