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
+8 -8
View File
@@ -22,10 +22,10 @@ fn F(a: bool, b: bool, c: bool) -> i32 {
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
// CHECK:STDOUT: %F.type: type = fn_type @F [template]
// CHECK:STDOUT: %F: %F.type = struct_value () [template]
// CHECK:STDOUT: %.2: i32 = int_literal 1 [template]
// CHECK:STDOUT: %.3: i32 = int_literal 2 [template]
// CHECK:STDOUT: %.4: i32 = int_literal 3 [template]
// CHECK:STDOUT: %.5: i32 = int_literal 4 [template]
// CHECK:STDOUT: %.2: i32 = int_value 1 [template]
// CHECK:STDOUT: %.3: i32 = int_value 2 [template]
// CHECK:STDOUT: %.4: i32 = int_value 3 [template]
// CHECK:STDOUT: %.5: i32 = int_value 4 [template]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -92,11 +92,11 @@ fn F(a: bool, b: bool, c: bool) -> i32 {
// CHECK:STDOUT: if %b.ref br !if.expr.then.loc12_20 else br !if.expr.else.loc12_20
// CHECK:STDOUT:
// CHECK:STDOUT: !if.expr.then.loc12_20:
// CHECK:STDOUT: %.loc12_30: i32 = int_literal 1 [template = constants.%.2]
// CHECK:STDOUT: %.loc12_30: i32 = int_value 1 [template = constants.%.2]
// CHECK:STDOUT: br !if.expr.result.loc12_20(%.loc12_30)
// CHECK:STDOUT:
// CHECK:STDOUT: !if.expr.else.loc12_20:
// CHECK:STDOUT: %.loc12_37: i32 = int_literal 2 [template = constants.%.3]
// CHECK:STDOUT: %.loc12_37: i32 = int_value 2 [template = constants.%.3]
// CHECK:STDOUT: br !if.expr.result.loc12_20(%.loc12_37)
// CHECK:STDOUT:
// CHECK:STDOUT: !if.expr.result.loc12_20:
@@ -108,11 +108,11 @@ fn F(a: bool, b: bool, c: bool) -> i32 {
// CHECK:STDOUT: if %c.ref br !if.expr.then.loc12_44 else br !if.expr.else.loc12_44
// CHECK:STDOUT:
// CHECK:STDOUT: !if.expr.then.loc12_44:
// CHECK:STDOUT: %.loc12_54: i32 = int_literal 3 [template = constants.%.4]
// CHECK:STDOUT: %.loc12_54: i32 = int_value 3 [template = constants.%.4]
// CHECK:STDOUT: br !if.expr.result.loc12_44(%.loc12_54)
// CHECK:STDOUT:
// CHECK:STDOUT: !if.expr.else.loc12_44:
// CHECK:STDOUT: %.loc12_61: i32 = int_literal 4 [template = constants.%.5]
// CHECK:STDOUT: %.loc12_61: i32 = int_value 4 [template = constants.%.5]
// CHECK:STDOUT: br !if.expr.result.loc12_44(%.loc12_61)
// CHECK:STDOUT:
// CHECK:STDOUT: !if.expr.result.loc12_44: