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
@@ -23,7 +23,7 @@ interface I {
// CHECK:STDOUT: constants {
// CHECK:STDOUT: %I.type: type = interface_type @I [template]
// CHECK:STDOUT: %Self.1: %I.type = bind_symbolic_name Self, 0 [symbolic]
// CHECK:STDOUT: %.1: i32 = int_literal 42 [template]
// CHECK:STDOUT: %.1: i32 = int_value 42 [template]
// CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template]
// CHECK:STDOUT: %.2: type = tuple_type () [template]
// CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template]
@@ -71,7 +71,7 @@ interface I {
// CHECK:STDOUT:
// CHECK:STDOUT: interface @I {
// CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.1]
// CHECK:STDOUT: %.loc18_18: i32 = int_literal 42 [template = constants.%.1]
// CHECK:STDOUT: %.loc18_18: i32 = int_value 42 [template = constants.%.1]
// CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3]
// CHECK:STDOUT: %.loc18_20.1: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6]
// CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc18_20.1 [template = constants.%.6]
@@ -32,7 +32,7 @@ interface I {
// CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template]
// CHECK:STDOUT: %.4: type = assoc_entity_type %I.type, type [template]
// CHECK:STDOUT: %.5: %.4 = assoc_entity element0, @I.%T [template]
// CHECK:STDOUT: %.6: i32 = int_literal 42 [template]
// CHECK:STDOUT: %.6: i32 = int_value 42 [template]
// CHECK:STDOUT: %.7: type = assoc_entity_type %I.type, i32 [template]
// CHECK:STDOUT: %.8: %.7 = assoc_entity element1, @I.%N [template]
// CHECK:STDOUT: }
@@ -70,7 +70,7 @@ interface I {
// CHECK:STDOUT: %int.make_type_32.loc20: init type = call constants.%Int32() [template = i32]
// CHECK:STDOUT: %.loc20_19.1: type = value_of_initializer %int.make_type_32.loc20 [template = i32]
// CHECK:STDOUT: %.loc20_19.2: type = converted %int.make_type_32.loc20, %.loc20_19.1 [template = i32]
// CHECK:STDOUT: %.loc20_25: i32 = int_literal 42 [template = constants.%.6]
// CHECK:STDOUT: %.loc20_25: i32 = int_value 42 [template = constants.%.6]
// CHECK:STDOUT: %N: i32 = assoc_const_decl N [template]
// CHECK:STDOUT: %.loc20_27: %.7 = assoc_entity element1, %N [template = constants.%.8]
// CHECK:STDOUT:
@@ -39,7 +39,7 @@ interface I {
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32) [template]
// CHECK:STDOUT: %.8: type = assoc_entity_type %I.type, type [template]
// CHECK:STDOUT: %.9: %.8 = assoc_entity element2, @I.%T [template]
// CHECK:STDOUT: %.10: i32 = int_literal 42 [template]
// CHECK:STDOUT: %.10: i32 = int_value 42 [template]
// CHECK:STDOUT: %.11: type = assoc_entity_type %I.type, i32 [template]
// CHECK:STDOUT: %.12: %.11 = assoc_entity element3, @I.%N [template]
// CHECK:STDOUT: }
@@ -104,7 +104,7 @@ interface I {
// CHECK:STDOUT: %int.make_type_32.loc19: init type = call constants.%Int32() [template = i32]
// CHECK:STDOUT: %.loc19_11.1: type = value_of_initializer %int.make_type_32.loc19 [template = i32]
// CHECK:STDOUT: %.loc19_11.2: type = converted %int.make_type_32.loc19, %.loc19_11.1 [template = i32]
// CHECK:STDOUT: %.loc19_17: i32 = int_literal 42 [template = constants.%.10]
// CHECK:STDOUT: %.loc19_17: i32 = int_value 42 [template = constants.%.10]
// CHECK:STDOUT: %N: i32 = assoc_const_decl N [template]
// CHECK:STDOUT: %.loc19_19: %.11 = assoc_entity element3, %N [template = constants.%.12]
// CHECK:STDOUT: