[Mlir-commits] [mlir] [mlir][spirv] Add Conv operations for TOSA Extended Instruction Set (001000.1) (PR #176908)
Davide Grohmann
llvmlistbot at llvm.org
Wed Jan 21 06:10:25 PST 2026
================
@@ -20,6 +20,72 @@ namespace mlir::spirv {
// TOSA Operator Verifiers.
//===----------------------------------------------------------------------===//
+namespace {
+
+template <typename T>
+static LogicalResult verifyConvOp(T op) {
+ ShapedType inputTy = op.getInputType();
+ ShapedType biasTy = op.getBiasType();
+ ShapedType resultTy = op.getResultType();
+
+ Type inputETy = inputTy.getElementType();
+ Type biasETy = biasTy.getElementType();
+ Type resultETy = resultTy.getElementType();
----------------
davidegrohmann wrote:
I have removed the template by other means. I would add an interface if more use cases demand for it.
https://github.com/llvm/llvm-project/pull/176908
More information about the Mlir-commits
mailing list