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

Fehr Mathieu llvmlistbot at llvm.org
Mon Sep 2 07:34:17 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,
----------------
math-fehr wrote:

Can `IntNonNegative.predicate` be replaced with a string, so we can more easily check it in `CHECK-NEXT`.

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


More information about the Mlir-commits mailing list