[Mlir-commits] [mlir] [mlir][ods] Do not print default-valued properties when the value is equal to the default (PR #87970)

Mehdi Amini llvmlistbot at llvm.org
Mon Apr 8 05:46:22 PDT 2024


================
@@ -33,3 +33,8 @@ test.using_property_in_custom [1, 4, 20]
 // GENERIC-SAME: second = 4
 // GENERIC-SAME: }>
 test.using_property_ref_in_custom 1 + 4 = 5
+
+// CHECK:   test.with_default_valued_properties {{$}}
+// GENERIC: "test.with_default_valued_properties"()
+// GENERIC-SAME:  <{a = 0 : i32}> : () -> ()
----------------
joker-eph wrote:

```suggestion
// GENERIC-SAME:  <{a = 0 : i32}>
```

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


More information about the Mlir-commits mailing list