mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +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:
+6
-6
@@ -26,13 +26,13 @@ fn G() {
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %G.type: type = fn_type @G [template]
|
||||
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.5: type = array_type %.4, %.3 [template]
|
||||
// CHECK:STDOUT: %.6: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.7: type = ptr_type %.5 [template]
|
||||
// CHECK:STDOUT: %.8: type = tuple_type (%.3, %.3) [template]
|
||||
// CHECK:STDOUT: %.9: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.9: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
@@ -82,7 +82,7 @@ fn G() {
|
||||
// CHECK:STDOUT: %int.make_type_32.loc14_17: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %int.make_type_32.loc14_22: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_25.1: %.2 = tuple_literal (%int.make_type_32.loc14_12, %int.make_type_32.loc14_17, %int.make_type_32.loc14_22)
|
||||
// CHECK:STDOUT: %.loc14_28: i32 = int_literal 2 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc14_28: i32 = int_value 2 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc14_25.2: type = value_of_initializer %int.make_type_32.loc14_12 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_25.3: type = converted %int.make_type_32.loc14_12, %.loc14_25.2 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_25.4: type = value_of_initializer %int.make_type_32.loc14_17 [template = i32]
|
||||
@@ -95,13 +95,13 @@ fn G() {
|
||||
// CHECK:STDOUT: %v: ref %.5 = bind_name v, %v.var
|
||||
// CHECK:STDOUT: %F.ref.loc14_34: %F.type = name_ref F, file.%F.decl [template = constants.%F]
|
||||
// CHECK:STDOUT: %.loc14_42.3: ref %.3 = splice_block %.loc14_42.2 {
|
||||
// CHECK:STDOUT: %.loc14_42.1: i32 = int_literal 0 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc14_42.1: i32 = int_value 0 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc14_42.2: ref %.3 = array_index %v.var, %.loc14_42.1
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %F.call.loc14_35: init %.3 = call %F.ref.loc14_34() to %.loc14_42.3
|
||||
// CHECK:STDOUT: %F.ref.loc14_39: %F.type = name_ref F, file.%F.decl [template = constants.%F]
|
||||
// CHECK:STDOUT: %.loc14_42.6: ref %.3 = splice_block %.loc14_42.5 {
|
||||
// CHECK:STDOUT: %.loc14_42.4: i32 = int_literal 1 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc14_42.4: i32 = int_value 1 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc14_42.5: ref %.3 = array_index %v.var, %.loc14_42.4
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %F.call.loc14_40: init %.3 = call %F.ref.loc14_39() to %.loc14_42.6
|
||||
|
||||
+14
-14
@@ -22,13 +22,13 @@ fn G() {
|
||||
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template]
|
||||
// CHECK:STDOUT: %.9: type = tuple_type (type, type, type) [template]
|
||||
// CHECK:STDOUT: %.10: type = ptr_type %.7 [template]
|
||||
@@ -56,23 +56,23 @@ fn G() {
|
||||
// CHECK:STDOUT: fn @G() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc13_16: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_16: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_11.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32]
|
||||
// CHECK:STDOUT: %.loc13_11.2: type = converted %int.make_type_32.loc13, %.loc13_11.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc13_17: type = array_type %.loc13_16, i32 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %a.var: ref %.3 = var a
|
||||
// CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var
|
||||
// CHECK:STDOUT: %.loc13_22: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc13_25: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_28: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_22: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc13_25: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_28: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_29.1: %.7 = tuple_literal (%.loc13_22, %.loc13_25, %.loc13_28)
|
||||
// CHECK:STDOUT: %.loc13_29.2: i32 = int_literal 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc13_29.2: i32 = int_value 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc13_29.3: ref i32 = array_index %a.var, %.loc13_29.2
|
||||
// CHECK:STDOUT: %.loc13_29.4: init i32 = initialize_from %.loc13_22 to %.loc13_29.3 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc13_29.5: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc13_29.5: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc13_29.6: ref i32 = array_index %a.var, %.loc13_29.5
|
||||
// CHECK:STDOUT: %.loc13_29.7: init i32 = initialize_from %.loc13_25 to %.loc13_29.6 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_29.8: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_29.8: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_29.9: ref i32 = array_index %a.var, %.loc13_29.8
|
||||
// CHECK:STDOUT: %.loc13_29.10: init i32 = initialize_from %.loc13_28 to %.loc13_29.9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_29.11: init %.3 = array_init (%.loc13_29.4, %.loc13_29.7, %.loc13_29.10) to %a.var [template = constants.%array]
|
||||
@@ -91,9 +91,9 @@ fn G() {
|
||||
// CHECK:STDOUT: %.loc14_24.8: type = converted %.loc14_24.1, constants.%.7 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %b.var: ref %.7 = var b
|
||||
// CHECK:STDOUT: %b: ref %.7 = bind_name b, %b.var
|
||||
// CHECK:STDOUT: %.loc14_29: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc14_32: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc14_35: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc14_29: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc14_32: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc14_35: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc14_36.1: %.7 = tuple_literal (%.loc14_29, %.loc14_32, %.loc14_35)
|
||||
// CHECK:STDOUT: %.loc14_36.2: ref i32 = tuple_access %b.var, element0
|
||||
// CHECK:STDOUT: %.loc14_36.3: init i32 = initialize_from %.loc14_29 to %.loc14_36.2 [template = constants.%.5]
|
||||
|
||||
@@ -24,11 +24,11 @@ fn Run() {
|
||||
// CHECK:STDOUT: %.3: type = tuple_type (i32) [template]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [template]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template]
|
||||
// CHECK:STDOUT: %Run.type: type = fn_type @Run [template]
|
||||
// CHECK:STDOUT: %Run: %Run.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: type = array_type %.5, i32 [template]
|
||||
// CHECK:STDOUT: %.7: type = ptr_type %.6 [template]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -68,7 +68,7 @@ fn Run() {
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @F() -> %.3 {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_28: i32 = int_literal 0 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc11_28: i32 = int_value 0 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc11_30: %.3 = tuple_literal (%.loc11_28)
|
||||
// CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc11_28) [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc11_31: %.3 = converted %.loc11_30, %tuple [template = constants.%tuple]
|
||||
@@ -78,7 +78,7 @@ fn Run() {
|
||||
// CHECK:STDOUT: fn @Run() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_16: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc14_16: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc14_11.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_11.2: type = converted %int.make_type_32, %.loc14_11.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_17: type = array_type %.loc14_16, i32 [template = constants.%.6]
|
||||
@@ -90,7 +90,7 @@ fn Run() {
|
||||
// CHECK:STDOUT: %.loc14_22.2: ref %.3 = temporary %.loc14_22.1, %F.call
|
||||
// CHECK:STDOUT: %.loc14_22.3: ref i32 = tuple_access %.loc14_22.2, element0
|
||||
// CHECK:STDOUT: %.loc14_22.4: i32 = bind_value %.loc14_22.3
|
||||
// CHECK:STDOUT: %.loc14_22.5: i32 = int_literal 0 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc14_22.5: i32 = int_value 0 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc14_22.6: ref i32 = array_index %t.var, %.loc14_22.5
|
||||
// CHECK:STDOUT: %.loc14_22.7: init i32 = initialize_from %.loc14_22.4 to %.loc14_22.6
|
||||
// CHECK:STDOUT: %.loc14_22.8: init %.6 = array_init (%.loc14_22.7) to %t.var
|
||||
|
||||
+11
-11
@@ -20,13 +20,13 @@ var b: [i32; 3] = a;
|
||||
// CHECK:STDOUT: %.2: type = tuple_type (type, type, type) [template]
|
||||
// CHECK:STDOUT: %.3: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.7: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6, %.7) [template]
|
||||
// CHECK:STDOUT: %.8: type = array_type %.7, i32 [template]
|
||||
// CHECK:STDOUT: %.9: type = ptr_type %.8 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
@@ -59,7 +59,7 @@ var b: [i32; 3] = a;
|
||||
// CHECK:STDOUT: %a.var: ref %.3 = var a
|
||||
// CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var
|
||||
// CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc12_14: i32 = int_literal 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc12_14: i32 = int_value 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc12_9.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32]
|
||||
// CHECK:STDOUT: %.loc12_9.2: type = converted %int.make_type_32.loc12, %.loc12_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc12_15: type = array_type %.loc12_14, i32 [template = constants.%.8]
|
||||
@@ -71,9 +71,9 @@ var b: [i32; 3] = a;
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_27: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_30: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_33: i32 = int_literal 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_27: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_30: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_33: i32 = int_value 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_34.1: %.3 = tuple_literal (%.loc11_27, %.loc11_30, %.loc11_33)
|
||||
// CHECK:STDOUT: %.loc11_34.2: ref i32 = tuple_access file.%a.var, element0
|
||||
// CHECK:STDOUT: %.loc11_34.3: init i32 = initialize_from %.loc11_27 to %.loc11_34.2 [template = constants.%.5]
|
||||
@@ -87,17 +87,17 @@ var b: [i32; 3] = a;
|
||||
// CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a
|
||||
// CHECK:STDOUT: %.loc12_19.1: ref i32 = tuple_access %a.ref, element0
|
||||
// CHECK:STDOUT: %.loc12_19.2: i32 = bind_value %.loc12_19.1
|
||||
// CHECK:STDOUT: %.loc12_19.3: i32 = int_literal 0 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc12_19.3: i32 = int_value 0 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc12_19.4: ref i32 = array_index file.%b.var, %.loc12_19.3
|
||||
// CHECK:STDOUT: %.loc12_19.5: init i32 = initialize_from %.loc12_19.2 to %.loc12_19.4
|
||||
// CHECK:STDOUT: %.loc12_19.6: ref i32 = tuple_access %a.ref, element1
|
||||
// CHECK:STDOUT: %.loc12_19.7: i32 = bind_value %.loc12_19.6
|
||||
// CHECK:STDOUT: %.loc12_19.8: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc12_19.8: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc12_19.9: ref i32 = array_index file.%b.var, %.loc12_19.8
|
||||
// CHECK:STDOUT: %.loc12_19.10: init i32 = initialize_from %.loc12_19.7 to %.loc12_19.9
|
||||
// CHECK:STDOUT: %.loc12_19.11: ref i32 = tuple_access %a.ref, element2
|
||||
// CHECK:STDOUT: %.loc12_19.12: i32 = bind_value %.loc12_19.11
|
||||
// CHECK:STDOUT: %.loc12_19.13: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc12_19.13: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc12_19.14: ref i32 = array_index file.%b.var, %.loc12_19.13
|
||||
// CHECK:STDOUT: %.loc12_19.15: init i32 = initialize_from %.loc12_19.12 to %.loc12_19.14
|
||||
// CHECK:STDOUT: %.loc12_19.16: init %.8 = array_init (%.loc12_19.5, %.loc12_19.10, %.loc12_19.15) to file.%b.var
|
||||
|
||||
+20
-20
@@ -18,29 +18,29 @@ var c: [(); 5] = ((), (), (), (), (),);
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: type = tuple_type (i32) [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array.1: %.3 = tuple_value (%.2) [template]
|
||||
// CHECK:STDOUT: %.7: Core.BigInt = int_literal 64 [template]
|
||||
// CHECK:STDOUT: %.7: Core.BigInt = int_value 64 [template]
|
||||
// CHECK:STDOUT: %Float.type: type = fn_type @Float [template]
|
||||
// CHECK:STDOUT: %Float: %Float.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.9: type = array_type %.8, f64 [template]
|
||||
// CHECK:STDOUT: %.10: type = ptr_type %.9 [template]
|
||||
// CHECK:STDOUT: %.11: f64 = float_literal 11.100000000000001 [template]
|
||||
// CHECK:STDOUT: %.12: f64 = float_literal 2.2000000000000002 [template]
|
||||
// CHECK:STDOUT: %.13: type = tuple_type (f64, f64) [template]
|
||||
// CHECK:STDOUT: %array.2: %.9 = tuple_value (%.11, %.12) [template]
|
||||
// CHECK:STDOUT: %.14: i32 = int_literal 5 [template]
|
||||
// CHECK:STDOUT: %.14: i32 = int_value 5 [template]
|
||||
// CHECK:STDOUT: %.15: type = array_type %.14, %.1 [template]
|
||||
// CHECK:STDOUT: %.16: type = ptr_type %.15 [template]
|
||||
// CHECK:STDOUT: %.17: type = tuple_type (%.1, %.1, %.1, %.1, %.1) [template]
|
||||
// CHECK:STDOUT: %tuple: %.1 = tuple_value () [template]
|
||||
// CHECK:STDOUT: %.18: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.19: i32 = int_literal 4 [template]
|
||||
// CHECK:STDOUT: %.18: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.19: i32 = int_value 4 [template]
|
||||
// CHECK:STDOUT: %array.3: %.15 = tuple_value (%tuple, %tuple, %tuple, %tuple, %tuple) [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -64,22 +64,22 @@ var c: [(); 5] = ((), (), (), (), (),);
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32, %.loc11_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %a.var: ref %.3 = var a
|
||||
// CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var
|
||||
// CHECK:STDOUT: %.loc12_9.1: Core.BigInt = int_literal 64 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc12_9.1: Core.BigInt = int_value 64 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc12_9.1) [template = f64]
|
||||
// CHECK:STDOUT: %.loc12_14: i32 = int_literal 2 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc12_14: i32 = int_value 2 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc12_9.2: type = value_of_initializer %float.make_type [template = f64]
|
||||
// CHECK:STDOUT: %.loc12_9.3: type = converted %float.make_type, %.loc12_9.2 [template = f64]
|
||||
// CHECK:STDOUT: %.loc12_15: type = array_type %.loc12_14, f64 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %b.var: ref %.9 = var b
|
||||
// CHECK:STDOUT: %b: ref %.9 = bind_name b, %b.var
|
||||
// CHECK:STDOUT: %.loc13_10.1: %.1 = tuple_literal ()
|
||||
// CHECK:STDOUT: %.loc13_13: i32 = int_literal 5 [template = constants.%.14]
|
||||
// CHECK:STDOUT: %.loc13_13: i32 = int_value 5 [template = constants.%.14]
|
||||
// CHECK:STDOUT: %.loc13_10.2: type = converted %.loc13_10.1, constants.%.1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc13_14: type = array_type %.loc13_13, %.1 [template = constants.%.15]
|
||||
// CHECK:STDOUT: %c.var: ref %.15 = var c
|
||||
@@ -92,9 +92,9 @@ var c: [(); 5] = ((), (), (), (), (),);
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_22.1: %.5 = tuple_literal (%.loc11_20)
|
||||
// CHECK:STDOUT: %.loc11_22.2: i32 = int_literal 0 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_22.2: i32 = int_value 0 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_22.3: ref i32 = array_index file.%a.var, %.loc11_22.2
|
||||
// CHECK:STDOUT: %.loc11_22.4: init i32 = initialize_from %.loc11_20 to %.loc11_22.3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_22.5: init %.3 = array_init (%.loc11_22.4) to file.%a.var [template = constants.%array.1]
|
||||
@@ -103,10 +103,10 @@ var c: [(); 5] = ((), (), (), (), (),);
|
||||
// CHECK:STDOUT: %.loc12_20: f64 = float_literal 11.100000000000001 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc12_26: f64 = float_literal 2.2000000000000002 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc12_30.1: %.13 = tuple_literal (%.loc12_20, %.loc12_26)
|
||||
// CHECK:STDOUT: %.loc12_30.2: i32 = int_literal 0 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc12_30.2: i32 = int_value 0 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc12_30.3: ref f64 = array_index file.%b.var, %.loc12_30.2
|
||||
// CHECK:STDOUT: %.loc12_30.4: init f64 = initialize_from %.loc12_20 to %.loc12_30.3 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc12_30.5: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc12_30.5: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc12_30.6: ref f64 = array_index file.%b.var, %.loc12_30.5
|
||||
// CHECK:STDOUT: %.loc12_30.7: init f64 = initialize_from %.loc12_26 to %.loc12_30.6 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc12_30.8: init %.9 = array_init (%.loc12_30.4, %.loc12_30.7) to file.%b.var [template = constants.%array.2]
|
||||
@@ -118,23 +118,23 @@ var c: [(); 5] = ((), (), (), (), (),);
|
||||
// CHECK:STDOUT: %.loc13_32.1: %.1 = tuple_literal ()
|
||||
// CHECK:STDOUT: %.loc13_36.1: %.1 = tuple_literal ()
|
||||
// CHECK:STDOUT: %.loc13_38.1: %.17 = tuple_literal (%.loc13_20.1, %.loc13_24.1, %.loc13_28.1, %.loc13_32.1, %.loc13_36.1)
|
||||
// CHECK:STDOUT: %.loc13_38.2: i32 = int_literal 0 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_38.2: i32 = int_value 0 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc13_38.3: ref %.1 = array_index file.%c.var, %.loc13_38.2
|
||||
// CHECK:STDOUT: %.loc13_20.2: init %.1 = tuple_init () to %.loc13_38.3 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.4: init %.1 = converted %.loc13_20.1, %.loc13_20.2 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.5: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_38.5: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_38.6: ref %.1 = array_index file.%c.var, %.loc13_38.5
|
||||
// CHECK:STDOUT: %.loc13_24.2: init %.1 = tuple_init () to %.loc13_38.6 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.7: init %.1 = converted %.loc13_24.1, %.loc13_24.2 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.8: i32 = int_literal 2 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc13_38.8: i32 = int_value 2 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc13_38.9: ref %.1 = array_index file.%c.var, %.loc13_38.8
|
||||
// CHECK:STDOUT: %.loc13_28.2: init %.1 = tuple_init () to %.loc13_38.9 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.10: init %.1 = converted %.loc13_28.1, %.loc13_28.2 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.11: i32 = int_literal 3 [template = constants.%.18]
|
||||
// CHECK:STDOUT: %.loc13_38.11: i32 = int_value 3 [template = constants.%.18]
|
||||
// CHECK:STDOUT: %.loc13_38.12: ref %.1 = array_index file.%c.var, %.loc13_38.11
|
||||
// CHECK:STDOUT: %.loc13_32.2: init %.1 = tuple_init () to %.loc13_38.12 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.13: init %.1 = converted %.loc13_32.1, %.loc13_32.2 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.14: i32 = int_literal 4 [template = constants.%.19]
|
||||
// CHECK:STDOUT: %.loc13_38.14: i32 = int_value 4 [template = constants.%.19]
|
||||
// CHECK:STDOUT: %.loc13_38.15: ref %.1 = array_index file.%c.var, %.loc13_38.14
|
||||
// CHECK:STDOUT: %.loc13_36.2: init %.1 = tuple_init () to %.loc13_38.15 [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_38.16: init %.1 = converted %.loc13_36.1, %.loc13_36.2 [template = constants.%tuple]
|
||||
|
||||
+13
-13
@@ -21,13 +21,13 @@ let b: [i32; 3]* = &a;
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %Add.type: type = fn_type @Add [template]
|
||||
// CHECK:STDOUT: %Add: %Add.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: %.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: type = array_type %.4, i32 [template]
|
||||
// CHECK:STDOUT: %.6: type = ptr_type %.5 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.5 = tuple_value (%.2, %.3, %.4) [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -74,8 +74,8 @@ let b: [i32; 3]* = &a;
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add]
|
||||
// CHECK:STDOUT: %.loc13_18: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_21: i32 = int_literal 2 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc13_18: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_21: i32 = int_value 2 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %int.sadd: init i32 = call %Add.ref(%.loc13_18, %.loc13_21) [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc13_9.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32]
|
||||
// CHECK:STDOUT: %.loc13_9.2: type = converted %int.make_type_32.loc13, %.loc13_9.1 [template = i32]
|
||||
@@ -83,7 +83,7 @@ let b: [i32; 3]* = &a;
|
||||
// CHECK:STDOUT: %a.var: ref %.5 = var a
|
||||
// CHECK:STDOUT: %a: ref %.5 = bind_name a, %a.var
|
||||
// CHECK:STDOUT: %int.make_type_32.loc14: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_14: i32 = int_literal 3 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc14_14: i32 = int_value 3 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc14_9.1: type = value_of_initializer %int.make_type_32.loc14 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_9.2: type = converted %int.make_type_32.loc14, %.loc14_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_15: type = array_type %.loc14_14, i32 [template = constants.%.5]
|
||||
@@ -96,17 +96,17 @@ let b: [i32; 3]* = &a;
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc13_28: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_31: i32 = int_literal 2 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc13_34: i32 = int_literal 3 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc13_28: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_31: i32 = int_value 2 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc13_34: i32 = int_value 3 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc13_35.1: %.7 = tuple_literal (%.loc13_28, %.loc13_31, %.loc13_34)
|
||||
// CHECK:STDOUT: %.loc13_35.2: i32 = int_literal 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc13_35.2: i32 = int_value 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc13_35.3: ref i32 = array_index file.%a.var, %.loc13_35.2
|
||||
// CHECK:STDOUT: %.loc13_35.4: init i32 = initialize_from %.loc13_28 to %.loc13_35.3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_35.5: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_35.5: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_35.6: ref i32 = array_index file.%a.var, %.loc13_35.5
|
||||
// CHECK:STDOUT: %.loc13_35.7: init i32 = initialize_from %.loc13_31 to %.loc13_35.6 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc13_35.8: i32 = int_literal 2 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc13_35.8: i32 = int_value 2 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc13_35.9: ref i32 = array_index file.%a.var, %.loc13_35.8
|
||||
// CHECK:STDOUT: %.loc13_35.10: init i32 = initialize_from %.loc13_34 to %.loc13_35.9 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc13_35.11: init %.5 = array_init (%.loc13_35.4, %.loc13_35.7, %.loc13_35.10) to file.%a.var [template = constants.%array]
|
||||
|
||||
@@ -23,8 +23,8 @@ var a: [i32; Negate(1)];
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template]
|
||||
// CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.3: i32 = int_literal -1 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.3: i32 = int_value -1 [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
@@ -62,7 +62,7 @@ var a: [i32; Negate(1)];
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
||||
// CHECK:STDOUT: %.loc16_21: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_21: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc16_21) [template = constants.%.3]
|
||||
// CHECK:STDOUT: %.loc16_9.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
||||
// CHECK:STDOUT: %.loc16_9.2: type = converted %int.make_type_32, %.loc16_9.1 [template = i32]
|
||||
|
||||
@@ -35,7 +35,7 @@ var b: [1; 39999999999999999993];
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template]
|
||||
// CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic]
|
||||
@@ -84,7 +84,7 @@ var b: [1; 39999999999999999993];
|
||||
// CHECK:STDOUT: %.loc18_34: type = array_type <error>, i32 [template = <error>]
|
||||
// CHECK:STDOUT: %a.var: ref <error> = var a
|
||||
// CHECK:STDOUT: %a: ref <error> = bind_name a, %a.var
|
||||
// CHECK:STDOUT: %.loc30_9.1: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc30_9.1: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3]
|
||||
// CHECK:STDOUT: %.loc30_9.2: %.5 = specific_constant imports.%import_ref.4, @ImplicitAs(type) [template = constants.%.6]
|
||||
// CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc30_9.2 [template = constants.%.6]
|
||||
|
||||
@@ -24,10 +24,10 @@ var p: Incomplete* = &a[0];
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: %Incomplete: type = class_type @Incomplete [template]
|
||||
// CHECK:STDOUT: %.1: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.1: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.2: type = array_type %.1, %Incomplete [template]
|
||||
// CHECK:STDOUT: %.3: type = ptr_type %Incomplete [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
@@ -47,7 +47,7 @@ var p: Incomplete* = &a[0];
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %Incomplete.decl: type = class_decl @Incomplete [template = constants.%Incomplete] {} {}
|
||||
// CHECK:STDOUT: %Incomplete.ref.loc19: type = name_ref Incomplete, %Incomplete.decl [template = constants.%Incomplete]
|
||||
// CHECK:STDOUT: %.loc19_21: i32 = int_literal 1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc19_21: i32 = int_value 1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc19_22: type = array_type %.loc19_21, %Incomplete [template = constants.%.2]
|
||||
// CHECK:STDOUT: %a.var: ref <error> = var a
|
||||
// CHECK:STDOUT: %a: ref <error> = bind_name a, %a.var
|
||||
@@ -62,7 +62,7 @@ var p: Incomplete* = &a[0];
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %a.ref: ref <error> = name_ref a, file.%a
|
||||
// CHECK:STDOUT: %.loc21_25: i32 = int_literal 0 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc21_25: i32 = int_value 0 [template = constants.%.4]
|
||||
// CHECK:STDOUT: %.loc21_22: <error> = addr_of <error> [template = <error>]
|
||||
// CHECK:STDOUT: assign file.%p.var, <error>
|
||||
// CHECK:STDOUT: return
|
||||
|
||||
+3
-3
@@ -19,7 +19,7 @@ var a: [1; 1];
|
||||
// CHECK:STDOUT: --- fail_invalid_type.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: %.1: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.1: i32 = int_value 1 [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]
|
||||
@@ -60,8 +60,8 @@ var a: [1; 1];
|
||||
// CHECK:STDOUT: .a = %a
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %.loc17_9.1: i32 = int_literal 1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc17_12: i32 = int_literal 1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc17_9.1: i32 = int_value 1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc17_12: i32 = int_value 1 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3]
|
||||
// CHECK:STDOUT: %.loc17_9.2: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6]
|
||||
// CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc17_9.2 [template = constants.%.6]
|
||||
|
||||
+7
-7
@@ -19,11 +19,11 @@ var a: [i32; 1] = (1, 2, 3);
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -43,7 +43,7 @@ var a: [i32; 1] = (1, 2, 3);
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_14: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc14_14: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc14_9.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_9.2: type = converted %int.make_type_32, %.loc14_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc14_15: type = array_type %.loc14_14, i32 [template = constants.%.3]
|
||||
@@ -55,9 +55,9 @@ var a: [i32; 1] = (1, 2, 3);
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc14_20: i32 = int_literal 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc14_23: i32 = int_literal 2 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc14_26: i32 = int_literal 3 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc14_20: i32 = int_value 1 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc14_23: i32 = int_value 2 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc14_26: i32 = int_value 3 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc14_27: %.7 = tuple_literal (%.loc14_20, %.loc14_23, %.loc14_26)
|
||||
// CHECK:STDOUT: assign file.%a.var, <error>
|
||||
// CHECK:STDOUT: return
|
||||
|
||||
@@ -20,13 +20,13 @@ var b: i32 = a[{.index = 3}.index];
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template]
|
||||
// CHECK:STDOUT: %.9: type = struct_type {.index: i32} [template]
|
||||
// CHECK:STDOUT: %struct: %.9 = struct_value (%.2) [template]
|
||||
@@ -49,7 +49,7 @@ var b: i32 = a[{.index = 3}.index];
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3]
|
||||
@@ -66,24 +66,24 @@ var b: i32 = a[{.index = 3}.index];
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_23: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_26: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_23: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_26: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_27.1: %.7 = tuple_literal (%.loc11_20, %.loc11_23, %.loc11_26)
|
||||
// CHECK:STDOUT: %.loc11_27.2: i32 = int_literal 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_27.2: i32 = int_value 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_27.3: ref i32 = array_index file.%a.var, %.loc11_27.2
|
||||
// CHECK:STDOUT: %.loc11_27.4: init i32 = initialize_from %.loc11_20 to %.loc11_27.3 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_27.5: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_27.5: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_27.6: ref i32 = array_index file.%a.var, %.loc11_27.5
|
||||
// CHECK:STDOUT: %.loc11_27.7: init i32 = initialize_from %.loc11_23 to %.loc11_27.6 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_27.8: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_27.8: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_27.9: ref i32 = array_index file.%a.var, %.loc11_27.8
|
||||
// CHECK:STDOUT: %.loc11_27.10: init i32 = initialize_from %.loc11_26 to %.loc11_27.9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_27.11: init %.3 = array_init (%.loc11_27.4, %.loc11_27.7, %.loc11_27.10) to file.%a.var [template = constants.%array]
|
||||
// CHECK:STDOUT: %.loc11_28: init %.3 = converted %.loc11_27.1, %.loc11_27.11 [template = constants.%array]
|
||||
// CHECK:STDOUT: assign file.%a.var, %.loc11_28
|
||||
// CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a
|
||||
// CHECK:STDOUT: %.loc15_26: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc15_26: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc15_27.1: %.9 = struct_literal (%.loc15_26)
|
||||
// CHECK:STDOUT: %struct: %.9 = struct_value (%.loc15_26) [template = constants.%struct]
|
||||
// CHECK:STDOUT: %.loc15_27.2: %.9 = converted %.loc15_27.1, %struct [template = constants.%struct]
|
||||
|
||||
+13
-13
@@ -45,15 +45,15 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: type = ptr_type String [template]
|
||||
// CHECK:STDOUT: %.7: String = string_literal "Hello" [template]
|
||||
// CHECK:STDOUT: %.8: String = string_literal "World" [template]
|
||||
// CHECK:STDOUT: %.9: type = tuple_type (i32, String, String) [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template]
|
||||
// CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic]
|
||||
@@ -74,7 +74,7 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: %.16: type = tuple_type (type, type, type) [template]
|
||||
// CHECK:STDOUT: %.17: type = tuple_type (i32, %.6, %.6) [template]
|
||||
// CHECK:STDOUT: %.18: type = ptr_type %.17 [template]
|
||||
// CHECK:STDOUT: %.19: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.19: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.20: type = tuple_type (i32, i32) [template]
|
||||
// CHECK:STDOUT: %.21: type = tuple_type (type, type) [template]
|
||||
// CHECK:STDOUT: %.22: type = ptr_type %.20 [template]
|
||||
@@ -108,7 +108,7 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %int.make_type_32.loc18: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc18_14: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc18_14: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc18_9.1: type = value_of_initializer %int.make_type_32.loc18 [template = i32]
|
||||
// CHECK:STDOUT: %.loc18_9.2: type = converted %int.make_type_32.loc18, %.loc18_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc18_15: type = array_type %.loc18_14, i32 [template = constants.%.3]
|
||||
@@ -122,14 +122,14 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: %t1.var: ref %.9 = var t1
|
||||
// CHECK:STDOUT: %t1: ref %.9 = bind_name t1, %t1.var
|
||||
// CHECK:STDOUT: %int.make_type_32.loc28: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc28_14: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc28_14: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc28_9.1: type = value_of_initializer %int.make_type_32.loc28 [template = i32]
|
||||
// CHECK:STDOUT: %.loc28_9.2: type = converted %int.make_type_32.loc28, %.loc28_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc28_15: type = array_type %.loc28_14, i32 [template = constants.%.3]
|
||||
// CHECK:STDOUT: %b.var: ref %.3 = var b
|
||||
// CHECK:STDOUT: %b: ref %.3 = bind_name b, %b.var
|
||||
// CHECK:STDOUT: %int.make_type_32.loc34: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc34_14: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc34_14: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc34_9.1: type = value_of_initializer %int.make_type_32.loc34 [template = i32]
|
||||
// CHECK:STDOUT: %.loc34_9.2: type = converted %int.make_type_32.loc34, %.loc34_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc34_15: type = array_type %.loc34_14, i32 [template = constants.%.3]
|
||||
@@ -146,7 +146,7 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: %t2.var: ref %.20 = var t2
|
||||
// CHECK:STDOUT: %t2: ref %.20 = bind_name t2, %t2.var
|
||||
// CHECK:STDOUT: %int.make_type_32.loc40: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc40_14: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc40_14: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc40_9.1: type = value_of_initializer %int.make_type_32.loc40 [template = i32]
|
||||
// CHECK:STDOUT: %.loc40_9.2: type = converted %int.make_type_32.loc40, %.loc40_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc40_15: type = array_type %.loc40_14, i32 [template = constants.%.3]
|
||||
@@ -186,11 +186,11 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc18_20: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc18_20: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc18_23: String = string_literal "Hello" [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc18_32: String = string_literal "World" [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc18_39.1: %.9 = tuple_literal (%.loc18_20, %.loc18_23, %.loc18_32)
|
||||
// CHECK:STDOUT: %.loc18_39.2: i32 = int_literal 0 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc18_39.2: i32 = int_value 0 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc18_39.3: ref i32 = array_index file.%a.var, %.loc18_39.2
|
||||
// CHECK:STDOUT: %.loc18_39.4: init i32 = initialize_from %.loc18_20 to %.loc18_39.3 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %ImplicitAs.type.loc18: type = interface_type @ImplicitAs, @ImplicitAs(i32) [template = constants.%ImplicitAs.type.3]
|
||||
@@ -201,7 +201,7 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: %t1.ref: ref %.9 = name_ref t1, file.%t1
|
||||
// CHECK:STDOUT: %.loc28_19.1: ref i32 = tuple_access %t1.ref, element0
|
||||
// CHECK:STDOUT: %.loc28_19.2: i32 = bind_value %.loc28_19.1
|
||||
// CHECK:STDOUT: %.loc28_19.3: i32 = int_literal 0 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc28_19.3: i32 = int_value 0 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc28_19.4: ref i32 = array_index file.%b.var, %.loc28_19.3
|
||||
// CHECK:STDOUT: %.loc28_19.5: init i32 = initialize_from %.loc28_19.2 to %.loc28_19.4
|
||||
// CHECK:STDOUT: %.loc28_19.6: ref String = tuple_access %t1.ref, element1
|
||||
@@ -210,8 +210,8 @@ var d: [i32; 3] = t2;
|
||||
// CHECK:STDOUT: %Convert.ref.loc28: %.13 = name_ref Convert, %.loc28_19.7 [template = constants.%.14]
|
||||
// CHECK:STDOUT: %.loc28_19.8: i32 = converted %.loc28_19.6, <error> [template = <error>]
|
||||
// CHECK:STDOUT: assign file.%b.var, <error>
|
||||
// CHECK:STDOUT: %.loc34_20: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc34_23: i32 = int_literal 2 [template = constants.%.19]
|
||||
// CHECK:STDOUT: %.loc34_20: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc34_23: i32 = int_value 2 [template = constants.%.19]
|
||||
// CHECK:STDOUT: %.loc34_24: %.20 = tuple_literal (%.loc34_20, %.loc34_23)
|
||||
// CHECK:STDOUT: assign file.%c.var, <error>
|
||||
// CHECK:STDOUT: %t2.ref: ref %.20 = name_ref t2, file.%t2
|
||||
|
||||
+12
-12
@@ -22,17 +22,17 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [template]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %G.type: type = fn_type @G [template]
|
||||
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -61,7 +61,7 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: %return.param_patt: i32 = out_param_pattern %return.patt, runtime_param2
|
||||
// CHECK:STDOUT: } {
|
||||
// CHECK:STDOUT: %int.make_type_32.loc11_12: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_17: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_17: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32.loc11_12 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32.loc11_12, %.loc11_12.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3]
|
||||
@@ -105,19 +105,19 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: fn @G() -> i32 {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F]
|
||||
// CHECK:STDOUT: %.loc16_13: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_16: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_19: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_13: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_16: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_19: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_20.1: %.7 = tuple_literal (%.loc16_13, %.loc16_16, %.loc16_19)
|
||||
// CHECK:STDOUT: %.loc16_23: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_23: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.2: ref %.3 = temporary_storage
|
||||
// CHECK:STDOUT: %.loc16_20.3: i32 = int_literal 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc16_20.3: i32 = int_value 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc16_20.4: ref i32 = array_index %.loc16_20.2, %.loc16_20.3
|
||||
// CHECK:STDOUT: %.loc16_20.5: init i32 = initialize_from %.loc16_13 to %.loc16_20.4 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.6: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.6: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_20.7: ref i32 = array_index %.loc16_20.2, %.loc16_20.6
|
||||
// CHECK:STDOUT: %.loc16_20.8: init i32 = initialize_from %.loc16_16 to %.loc16_20.7 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_20.9: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_20.9: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_20.10: ref i32 = array_index %.loc16_20.2, %.loc16_20.9
|
||||
// CHECK:STDOUT: %.loc16_20.11: init i32 = initialize_from %.loc16_19 to %.loc16_20.10 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc16_20.12: init %.3 = array_init (%.loc16_20.5, %.loc16_20.8, %.loc16_20.11) to %.loc16_20.2 [template = constants.%array]
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@ fn G(T:! type) {
|
||||
// CHECK:STDOUT: %G.type: type = fn_type @G [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, %T [symbolic]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [symbolic]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value () [symbolic]
|
||||
@@ -60,7 +60,7 @@ fn G(T:! type) {
|
||||
// CHECK:STDOUT: fn(%T.param_patt: type) {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc11_6.1 [symbolic = %T.loc11_6.2 (constants.%T)]
|
||||
// CHECK:STDOUT: %.loc13_16: i32 = int_literal 0 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_16: i32 = int_value 0 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc13_17.1: type = array_type %.loc13_16, %T [symbolic = %.loc13_17.2 (constants.%.3)]
|
||||
// CHECK:STDOUT: %arr.var: ref @G.%.loc13_17.2 (%.3) = var arr
|
||||
// CHECK:STDOUT: %arr: ref @G.%.loc13_17.2 (%.3) = bind_name arr, %arr.var
|
||||
|
||||
+12
-12
@@ -17,13 +17,13 @@ var b: i32 = a[{.index = 2}.index];
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template]
|
||||
// CHECK:STDOUT: %.9: type = struct_type {.index: i32} [template]
|
||||
// CHECK:STDOUT: %struct: %.9 = struct_value (%.6) [template]
|
||||
@@ -46,7 +46,7 @@ var b: i32 = a[{.index = 2}.index];
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3]
|
||||
@@ -63,24 +63,24 @@ var b: i32 = a[{.index = 2}.index];
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_23: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_26: i32 = int_literal 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_23: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_26: i32 = int_value 3 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_27.1: %.7 = tuple_literal (%.loc11_20, %.loc11_23, %.loc11_26)
|
||||
// CHECK:STDOUT: %.loc11_27.2: i32 = int_literal 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_27.2: i32 = int_value 0 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_27.3: ref i32 = array_index file.%a.var, %.loc11_27.2
|
||||
// CHECK:STDOUT: %.loc11_27.4: init i32 = initialize_from %.loc11_20 to %.loc11_27.3 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_27.5: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_27.5: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_27.6: ref i32 = array_index file.%a.var, %.loc11_27.5
|
||||
// CHECK:STDOUT: %.loc11_27.7: init i32 = initialize_from %.loc11_23 to %.loc11_27.6 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_27.8: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_27.8: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_27.9: ref i32 = array_index file.%a.var, %.loc11_27.8
|
||||
// CHECK:STDOUT: %.loc11_27.10: init i32 = initialize_from %.loc11_26 to %.loc11_27.9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_27.11: init %.3 = array_init (%.loc11_27.4, %.loc11_27.7, %.loc11_27.10) to file.%a.var [template = constants.%array]
|
||||
// CHECK:STDOUT: %.loc11_28: init %.3 = converted %.loc11_27.1, %.loc11_27.11 [template = constants.%array]
|
||||
// CHECK:STDOUT: assign file.%a.var, %.loc11_28
|
||||
// CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a
|
||||
// CHECK:STDOUT: %.loc12_26: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc12_26: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc12_27.1: %.9 = struct_literal (%.loc12_26)
|
||||
// CHECK:STDOUT: %struct: %.9 = struct_value (%.loc12_26) [template = constants.%struct]
|
||||
// CHECK:STDOUT: %.loc12_27.2: %.9 = converted %.loc12_27.1, %struct [template = constants.%struct]
|
||||
|
||||
+29
-29
@@ -16,19 +16,19 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 9 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_value 9 [template]
|
||||
// CHECK:STDOUT: %.3: type = array_type %.2, i32 [template]
|
||||
// CHECK:STDOUT: %.4: type = ptr_type %.3 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_literal 2 [template]
|
||||
// CHECK:STDOUT: %.7: i32 = int_literal 3 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_literal 4 [template]
|
||||
// CHECK:STDOUT: %.9: i32 = int_literal 5 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_literal 6 [template]
|
||||
// CHECK:STDOUT: %.11: i32 = int_literal 7 [template]
|
||||
// CHECK:STDOUT: %.12: i32 = int_literal 8 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 1 [template]
|
||||
// CHECK:STDOUT: %.6: i32 = int_value 2 [template]
|
||||
// CHECK:STDOUT: %.7: i32 = int_value 3 [template]
|
||||
// CHECK:STDOUT: %.8: i32 = int_value 4 [template]
|
||||
// CHECK:STDOUT: %.9: i32 = int_value 5 [template]
|
||||
// CHECK:STDOUT: %.10: i32 = int_value 6 [template]
|
||||
// CHECK:STDOUT: %.11: i32 = int_value 7 [template]
|
||||
// CHECK:STDOUT: %.12: i32 = int_value 8 [template]
|
||||
// CHECK:STDOUT: %.13: type = tuple_type (i32, i32, i32, i32, i32, i32, i32, i32, i32) [template]
|
||||
// CHECK:STDOUT: %.14: i32 = int_literal 0 [template]
|
||||
// CHECK:STDOUT: %.14: i32 = int_value 0 [template]
|
||||
// CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.7, %.8, %.9, %.10, %.11, %.12, %.2) [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -48,7 +48,7 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core.import = import Core
|
||||
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_literal 9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_14: i32 = int_value 9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32, %.loc11_9.1 [template = i32]
|
||||
// CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3]
|
||||
@@ -60,41 +60,41 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_23: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_26: i32 = int_literal 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_29: i32 = int_literal 4 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_32: i32 = int_literal 5 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_35: i32 = int_literal 6 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_38: i32 = int_literal 7 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_41: i32 = int_literal 8 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc11_44: i32 = int_literal 9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_23: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_26: i32 = int_value 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_29: i32 = int_value 4 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_32: i32 = int_value 5 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_35: i32 = int_value 6 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_38: i32 = int_value 7 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_41: i32 = int_value 8 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc11_44: i32 = int_value 9 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_45.1: %.13 = tuple_literal (%.loc11_20, %.loc11_23, %.loc11_26, %.loc11_29, %.loc11_32, %.loc11_35, %.loc11_38, %.loc11_41, %.loc11_44)
|
||||
// CHECK:STDOUT: %.loc11_45.2: i32 = int_literal 0 [template = constants.%.14]
|
||||
// CHECK:STDOUT: %.loc11_45.2: i32 = int_value 0 [template = constants.%.14]
|
||||
// CHECK:STDOUT: %.loc11_45.3: ref i32 = array_index file.%a.var, %.loc11_45.2
|
||||
// CHECK:STDOUT: %.loc11_45.4: init i32 = initialize_from %.loc11_20 to %.loc11_45.3 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_45.5: i32 = int_literal 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_45.5: i32 = int_value 1 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc11_45.6: ref i32 = array_index file.%a.var, %.loc11_45.5
|
||||
// CHECK:STDOUT: %.loc11_45.7: init i32 = initialize_from %.loc11_23 to %.loc11_45.6 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_45.8: i32 = int_literal 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_45.8: i32 = int_value 2 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc11_45.9: ref i32 = array_index file.%a.var, %.loc11_45.8
|
||||
// CHECK:STDOUT: %.loc11_45.10: init i32 = initialize_from %.loc11_26 to %.loc11_45.9 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_45.11: i32 = int_literal 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_45.11: i32 = int_value 3 [template = constants.%.7]
|
||||
// CHECK:STDOUT: %.loc11_45.12: ref i32 = array_index file.%a.var, %.loc11_45.11
|
||||
// CHECK:STDOUT: %.loc11_45.13: init i32 = initialize_from %.loc11_29 to %.loc11_45.12 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_45.14: i32 = int_literal 4 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_45.14: i32 = int_value 4 [template = constants.%.8]
|
||||
// CHECK:STDOUT: %.loc11_45.15: ref i32 = array_index file.%a.var, %.loc11_45.14
|
||||
// CHECK:STDOUT: %.loc11_45.16: init i32 = initialize_from %.loc11_32 to %.loc11_45.15 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_45.17: i32 = int_literal 5 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_45.17: i32 = int_value 5 [template = constants.%.9]
|
||||
// CHECK:STDOUT: %.loc11_45.18: ref i32 = array_index file.%a.var, %.loc11_45.17
|
||||
// CHECK:STDOUT: %.loc11_45.19: init i32 = initialize_from %.loc11_35 to %.loc11_45.18 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_45.20: i32 = int_literal 6 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_45.20: i32 = int_value 6 [template = constants.%.10]
|
||||
// CHECK:STDOUT: %.loc11_45.21: ref i32 = array_index file.%a.var, %.loc11_45.20
|
||||
// CHECK:STDOUT: %.loc11_45.22: init i32 = initialize_from %.loc11_38 to %.loc11_45.21 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_45.23: i32 = int_literal 7 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_45.23: i32 = int_value 7 [template = constants.%.11]
|
||||
// CHECK:STDOUT: %.loc11_45.24: ref i32 = array_index file.%a.var, %.loc11_45.23
|
||||
// CHECK:STDOUT: %.loc11_45.25: init i32 = initialize_from %.loc11_41 to %.loc11_45.24 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc11_45.26: i32 = int_literal 8 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc11_45.26: i32 = int_value 8 [template = constants.%.12]
|
||||
// CHECK:STDOUT: %.loc11_45.27: ref i32 = array_index file.%a.var, %.loc11_45.26
|
||||
// CHECK:STDOUT: %.loc11_45.28: init i32 = initialize_from %.loc11_44 to %.loc11_45.27 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %.loc11_45.29: init %.3 = array_init (%.loc11_45.4, %.loc11_45.7, %.loc11_45.10, %.loc11_45.13, %.loc11_45.16, %.loc11_45.19, %.loc11_45.22, %.loc11_45.25, %.loc11_45.28) to file.%a.var [template = constants.%array]
|
||||
|
||||
Reference in New Issue
Block a user