[Mlir-commits] [mlir] [mlir][spirv] Improve type constraints for SPIR-V Tosa CastOp (PR #192227)

Igor Wodiany llvmlistbot at llvm.org
Wed Apr 15 09:52:50 PDT 2026


================
@@ -64,7 +64,8 @@ class SPIRV_TosaOpWithComplexResult<string mnemonic, int opcode, list<Trait> tra
 
 class SPIRV_TosaElementwiseUnaryOp<string mnemonic, int opcode, list<Trait> traits = []> :
   SPIRV_TosaOpWithResult<mnemonic, opcode, !listconcat(traits,
-    [AllTypesMatch<["input1", "output"]>])> {
+    [AllTypesMatch<["input1", "output"]>,
+     ElementTypeIsNot<"input1", I64>])> {
----------------
IgWod wrote:

I don't think we need it with `SPIRV_TosaFloat_TensorArm`?

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


More information about the Mlir-commits mailing list