mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Rename IntLiteral to IntValue. (#4475)
This instruction represents integer values, whether they come from literals or calculations, so it the old name is inaccurate. I also plan to rename `BigInt` to `IntLiteral` based on recent discussion and this change aims to avoid confusion stemming from the same name being used for two different things. I'm not renaming `FloatLiteral` because recent discussion suggests we may want distinct `FloatLiteral` versus `FloatValue` representations in SemIR.
This commit is contained in:
+4
-4
@@ -21,8 +21,8 @@ var y: {.a: i32, .b: (i32,)} = x;
|
||||
// CHECK:STDOUT: %.3: type = tuple_type (i32) [template]
|
||||
// CHECK:STDOUT: %.4: type = struct_type {.a: i32, .b: %.3} [template]
|
||||
// CHECK:STDOUT: %.5: type = ptr_type %.4 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.7: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.7: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %tuple: %.3 = tuple_value (%.7) [template]
|
||||
// CHECK:STDOUT: %struct: %.4 = struct_value (%.6, %tuple) [template]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -71,8 +71,8 @@ var y: {.a: i32, .b: (i32,)} = x;
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_38: i32 = int_literal 1 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_47: i32 = int_literal 2 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_38: i32 = int_value 1 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_47: i32 = int_value 2 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_49.1: %.3 = tuple_literal (%.loc11_47)
|
||||
// CHECK:STDOUT: %.loc11_50.1: %.4 = struct_literal (%.loc11_38, %.loc11_49.1)
|
||||
// CHECK:STDOUT: %.loc11_50.2: ref i32 = struct_access file.%x.var, element0
|
||||
|
||||
Reference in New Issue
Block a user