[Mlir-commits] [mlir] [mlir] [tblgen-to-irdl] Refactor tblgen-to-irdl script and support more types (PR #105505)

Alex Rice llvmlistbot at llvm.org
Tue Sep 3 02:51:10 PDT 2024


================
@@ -41,9 +40,38 @@ def Test_AnyOp : Test_Op<"any"> {
 // CHECK-LABEL: irdl.operation @any {
 // CHECK-NEXT:    %[[v0:[^ ]*]] = irdl.any
 // CHECK-NEXT:    irdl.operands(%[[v0]])
-// CHECK-NEXT:    irdl.results()
 // CHECK-NEXT:  }
 
+// Check confined types are converted correctly.
+def Test_ConfinedOp : Test_Op<"confined"> {
+  let arguments = (ins ConfinedType<I32, [IntNonNegative.predicate]>:$confined,
----------------
alexarice wrote:

I've changed the example to represent vector types and tensor types, using CPreds

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


More information about the Mlir-commits mailing list