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:
+6
-6
@@ -23,9 +23,9 @@ var x: ((i32, i32), i32) = ((12, 76), 6);
|
||||
// CHECK:STDOUT: %.6: type = ptr_type %.4 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (%.6, i32) [template]
|
||||
// CHECK:STDOUT: %.8: type = ptr_type %.7 [template]
|
||||
// CHECK:STDOUT: %.9: i32 = int_literal 12 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_literal 76 [template]
|
||||
// CHECK:STDOUT: %.11: i32 = int_literal 6 [template]
|
||||
// CHECK:STDOUT: %.9: i32 = int_value 12 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_value 76 [template]
|
||||
// CHECK:STDOUT: %.11: i32 = int_value 6 [template]
|
||||
// CHECK:STDOUT: %tuple.1: %.4 = tuple_value (%.9, %.10) [template]
|
||||
// CHECK:STDOUT: %tuple.2: %.5 = tuple_value (%tuple.1, %.11) [template]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -66,10 +66,10 @@ var x: ((i32, i32), i32) = ((12, 76), 6);
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_30: i32 = int_literal 12 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_34: i32 = int_literal 76 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_30: i32 = int_value 12 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_34: i32 = int_value 76 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_36.1: %.4 = tuple_literal (%.loc11_30, %.loc11_34)
|
||||
// CHECK:STDOUT: %.loc11_39: i32 = int_literal 6 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_39: i32 = int_value 6 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_40.1: %.5 = tuple_literal (%.loc11_36.1, %.loc11_39)
|
||||
// CHECK:STDOUT: %.loc11_40.2: ref %.4 = tuple_access file.%x.var, element0
|
||||
// CHECK:STDOUT: %.loc11_36.2: ref i32 = tuple_access %.loc11_40.2, element0
|
||||
|
||||
Reference in New Issue
Block a user