[Mlir-commits] [mlir] [mlir][tosa] Change MatMul zero-point to inputs (PR #129785)

Jack Frankland llvmlistbot at llvm.org
Wed Mar 5 06:05:41 PST 2025


================
@@ -1025,6 +1042,22 @@ LogicalResult tosa::MatMulOp::inferReturnTypeComponents(
   return success();
 }
 
+LogicalResult MatMulOp::verify() {
+  auto aType = llvm::dyn_cast<ShapedType>(getA().getType());
----------------
FranklandJack wrote:

You could sink this into the if condition. Also, since the values aType and bType aren't actually used maybe this should just be an `llvm::isa<ShapedType>(getA().getType())`?

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


More information about the Mlir-commits mailing list