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
@@ -80,7 +80,7 @@ fn CallGOnInitializingExpr() -> i32 {
// CHECK:STDOUT: %CallAlias: %CallAlias.type = struct_value () [template]
// CHECK:STDOUT: %CallOnConstBoundMethod.type: type = fn_type @CallOnConstBoundMethod [template]
// CHECK:STDOUT: %CallOnConstBoundMethod: %CallOnConstBoundMethod.type = struct_value () [template]
// CHECK:STDOUT: %.7: i32 = int_literal 1 [template]
// CHECK:STDOUT: %.7: i32 = int_value 1 [template]
// CHECK:STDOUT: %struct: %Class = struct_value (%.7) [template]
// CHECK:STDOUT: %CallWithAddr.type: type = fn_type @CallWithAddr [template]
// CHECK:STDOUT: %CallWithAddr: %CallWithAddr.type = struct_value () [template]
@@ -334,7 +334,7 @@ fn CallGOnInitializingExpr() -> i32 {
// CHECK:STDOUT:
// CHECK:STDOUT: fn @CallOnConstBoundMethod() -> i32 {
// CHECK:STDOUT: !entry:
// CHECK:STDOUT: %.loc35_17: i32 = int_literal 1 [template = constants.%.7]
// CHECK:STDOUT: %.loc35_17: i32 = int_value 1 [template = constants.%.7]
// CHECK:STDOUT: %.loc35_18.1: %.4 = struct_literal (%.loc35_17)
// CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class]
// CHECK:STDOUT: %.loc35_18.2: ref %Class = temporary_storage