mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:34:45 +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:
@@ -35,7 +35,7 @@ fn H() -> i32 {
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %H.type: type = fn_type @H [template]
|
||||
// CHECK:STDOUT: %H: %H.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
@@ -133,7 +133,7 @@ fn H() -> i32 {
|
||||
// CHECK:STDOUT: %G.ref: %G.type = name_ref G, file.%G.decl [template = constants.%G]
|
||||
// CHECK:STDOUT: %.loc20_11.1: ref %.3 = temporary_storage
|
||||
// CHECK:STDOUT: %G.call: init %.3 = call %G.ref() to %.loc20_11.1
|
||||
// CHECK:STDOUT: %.loc20_14: i32 = int_literal 0 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc20_14: i32 = int_value 0 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc20_11.2: ref %.3 = temporary %.loc20_11.1, %G.call
|
||||
// CHECK:STDOUT: %.loc20_13.1: ref i32 = tuple_access %.loc20_11.2, element0
|
||||
// CHECK:STDOUT: %.loc20_13.2: i32 = bind_value %.loc20_13.1
|
||||
|
||||
Reference in New Issue
Block a user