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:
Richard Smith
2024-11-02 01:19:39 +00:00
committed by GitHub
parent 261fe38508
commit db76e81630
250 changed files with 1933 additions and 1935 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ fn Call(p: Derived*) {
// CHECK:STDOUT: %.4: type = struct_type {.a: i32} [template]
// CHECK:STDOUT: %.5: <witness> = complete_type_witness %.4 [template]
// CHECK:STDOUT: %.6: type = ptr_type %.4 [template]
// CHECK:STDOUT: %.7: i32 = int_literal 1 [template]
// CHECK:STDOUT: %.7: i32 = int_value 1 [template]
// CHECK:STDOUT: %Derived: type = class_type @Derived [template]
// CHECK:STDOUT: %.8: type = unbound_element_type %Derived, %Base [template]
// CHECK:STDOUT: %.9: type = struct_type {.base: %Base} [template]
@@ -134,7 +134,7 @@ fn Call(p: Derived*) {
// CHECK:STDOUT: %.loc18_4: ref %Base = deref %self.ref
// CHECK:STDOUT: %a.ref: %.2 = name_ref a, @Base.%.loc12_8 [template = @Base.%.loc12_8]
// CHECK:STDOUT: %.loc18_10: ref i32 = class_element_access %.loc18_4, element0
// CHECK:STDOUT: %.loc18_15: i32 = int_literal 1 [template = constants.%.7]
// CHECK:STDOUT: %.loc18_15: i32 = int_value 1 [template = constants.%.7]
// CHECK:STDOUT: assign %.loc18_10, %.loc18_15
// CHECK:STDOUT: return
// CHECK:STDOUT: }