|
|
@@ -121,17 +121,17 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
|
|
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
-// CHECK:STDOUT: %Int32: <type of Int32> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template]
|
|
|
-// CHECK:STDOUT: %Negate: <type of Negate> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.2: i32 = int_literal 123 [template]
|
|
|
// CHECK:STDOUT: %.3: i32 = int_literal -123 [template]
|
|
|
// CHECK:STDOUT: %.4: type = array_type %.2, i32 [template]
|
|
|
-// CHECK:STDOUT: %.5: type = ptr_type [i32; 123] [template]
|
|
|
+// CHECK:STDOUT: %.5: type = ptr_type %.4 [template]
|
|
|
// CHECK:STDOUT: %.6: i32 = int_literal 1 [template]
|
|
|
// CHECK:STDOUT: %.7: i32 = int_literal -1 [template]
|
|
|
// CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template]
|
|
|
-// CHECK:STDOUT: %RuntimeCall: <type of RuntimeCall> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -142,9 +142,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: .RuntimeCall = %RuntimeCall.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %import_ref.1: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.2: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %Negate.decl: <type of Negate> = fn_decl @Negate [template = constants.%Negate] {
|
|
|
+// CHECK:STDOUT: %import_ref.1: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.2: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc2_14: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc2_14.1: type = value_of_initializer %int.make_type_32.loc2_14 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc2_14.2: type = converted %int.make_type_32.loc2_14, %.loc2_14.1 [template = i32]
|
|
|
@@ -155,10 +155,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc2_22.2: type = converted %int.make_type_32.loc2_22, %.loc2_22.1 [template = i32]
|
|
|
// CHECK:STDOUT: @Negate.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.3: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.3: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc4_16: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc4_23: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc4_16: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc4_23: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
// CHECK:STDOUT: %.loc4_30: i32 = int_literal 123 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %int.snegate.loc4_29: init i32 = call %Negate.ref.loc4_23(%.loc4_30) [template = constants.%.3]
|
|
|
// CHECK:STDOUT: %.loc4_22.1: i32 = value_of_initializer %int.snegate.loc4_29 [template = constants.%.3]
|
|
|
@@ -167,32 +167,32 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc4_35: type = array_type %int.snegate.loc4_22, i32 [template = constants.%.4]
|
|
|
-// CHECK:STDOUT: %arr.var: ref [i32; 123] = var arr
|
|
|
-// CHECK:STDOUT: %arr: ref [i32; 123] = bind_name arr, %arr.var
|
|
|
-// CHECK:STDOUT: %import_ref.4: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %arr.var: ref %.4 = var arr
|
|
|
+// CHECK:STDOUT: %arr: ref %.4 = bind_name arr, %arr.var
|
|
|
+// CHECK:STDOUT: %import_ref.4: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_18: i32 = int_literal 123 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_21: type = array_type %.loc5_18, i32 [template = constants.%.4]
|
|
|
-// CHECK:STDOUT: %.loc5_22: type = ptr_type [i32; 123] [template = constants.%.5]
|
|
|
-// CHECK:STDOUT: %arr.ref: ref [i32; 123] = name_ref arr, %arr
|
|
|
-// CHECK:STDOUT: %.loc5_26: [i32; 123]* = addr_of %arr.ref
|
|
|
-// CHECK:STDOUT: %arr_p: [i32; 123]* = bind_name arr_p, %.loc5_26
|
|
|
-// CHECK:STDOUT: %import_ref.5: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %.loc5_22: type = ptr_type %.4 [template = constants.%.5]
|
|
|
+// CHECK:STDOUT: %arr.ref: ref %.4 = name_ref arr, %arr
|
|
|
+// CHECK:STDOUT: %.loc5_26: %.5 = addr_of %arr.ref
|
|
|
+// CHECK:STDOUT: %arr_p: %.5 = bind_name arr_p, %.loc5_26
|
|
|
+// CHECK:STDOUT: %import_ref.5: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc7: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc7_8.1: type = value_of_initializer %int.make_type_32.loc7 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc7_8.2: type = converted %int.make_type_32.loc7, %.loc7_8.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc7: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc7: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
// CHECK:STDOUT: %.loc7_21: i32 = int_literal 1 [template = constants.%.6]
|
|
|
// CHECK:STDOUT: %int.snegate.loc7: init i32 = call %Negate.ref.loc7(%.loc7_21) [template = constants.%.7]
|
|
|
// CHECK:STDOUT: %.loc7_23.1: i32 = value_of_initializer %int.snegate.loc7 [template = constants.%.7]
|
|
|
// CHECK:STDOUT: %.loc7_23.2: i32 = converted %int.snegate.loc7, %.loc7_23.1 [template = constants.%.7]
|
|
|
// CHECK:STDOUT: %n: i32 = bind_name n, %.loc7_23.2
|
|
|
-// CHECK:STDOUT: %import_ref.6: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.7: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.8: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %RuntimeCall.decl: <type of RuntimeCall> = fn_decl @RuntimeCall [template = constants.%RuntimeCall] {
|
|
|
+// CHECK:STDOUT: %import_ref.6: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.7: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.8: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc9_19: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc9_19.1: type = value_of_initializer %int.make_type_32.loc9_19 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc9_19.2: type = converted %int.make_type_32.loc9_19, %.loc9_19.1 [template = i32]
|
|
|
@@ -216,7 +216,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @RuntimeCall(%a: i32, %b: i32) -> i32 {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %Negate.ref: <type of Negate> = name_ref Negate, file.%Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate]
|
|
|
// CHECK:STDOUT: %a.ref: i32 = name_ref a, %a
|
|
|
// CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%a.ref)
|
|
|
// CHECK:STDOUT: %.loc10_19.1: i32 = value_of_initializer %int.snegate
|
|
|
@@ -229,25 +229,25 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
|
|
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
-// CHECK:STDOUT: %Int32: <type of Int32> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %TooFew.type: type = fn_type @TooFew [template]
|
|
|
-// CHECK:STDOUT: %TooFew: <type of TooFew> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %TooFew: %TooFew.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %TooMany.type: type = fn_type @TooMany [template]
|
|
|
-// CHECK:STDOUT: %TooMany: <type of TooMany> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %TooMany: %TooMany.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
|
|
|
-// CHECK:STDOUT: %Bool: <type of Bool> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %BadReturnType.type: type = fn_type @BadReturnType [template]
|
|
|
-// CHECK:STDOUT: %BadReturnType: <type of BadReturnType> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %BadReturnType: %BadReturnType.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %JustRight.type: type = fn_type @JustRight [template]
|
|
|
-// CHECK:STDOUT: %JustRight: <type of JustRight> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %JustRight: %JustRight.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.2: i32 = int_literal 1 [template]
|
|
|
// CHECK:STDOUT: %.3: i32 = int_literal 2 [template]
|
|
|
// CHECK:STDOUT: %RuntimeCallTooFew.type: type = fn_type @RuntimeCallTooFew [template]
|
|
|
-// CHECK:STDOUT: %RuntimeCallTooFew: <type of RuntimeCallTooFew> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %RuntimeCallTooFew: %RuntimeCallTooFew.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %RuntimeCallTooMany.type: type = fn_type @RuntimeCallTooMany [template]
|
|
|
-// CHECK:STDOUT: %RuntimeCallTooMany: <type of RuntimeCallTooMany> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %RuntimeCallTooMany: %RuntimeCallTooMany.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %RuntimeCallBadReturnType.type: type = fn_type @RuntimeCallBadReturnType [template]
|
|
|
-// CHECK:STDOUT: %RuntimeCallBadReturnType: <type of RuntimeCallBadReturnType> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %RuntimeCallBadReturnType: %RuntimeCallBadReturnType.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -266,17 +266,17 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: .RuntimeCallBadReturnType = %RuntimeCallBadReturnType.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %import_ref.1: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %TooFew.decl: <type of TooFew> = fn_decl @TooFew [template = constants.%TooFew] {
|
|
|
+// CHECK:STDOUT: %import_ref.1: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %TooFew.decl: %TooFew.type = fn_decl @TooFew [template = constants.%TooFew] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc8_16.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc8_16.2: type = converted %int.make_type_32.loc8, %.loc8_16.1 [template = i32]
|
|
|
// CHECK:STDOUT: @TooFew.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.2: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.3: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.4: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %TooMany.decl: <type of TooMany> = fn_decl @TooMany [template = constants.%TooMany] {
|
|
|
+// CHECK:STDOUT: %import_ref.2: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.3: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.4: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc13_15: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc13_15.1: type = value_of_initializer %int.make_type_32.loc13_15 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc13_15.2: type = converted %int.make_type_32.loc13_15, %.loc13_15.1 [template = i32]
|
|
|
@@ -292,9 +292,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc13_31.2: type = converted %int.make_type_32.loc13_31, %.loc13_31.1 [template = i32]
|
|
|
// CHECK:STDOUT: @TooMany.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.5: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.6: <type of Bool> = import_ref ir7, inst+2, loaded [template = constants.%Bool]
|
|
|
-// CHECK:STDOUT: %BadReturnType.decl: <type of BadReturnType> = fn_decl @BadReturnType [template = constants.%BadReturnType] {
|
|
|
+// CHECK:STDOUT: %import_ref.5: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.6: %Bool.type = import_ref ir7, inst+2, loaded [template = constants.%Bool]
|
|
|
+// CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc18: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc18_21.1: type = value_of_initializer %int.make_type_32.loc18 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc18_21.2: type = converted %int.make_type_32.loc18, %.loc18_21.1 [template = i32]
|
|
|
@@ -305,9 +305,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc18_29.2: type = converted %bool.make_type.loc18, %.loc18_29.1 [template = bool]
|
|
|
// CHECK:STDOUT: @BadReturnType.%return: ref bool = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.7: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.8: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %JustRight.decl: <type of JustRight> = fn_decl @JustRight [template = constants.%JustRight] {
|
|
|
+// CHECK:STDOUT: %import_ref.7: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.8: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc19_17: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc19_17.1: type = value_of_initializer %int.make_type_32.loc19_17 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc19_17.2: type = converted %int.make_type_32.loc19_17, %.loc19_17.1 [template = i32]
|
|
|
@@ -318,30 +318,30 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc19_25.2: type = converted %int.make_type_32.loc19_25, %.loc19_25.1 [template = i32]
|
|
|
// CHECK:STDOUT: @JustRight.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.9: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.9: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc25: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %TooFew.ref: <type of TooFew> = name_ref TooFew, %TooFew.decl [template = constants.%TooFew]
|
|
|
+// CHECK:STDOUT: %TooFew.ref: %TooFew.type = name_ref TooFew, %TooFew.decl [template = constants.%TooFew]
|
|
|
// CHECK:STDOUT: %TooFew.call: init i32 = call %TooFew.ref()
|
|
|
// CHECK:STDOUT: %too_few.var: ref <error> = var too_few
|
|
|
// CHECK:STDOUT: %too_few: ref <error> = bind_name too_few, %too_few.var
|
|
|
-// CHECK:STDOUT: %import_ref.10: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.10: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc30: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %TooMany.ref: <type of TooMany> = name_ref TooMany, %TooMany.decl [template = constants.%TooMany]
|
|
|
+// CHECK:STDOUT: %TooMany.ref: %TooMany.type = name_ref TooMany, %TooMany.decl [template = constants.%TooMany]
|
|
|
// CHECK:STDOUT: %.loc30_29: i32 = int_literal 1 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %.loc30_32: i32 = int_literal 2 [template = constants.%.3]
|
|
|
// CHECK:STDOUT: %TooMany.call: init i32 = call %TooMany.ref(%.loc30_29, %.loc30_32)
|
|
|
// CHECK:STDOUT: %too_many.var: ref <error> = var too_many
|
|
|
// CHECK:STDOUT: %too_many: ref <error> = bind_name too_many, %too_many.var
|
|
|
-// CHECK:STDOUT: %import_ref.11: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.11: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc35: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %BadReturnType.ref: <type of BadReturnType> = name_ref BadReturnType, %BadReturnType.decl [template = constants.%BadReturnType]
|
|
|
+// CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = name_ref BadReturnType, %BadReturnType.decl [template = constants.%BadReturnType]
|
|
|
// CHECK:STDOUT: %.loc35: i32 = int_literal 1 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %BadReturnType.call: init bool = call %BadReturnType.ref(%.loc35)
|
|
|
// CHECK:STDOUT: %bad_return_type.var: ref <error> = var bad_return_type
|
|
|
// CHECK:STDOUT: %bad_return_type: ref <error> = bind_name bad_return_type, %bad_return_type.var
|
|
|
-// CHECK:STDOUT: %import_ref.12: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.12: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc44: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %JustRight.ref: <type of JustRight> = name_ref JustRight, %JustRight.decl [template = constants.%JustRight]
|
|
|
+// CHECK:STDOUT: %JustRight.ref: %JustRight.type = name_ref JustRight, %JustRight.decl [template = constants.%JustRight]
|
|
|
// CHECK:STDOUT: %.loc44_31: i32 = int_literal 1 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %.loc44_34: i32 = int_literal 2 [template = constants.%.3]
|
|
|
// CHECK:STDOUT: %int.snegate: init i32 = call %JustRight.ref(<invalid>) [template = <error>]
|
|
|
@@ -350,9 +350,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc44_36: type = array_type %int.snegate, i32 [template = <error>]
|
|
|
// CHECK:STDOUT: %bad_call.var: ref <error> = var bad_call
|
|
|
// CHECK:STDOUT: %bad_call: ref <error> = bind_name bad_call, %bad_call.var
|
|
|
-// CHECK:STDOUT: %import_ref.13: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.14: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %RuntimeCallTooFew.decl: <type of RuntimeCallTooFew> = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] {
|
|
|
+// CHECK:STDOUT: %import_ref.13: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.14: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc46_25: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc46_25.1: type = value_of_initializer %int.make_type_32.loc46_25 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc46_25.2: type = converted %int.make_type_32.loc46_25, %.loc46_25.1 [template = i32]
|
|
|
@@ -363,11 +363,11 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc46_33.2: type = converted %int.make_type_32.loc46_33, %.loc46_33.1 [template = i32]
|
|
|
// CHECK:STDOUT: @RuntimeCallTooFew.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.15: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.16: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.17: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.18: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %RuntimeCallTooMany.decl: <type of RuntimeCallTooMany> = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] {
|
|
|
+// CHECK:STDOUT: %import_ref.15: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.16: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.17: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.18: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_26: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_26.1: type = value_of_initializer %int.make_type_32.loc57_26 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_26.2: type = converted %int.make_type_32.loc57_26, %.loc57_26.1 [template = i32]
|
|
|
@@ -388,10 +388,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc57_50.2: type = converted %int.make_type_32.loc57_50, %.loc57_50.1 [template = i32]
|
|
|
// CHECK:STDOUT: @RuntimeCallTooMany.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.19: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.20: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.21: <type of Bool> = import_ref ir7, inst+2, loaded [template = constants.%Bool]
|
|
|
-// CHECK:STDOUT: %RuntimeCallBadReturnType.decl: <type of RuntimeCallBadReturnType> = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] {
|
|
|
+// CHECK:STDOUT: %import_ref.19: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.20: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.21: %Bool.type = import_ref ir7, inst+2, loaded [template = constants.%Bool]
|
|
|
+// CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc68_32: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc68_32.1: type = value_of_initializer %int.make_type_32.loc68_32 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc68_32.2: type = converted %int.make_type_32.loc68_32, %.loc68_32.1 [template = i32]
|
|
|
@@ -423,7 +423,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @RuntimeCallTooFew(%a: i32) -> i32 {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %TooFew.ref: <type of TooFew> = name_ref TooFew, file.%TooFew.decl [template = constants.%TooFew]
|
|
|
+// CHECK:STDOUT: %TooFew.ref: %TooFew.type = name_ref TooFew, file.%TooFew.decl [template = constants.%TooFew]
|
|
|
// CHECK:STDOUT: %a.ref: i32 = name_ref a, %a
|
|
|
// CHECK:STDOUT: %TooFew.call: init i32 = call %TooFew.ref(<invalid>) [template = <error>]
|
|
|
// CHECK:STDOUT: %.loc54_19.1: i32 = value_of_initializer %TooFew.call [template = <error>]
|
|
|
@@ -433,7 +433,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @RuntimeCallTooMany(%a: i32, %b: i32, %c: i32) -> i32 {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %TooMany.ref: <type of TooMany> = name_ref TooMany, file.%TooMany.decl [template = constants.%TooMany]
|
|
|
+// CHECK:STDOUT: %TooMany.ref: %TooMany.type = name_ref TooMany, file.%TooMany.decl [template = constants.%TooMany]
|
|
|
// CHECK:STDOUT: %a.ref: i32 = name_ref a, %a
|
|
|
// CHECK:STDOUT: %b.ref: i32 = name_ref b, %b
|
|
|
// CHECK:STDOUT: %c.ref: i32 = name_ref c, %c
|
|
|
@@ -445,7 +445,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @RuntimeCallBadReturnType(%a: i32, %b: i32) -> bool {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %BadReturnType.ref: <type of BadReturnType> = name_ref BadReturnType, file.%BadReturnType.decl [template = constants.%BadReturnType]
|
|
|
+// CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = name_ref BadReturnType, file.%BadReturnType.decl [template = constants.%BadReturnType]
|
|
|
// CHECK:STDOUT: %a.ref: i32 = name_ref a, %a
|
|
|
// CHECK:STDOUT: %b.ref: i32 = name_ref b, %b
|
|
|
// CHECK:STDOUT: %BadReturnType.call: init bool = call %BadReturnType.ref(<invalid>) [template = <error>]
|
|
|
@@ -459,11 +459,11 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
|
|
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
-// CHECK:STDOUT: %Int32: <type of Int32> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template]
|
|
|
-// CHECK:STDOUT: %Negate: <type of Negate> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template]
|
|
|
-// CHECK:STDOUT: %Sub: <type of Sub> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template]
|
|
|
// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template]
|
|
|
// CHECK:STDOUT: %.4: i32 = int_literal 1 [template]
|
|
|
@@ -477,9 +477,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: .Sub = %Sub.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %import_ref.1: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.2: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %Negate.decl: <type of Negate> = fn_decl @Negate [template = constants.%Negate] {
|
|
|
+// CHECK:STDOUT: %import_ref.1: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.2: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc4_14: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc4_14.1: type = value_of_initializer %int.make_type_32.loc4_14 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc4_14.2: type = converted %int.make_type_32.loc4_14, %.loc4_14.1 [template = i32]
|
|
|
@@ -490,10 +490,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc4_22.2: type = converted %int.make_type_32.loc4_22, %.loc4_22.1 [template = i32]
|
|
|
// CHECK:STDOUT: @Negate.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.3: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.4: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %import_ref.5: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: %Sub.decl: <type of Sub> = fn_decl @Sub [template = constants.%Sub] {
|
|
|
+// CHECK:STDOUT: %import_ref.3: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.4: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.5: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc5_11: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_11.1: type = value_of_initializer %int.make_type_32.loc5_11 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_11.2: type = converted %int.make_type_32.loc5_11, %.loc5_11.1 [template = i32]
|
|
|
@@ -509,12 +509,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc5_27.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32]
|
|
|
// CHECK:STDOUT: @Sub.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.6: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.6: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc8_8.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc8_8.2: type = converted %int.make_type_32.loc8, %.loc8_8.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc8_14: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc8_21: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc8_14: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc8_21: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
// CHECK:STDOUT: %.loc8_28: i32 = int_literal 2147483647 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %int.snegate.loc8_27: init i32 = call %Negate.ref.loc8_21(%.loc8_28) [template = constants.%.3]
|
|
|
// CHECK:STDOUT: %.loc8_20.1: i32 = value_of_initializer %int.snegate.loc8_27 [template = constants.%.3]
|
|
|
@@ -523,13 +523,13 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc8_40.1: i32 = value_of_initializer %int.snegate.loc8_20 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %.loc8_40.2: i32 = converted %int.snegate.loc8_20, %.loc8_40.1 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %a.loc8: i32 = bind_name a, %.loc8_40.2
|
|
|
-// CHECK:STDOUT: %import_ref.7: <type of Int32> = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
+// CHECK:STDOUT: %import_ref.7: %Int32.type = import_ref ir3, inst+3, loaded [template = constants.%Int32]
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc14: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc14_8.1: type = value_of_initializer %int.make_type_32.loc14 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc14_8.2: type = converted %int.make_type_32.loc14, %.loc14_8.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc14_14: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
-// CHECK:STDOUT: %Sub.ref: <type of Sub> = name_ref Sub, %Sub.decl [template = constants.%Sub]
|
|
|
-// CHECK:STDOUT: %Negate.ref.loc14_25: <type of Negate> = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc14_14: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
+// CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, %Sub.decl [template = constants.%Sub]
|
|
|
+// CHECK:STDOUT: %Negate.ref.loc14_25: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate]
|
|
|
// CHECK:STDOUT: %.loc14_32: i32 = int_literal 2147483647 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %int.snegate.loc14_31: init i32 = call %Negate.ref.loc14_25(%.loc14_32) [template = constants.%.3]
|
|
|
// CHECK:STDOUT: %.loc14_45: i32 = int_literal 1 [template = constants.%.4]
|