[Mlir-commits] [mlir] [mlir][spirv] Add definition for VectorTimesMatrixOp (PR #124571)
Igor Wodiany
llvmlistbot at llvm.org
Tue Jan 28 05:31:57 PST 2025
================
@@ -1725,6 +1725,34 @@ LogicalResult spirv::MatrixTimesVectorOp::verify() {
return success();
}
+//===----------------------------------------------------------------------===//
+// spirv.VectorTimesMatrix
+//===----------------------------------------------------------------------===//
+
+LogicalResult spirv::VectorTimesMatrixOp::verify() {
+ auto vectorType = llvm::cast<VectorType>(getVector().getType());
+ auto matrixType = llvm::cast<spirv::MatrixType>(getMatrix().getType());
+ auto resultType = llvm::cast<VectorType>(getType());
----------------
IgWod-IMG wrote:
I guess this is related to the first comment and we still need those, since part of the verification is still done in C++? Let me know if I missed something.
https://github.com/llvm/llvm-project/pull/124571
More information about the Mlir-commits
mailing list