[Mlir-commits] [mlir] [mlir][spirv] Expand support for TOSA Extended Instruction Set (00100… (PR #176908)
Igor Wodiany
llvmlistbot at llvm.org
Tue Jan 20 06:11:15 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();
----------------
IgWod-IMG wrote:
Image ops use interfaces (https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.td) so you can have a look at them (https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVImageOps.td)
https://github.com/llvm/llvm-project/pull/176908
More information about the Mlir-commits
mailing list