Add infrastructure for distinguishing between signed and unsigned integer types. (#3822)

Because we don't have any unsigned integer types yet, this is mostly a
no-op change, except that we now format negative values in SemIR
properly.
This commit is contained in:
Richard Smith authored and GitHub committed 2024-03-27 20:18:25 +00:00
1 parent 0248f3ec92
commit e4528b8abb
12 files changed
+45 -27

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ var a: [i32; Negate(1)];
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: %.1: i32 = int_literal 1 [template]
// CHECK:STDOUT: %.2: i32 = int_literal 4294967295 [template]
// CHECK:STDOUT: %.2: i32 = int_literal -1 [template]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: file {