mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 19:45:58 +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:
+12
-12
@@ -22,17 +22,17 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [template]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %G.type: type = fn_type @G [template]
|
||||
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -61,7 +61,7 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: %return.param_patt: i32 = out_param_pattern %return.patt, runtime_param2
|
||||
// CHECK:STDOUT: } {
|
||||
// CHECK:STDOUT: %int.make_type_32.loc11_12: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_17: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_17: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32.loc11_12 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32.loc11_12, %.loc11_12.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3]
|
||||
@@ -105,19 +105,19 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: fn @G() -> i32 {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F]
|
||||
// CHECK:STDOUT: %.loc16_13: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_16: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_19: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_13: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_16: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_19: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_20.1: %.7 = tuple_literal (%.loc16_13, %.loc16_16, %.loc16_19)
|
||||
// CHECK:STDOUT: %.loc16_23: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_23: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.2: ref %.3 = temporary_storage
|
||||
// CHECK:STDOUT: %.loc16_20.3: i32 = int_literal 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc16_20.3: i32 = int_value 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc16_20.4: ref i32 = array_index %.loc16_20.2, %.loc16_20.3
|
||||
// CHECK:STDOUT: %.loc16_20.5: init i32 = initialize_from %.loc16_13 to %.loc16_20.4 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.6: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.6: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.7: ref i32 = array_index %.loc16_20.2, %.loc16_20.6
|
||||
// CHECK:STDOUT: %.loc16_20.8: init i32 = initialize_from %.loc16_16 to %.loc16_20.7 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_20.9: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_20.9: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_20.10: ref i32 = array_index %.loc16_20.2, %.loc16_20.9
|
||||
// CHECK:STDOUT: %.loc16_20.11: init i32 = initialize_from %.loc16_19 to %.loc16_20.10 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_20.12: init %.3 = array_init (%.loc16_20.5, %.loc16_20.8, %.loc16_20.11) to %.loc16_20.2 [template = constants.%array]
|
||||
|
||||
Reference in New Issue
Block a user