[Mlir-commits] [mlir] [MLIR] Add support for int8/uint8 properties (PR #145019)
Mehdi Amini
llvmlistbot at llvm.org
Fri Jun 20 04:22:43 PDT 2025
================
@@ -59,9 +59,15 @@ test.with_default_valued_properties 1 "foo" 0 unit
// CHECK: test.with_optional_properties
// CHECK-SAME: simple = 0
// GENERIC: "test.with_optional_properties"()
-// GENERIC-SAME: <{hasDefault = [], hasUnit = false, longSyntax = [], maybeUnit = [], nested = [], nonTrivialStorage = [], simple = [0]}> : () -> ()
+// GENERIC-SAME: <{hasDefault = [], hasUnit = false, longSyntax = [], maybeUnit = [], nested = [], nonTrivialStorage = [], simple = [0], simplei8 = [], simpleui8 = []}> : () -> ()
test.with_optional_properties simple = 0
+// CHECK: test.with_optional_properties
+// CHECK-SAME: simple = 1 simplei8 = -1 simpleui8 = 255
+// GENERIC: "test.with_optional_properties"()
+// GENERIC-SAME: <{hasDefault = [], hasUnit = false, longSyntax = [], maybeUnit = [], nested = [], nonTrivialStorage = [], simple = [1], simplei8 = [-1 : i8], simpleui8 = [-1 : i8]}> : () -> ()
----------------
joker-eph wrote:
Attributes are always printed as signed. There is no `ui8` integer attribute.
https://github.com/llvm/llvm-project/pull/145019
More information about the Mlir-commits
mailing list