[Mlir-commits] [mlir] [mlir][spirv] Add common SPIRV Extended Ops for Vectors (PR #122322)

Jakub Kuderski llvmlistbot at llvm.org
Wed Jan 15 17:56:33 PST 2025


================
@@ -2094,3 +2094,41 @@ LogicalResult spirv::VectorTimesScalarOp::verify() {
     return emitOpError("scalar operand and result element type match");
   return success();
 }
+
+//===----------------------------------------------------------------------===//
+// spirv.GLDistanceOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult spirv::GLDistanceOp::verify() {
----------------
kuhar wrote:

You should be able to add type constraints in tablegen that enforce that all types match.

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


More information about the Mlir-commits mailing list