[Mlir-commits] [mlir] [mlir][spirv] Add Pooling, Fourier Transform, and MatMul operations t… (PR #177585)

Igor Wodiany llvmlistbot at llvm.org
Wed Jan 28 02:04:52 PST 2026


================
@@ -33,10 +33,39 @@ class SPIRV_TosaOp<string mnemonic, int opcode, list<Trait> traits = []> :
     Extension<[SPV_ARM_graph]>,
     Capability<[SPIRV_C_GraphARM]>
   ];
+
+  let hasVerifier = 0;
+}
+
+class SPIRV_TosaOpWithResult<string mnemonic, int opcode, list<Trait> traits = []> :
+  SPIRV_TosaOp<mnemonic, opcode, traits> {
+
+  code extraBaseClassDeclaration = [{
+    ::mlir::spirv::TensorArmType getResultType() {
+      return cast<::mlir::spirv::TensorArmType>(getType());
+    }
+  }];
+}
+
+class SPIRV_TosaOpWithStructResult<string mnemonic, int opcode, list<Trait> traits = []> :
----------------
IgWod-IMG wrote:

nit: Since the getter have real and imag in name, maybe the class should be called: `SPIRV_TosaOpWithComplexResult`?

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


More information about the Mlir-commits mailing list