|
@@ -161,25 +161,26 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %Core.import = import Core
|
|
// CHECK:STDOUT: %Core.import = import Core
|
|
|
// CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] {
|
|
// CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc2_14: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc2_14.2: type = converted %int.make_type_32.loc2_14, %.loc2_14.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc2_22: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc2_22: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc2_22.1: type = value_of_initializer %int.make_type_32.loc2_22 [template = i32]
|
|
// CHECK:STDOUT: %.loc2_22.1: type = value_of_initializer %int.make_type_32.loc2_22 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc2_22.2: type = converted %int.make_type_32.loc2_22, %.loc2_22.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc2_22.2: type = converted %int.make_type_32.loc2_22, %.loc2_22.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %Negate.ref.loc4_16: %Negate.type = 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: %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: %.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: %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]
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_22.2: i32 = converted %int.snegate.loc4_29, %.loc4_22.1 [template = constants.%.3]
|
|
|
|
|
-// CHECK:STDOUT: %int.snegate.loc4_22: init i32 = call %Negate.ref.loc4_16(%.loc4_22.2) [template = constants.%.2]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %.loc4_29.1: i32 = value_of_initializer %int.snegate.loc4_29 [template = constants.%.3]
|
|
|
|
|
+// CHECK:STDOUT: %.loc4_29.2: i32 = converted %int.snegate.loc4_29, %.loc4_29.1 [template = constants.%.3]
|
|
|
|
|
+// CHECK:STDOUT: %int.snegate.loc4_22: init i32 = call %Negate.ref.loc4_16(%.loc4_29.2) [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32]
|
|
// 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_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: %.loc4_35: type = array_type %int.snegate.loc4_22, i32 [template = constants.%.4]
|
|
@@ -196,30 +197,32 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc7_8.2: type = converted %int.make_type_32.loc7, %.loc7_8.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc7_8.2: type = converted %int.make_type_32.loc7, %.loc7_8.1 [template = i32]
|
|
|
// CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] {
|
|
// CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
|
|
|
+// CHECK:STDOUT: %b.param_patt: i32 = param_pattern %b.patt, runtime_param1
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc9_19: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc9_19.2: type = converted %int.make_type_32.loc9_19, %.loc9_19.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc9_27: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc9_27: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc9_27.1: type = value_of_initializer %int.make_type_32.loc9_27 [template = i32]
|
|
// CHECK:STDOUT: %.loc9_27.1: type = value_of_initializer %int.make_type_32.loc9_27 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc9_27.2: type = converted %int.make_type_32.loc9_27, %.loc9_27.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc9_27.2: type = converted %int.make_type_32.loc9_27, %.loc9_27.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.param: i32 = param b, runtime_param1
|
|
|
|
|
-// CHECK:STDOUT: %b: i32 = bind_name b, %b.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc9_35: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc9_35: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc9_35.1: type = value_of_initializer %int.make_type_32.loc9_35 [template = i32]
|
|
// CHECK:STDOUT: %.loc9_35.1: type = value_of_initializer %int.make_type_32.loc9_35 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc9_35.2: type = converted %int.make_type_32.loc9_35, %.loc9_35.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc9_35.2: type = converted %int.make_type_32.loc9_35, %.loc9_35.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param.loc9_16: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc9_16
|
|
|
|
|
+// CHECK:STDOUT: %param.loc9_24: i32 = param runtime_param1
|
|
|
|
|
+// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc9_24
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @Int32() -> type = "int.make_type_32";
|
|
// CHECK:STDOUT: fn @Int32() -> type = "int.make_type_32";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @Negate(%a: i32) -> i32 = "int.snegate";
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @Negate(%a.param_patt: i32) -> i32 = "int.snegate";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @RuntimeCall(%a: i32, %b: i32) -> i32 {
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @RuntimeCall(%a.param_patt: i32, %b.param_patt: i32) -> i32 {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %Negate.ref: %Negate.type = 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: %a.ref: i32 = name_ref a, %a
|
|
@@ -310,48 +313,52 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] {
|
|
// CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
|
|
|
+// CHECK:STDOUT: %b.param_patt: i32 = param_pattern %b.patt, runtime_param1
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc13_15: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc13_15.2: type = converted %int.make_type_32.loc13_15, %.loc13_15.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc13_23: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc13_23: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc13_23.1: type = value_of_initializer %int.make_type_32.loc13_23 [template = i32]
|
|
// CHECK:STDOUT: %.loc13_23.1: type = value_of_initializer %int.make_type_32.loc13_23 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc13_23.2: type = converted %int.make_type_32.loc13_23, %.loc13_23.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc13_23.2: type = converted %int.make_type_32.loc13_23, %.loc13_23.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.param: i32 = param b, runtime_param1
|
|
|
|
|
-// CHECK:STDOUT: %b: i32 = bind_name b, %b.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc13_31: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc13_31: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc13_31.1: type = value_of_initializer %int.make_type_32.loc13_31 [template = i32]
|
|
// CHECK:STDOUT: %.loc13_31.1: type = value_of_initializer %int.make_type_32.loc13_31 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc13_31.2: type = converted %int.make_type_32.loc13_31, %.loc13_31.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc13_31.2: type = converted %int.make_type_32.loc13_31, %.loc13_31.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param.loc13_12: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_12
|
|
|
|
|
+// CHECK:STDOUT: %param.loc13_20: i32 = param runtime_param1
|
|
|
|
|
+// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_20
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] {
|
|
// CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc18_21.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
|
// CHECK:STDOUT: %.loc18_21.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc18_21.2: type = converted %int.make_type_32, %.loc18_21.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc18_21.2: type = converted %int.make_type_32, %.loc18_21.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
|
|
// CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
|
|
|
// CHECK:STDOUT: %.loc18_29.1: type = value_of_initializer %bool.make_type [template = bool]
|
|
// CHECK:STDOUT: %.loc18_29.1: type = value_of_initializer %bool.make_type [template = bool]
|
|
|
// CHECK:STDOUT: %.loc18_29.2: type = converted %bool.make_type, %.loc18_29.1 [template = bool]
|
|
// CHECK:STDOUT: %.loc18_29.2: type = converted %bool.make_type, %.loc18_29.1 [template = bool]
|
|
|
// CHECK:STDOUT: %return: ref bool = var <return slot>
|
|
// CHECK:STDOUT: %return: ref bool = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] {
|
|
// CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc19_17: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc19_17.2: type = converted %int.make_type_32.loc19_17, %.loc19_17.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc19_25: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc19_25: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc19_25.1: type = value_of_initializer %int.make_type_32.loc19_25 [template = i32]
|
|
// CHECK:STDOUT: %.loc19_25.1: type = value_of_initializer %int.make_type_32.loc19_25 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc19_25.2: type = converted %int.make_type_32.loc19_25, %.loc19_25.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc19_25.2: type = converted %int.make_type_32.loc19_25, %.loc19_25.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc25: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc25: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %TooFew.ref: %TooFew.type = name_ref TooFew, %TooFew.decl [template = constants.%TooFew]
|
|
// CHECK:STDOUT: %TooFew.ref: %TooFew.type = name_ref TooFew, %TooFew.decl [template = constants.%TooFew]
|
|
@@ -382,60 +389,66 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %bad_call: ref <error> = bind_name bad_call, %bad_call.var
|
|
// CHECK:STDOUT: %bad_call: ref <error> = bind_name bad_call, %bad_call.var
|
|
|
// CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] {
|
|
// CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc46_25: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc46_25.2: type = converted %int.make_type_32.loc46_25, %.loc46_25.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc46_33: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc46_33: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc46_33.1: type = value_of_initializer %int.make_type_32.loc46_33 [template = i32]
|
|
// CHECK:STDOUT: %.loc46_33.1: type = value_of_initializer %int.make_type_32.loc46_33 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc46_33.2: type = converted %int.make_type_32.loc46_33, %.loc46_33.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc46_33.2: type = converted %int.make_type_32.loc46_33, %.loc46_33.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] {
|
|
// CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
|
|
|
+// CHECK:STDOUT: %b.param_patt: i32 = param_pattern %b.patt, runtime_param1
|
|
|
// CHECK:STDOUT: %c.patt: i32 = binding_pattern c
|
|
// CHECK:STDOUT: %c.patt: i32 = binding_pattern c
|
|
|
|
|
+// CHECK:STDOUT: %c.param_patt: i32 = param_pattern %c.patt, runtime_param2
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_26: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc57_26.2: type = converted %int.make_type_32.loc57_26, %.loc57_26.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_34: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_34: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_34.1: type = value_of_initializer %int.make_type_32.loc57_34 [template = i32]
|
|
// CHECK:STDOUT: %.loc57_34.1: type = value_of_initializer %int.make_type_32.loc57_34 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_34.2: type = converted %int.make_type_32.loc57_34, %.loc57_34.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc57_34.2: type = converted %int.make_type_32.loc57_34, %.loc57_34.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.param: i32 = param b, runtime_param1
|
|
|
|
|
-// CHECK:STDOUT: %b: i32 = bind_name b, %b.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_42: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_42: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_42.1: type = value_of_initializer %int.make_type_32.loc57_42 [template = i32]
|
|
// CHECK:STDOUT: %.loc57_42.1: type = value_of_initializer %int.make_type_32.loc57_42 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_42.2: type = converted %int.make_type_32.loc57_42, %.loc57_42.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc57_42.2: type = converted %int.make_type_32.loc57_42, %.loc57_42.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %c.param: i32 = param c, runtime_param2
|
|
|
|
|
-// CHECK:STDOUT: %c: i32 = bind_name c, %c.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_50: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc57_50: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_50.1: type = value_of_initializer %int.make_type_32.loc57_50 [template = i32]
|
|
// CHECK:STDOUT: %.loc57_50.1: type = value_of_initializer %int.make_type_32.loc57_50 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc57_50.2: type = converted %int.make_type_32.loc57_50, %.loc57_50.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc57_50.2: type = converted %int.make_type_32.loc57_50, %.loc57_50.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param.loc57_23: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc57_23
|
|
|
|
|
+// CHECK:STDOUT: %param.loc57_31: i32 = param runtime_param1
|
|
|
|
|
+// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc57_31
|
|
|
|
|
+// CHECK:STDOUT: %param.loc57_39: i32 = param runtime_param2
|
|
|
|
|
+// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc57_39
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] {
|
|
// CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
|
|
|
+// CHECK:STDOUT: %b.param_patt: i32 = param_pattern %b.patt, runtime_param1
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc68_32: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc68_32.2: type = converted %int.make_type_32.loc68_32, %.loc68_32.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc68_40: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc68_40: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc68_40.1: type = value_of_initializer %int.make_type_32.loc68_40 [template = i32]
|
|
// CHECK:STDOUT: %.loc68_40.1: type = value_of_initializer %int.make_type_32.loc68_40 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc68_40.2: type = converted %int.make_type_32.loc68_40, %.loc68_40.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc68_40.2: type = converted %int.make_type_32.loc68_40, %.loc68_40.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.param: i32 = param b, runtime_param1
|
|
|
|
|
-// CHECK:STDOUT: %b: i32 = bind_name b, %b.param
|
|
|
|
|
// CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
|
|
// CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
|
|
|
// CHECK:STDOUT: %.loc68_48.1: type = value_of_initializer %bool.make_type [template = bool]
|
|
// CHECK:STDOUT: %.loc68_48.1: type = value_of_initializer %bool.make_type [template = bool]
|
|
|
// CHECK:STDOUT: %.loc68_48.2: type = converted %bool.make_type, %.loc68_48.1 [template = bool]
|
|
// CHECK:STDOUT: %.loc68_48.2: type = converted %bool.make_type, %.loc68_48.1 [template = bool]
|
|
|
// CHECK:STDOUT: %return: ref bool = var <return slot>
|
|
// CHECK:STDOUT: %return: ref bool = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param.loc68_29: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc68_29
|
|
|
|
|
+// CHECK:STDOUT: %param.loc68_37: i32 = param runtime_param1
|
|
|
|
|
+// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc68_37
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -443,22 +456,22 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @TooFew() -> i32;
|
|
// CHECK:STDOUT: fn @TooFew() -> i32;
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @TooMany(%a: i32, %b: i32) -> i32;
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @TooMany(%a.param_patt: i32, %b.param_patt: i32) -> i32;
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @Bool() -> type = "bool.make_type";
|
|
// CHECK:STDOUT: fn @Bool() -> type = "bool.make_type";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @BadReturnType(%a: i32) -> bool;
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @BadReturnType(%a.param_patt: i32) -> bool;
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @JustRight(%a: i32) -> i32 = "int.snegate";
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @JustRight(%a.param_patt: i32) -> i32 = "int.snegate";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @RuntimeCallTooFew(%a: i32) -> i32 {
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @RuntimeCallTooFew(%a.param_patt: i32) -> i32 {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %TooFew.ref: %TooFew.type = 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: %a.ref: i32 = name_ref a, %a
|
|
|
// CHECK:STDOUT: return <error>
|
|
// CHECK:STDOUT: return <error>
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @RuntimeCallTooMany(%a: i32, %b: i32, %c: i32) -> i32 {
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @RuntimeCallTooMany(%a.param_patt: i32, %b.param_patt: i32, %c.param_patt: i32) -> i32 {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %TooMany.ref: %TooMany.type = 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: %a.ref: i32 = name_ref a, %a
|
|
@@ -467,7 +480,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: return <error>
|
|
// CHECK:STDOUT: return <error>
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @RuntimeCallBadReturnType(%a: i32, %b: i32) -> bool {
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @RuntimeCallBadReturnType(%a.param_patt: i32, %b.param_patt: i32) -> bool {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = 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: %a.ref: i32 = name_ref a, %a
|
|
@@ -517,35 +530,38 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %Core.import = import Core
|
|
// CHECK:STDOUT: %Core.import = import Core
|
|
|
// CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] {
|
|
// CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc4_14: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc4_14.2: type = converted %int.make_type_32.loc4_14, %.loc4_14.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc4_22: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc4_22: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc4_22.1: type = value_of_initializer %int.make_type_32.loc4_22 [template = i32]
|
|
// CHECK:STDOUT: %.loc4_22.1: type = value_of_initializer %int.make_type_32.loc4_22 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc4_22.2: type = converted %int.make_type_32.loc4_22, %.loc4_22.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc4_22.2: type = converted %int.make_type_32.loc4_22, %.loc4_22.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] {
|
|
// CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] {
|
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
// CHECK:STDOUT: %a.patt: i32 = binding_pattern a
|
|
|
|
|
+// CHECK:STDOUT: %a.param_patt: i32 = param_pattern %a.patt, runtime_param0
|
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
// CHECK:STDOUT: %b.patt: i32 = binding_pattern b
|
|
|
|
|
+// CHECK:STDOUT: %b.param_patt: i32 = param_pattern %b.patt, runtime_param1
|
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: } {
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc5_11: init type = call constants.%Int32() [template = i32]
|
|
// 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.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]
|
|
// CHECK:STDOUT: %.loc5_11.2: type = converted %int.make_type_32.loc5_11, %.loc5_11.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %a.param: i32 = param a, runtime_param0
|
|
|
|
|
-// CHECK:STDOUT: %a: i32 = bind_name a, %a.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc5_19: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc5_19: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_19.1: type = value_of_initializer %int.make_type_32.loc5_19 [template = i32]
|
|
// CHECK:STDOUT: %.loc5_19.1: type = value_of_initializer %int.make_type_32.loc5_19 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_19.2: type = converted %int.make_type_32.loc5_19, %.loc5_19.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc5_19.2: type = converted %int.make_type_32.loc5_19, %.loc5_19.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.param: i32 = param b, runtime_param1
|
|
|
|
|
-// CHECK:STDOUT: %b: i32 = bind_name b, %b.param
|
|
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc5_27: init type = call constants.%Int32() [template = i32]
|
|
// CHECK:STDOUT: %int.make_type_32.loc5_27: init type = call constants.%Int32() [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_27.1: type = value_of_initializer %int.make_type_32.loc5_27 [template = i32]
|
|
// CHECK:STDOUT: %.loc5_27.1: type = value_of_initializer %int.make_type_32.loc5_27 [template = i32]
|
|
|
// CHECK:STDOUT: %.loc5_27.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32]
|
|
// CHECK:STDOUT: %.loc5_27.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32]
|
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
// CHECK:STDOUT: %return: ref i32 = var <return slot>
|
|
|
|
|
+// CHECK:STDOUT: %param.loc5_8: i32 = param runtime_param0
|
|
|
|
|
+// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_8
|
|
|
|
|
+// CHECK:STDOUT: %param.loc5_16: i32 = param runtime_param1
|
|
|
|
|
+// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_16
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32]
|
|
// 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.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32]
|
|
@@ -557,9 +573,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @Int32() -> type = "int.make_type_32";
|
|
// CHECK:STDOUT: fn @Int32() -> type = "int.make_type_32";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @Negate(%a: i32) -> i32 = "int.snegate";
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @Negate(%a.param_patt: i32) -> i32 = "int.snegate";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @Sub(%a: i32, %b: i32) -> i32 = "int.ssub";
|
|
|
|
|
|
|
+// CHECK:STDOUT: fn @Sub(%a.param_patt: i32, %b.param_patt: i32) -> i32 = "int.ssub";
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: fn @__global_init() {
|
|
// CHECK:STDOUT: fn @__global_init() {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
@@ -567,9 +583,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %Negate.ref.loc8_21: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate]
|
|
// CHECK:STDOUT: %Negate.ref.loc8_21: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate]
|
|
|
// CHECK:STDOUT: %.loc8_28: i32 = int_literal 2147483647 [template = constants.%.2]
|
|
// 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: %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]
|
|
|
|
|
-// CHECK:STDOUT: %.loc8_20.2: i32 = converted %int.snegate.loc8_27, %.loc8_20.1 [template = constants.%.3]
|
|
|
|
|
-// CHECK:STDOUT: %int.snegate.loc8_20: init i32 = call %Negate.ref.loc8_14(%.loc8_20.2) [template = constants.%.2]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %.loc8_27.1: i32 = value_of_initializer %int.snegate.loc8_27 [template = constants.%.3]
|
|
|
|
|
+// CHECK:STDOUT: %.loc8_27.2: i32 = converted %int.snegate.loc8_27, %.loc8_27.1 [template = constants.%.3]
|
|
|
|
|
+// CHECK:STDOUT: %int.snegate.loc8_20: init i32 = call %Negate.ref.loc8_14(%.loc8_27.2) [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %.loc8_40.1: i32 = value_of_initializer %int.snegate.loc8_20 [template = constants.%.2]
|
|
// 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: %.loc8_40.2: i32 = converted %int.snegate.loc8_20, %.loc8_40.1 [template = constants.%.2]
|
|
|
// CHECK:STDOUT: %a: i32 = bind_name a, %.loc8_40.2
|
|
// CHECK:STDOUT: %a: i32 = bind_name a, %.loc8_40.2
|
|
@@ -579,12 +595,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1));
|
|
|
// CHECK:STDOUT: %.loc14_32: i32 = int_literal 2147483647 [template = constants.%.2]
|
|
// 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: %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]
|
|
// CHECK:STDOUT: %.loc14_45: i32 = int_literal 1 [template = constants.%.4]
|
|
|
-// CHECK:STDOUT: %.loc14_24.1: i32 = value_of_initializer %int.snegate.loc14_31 [template = constants.%.3]
|
|
|
|
|
-// CHECK:STDOUT: %.loc14_24.2: i32 = converted %int.snegate.loc14_31, %.loc14_24.1 [template = constants.%.3]
|
|
|
|
|
-// CHECK:STDOUT: %int.ssub: init i32 = call %Sub.ref(%.loc14_24.2, %.loc14_45) [template = constants.%.5]
|
|
|
|
|
-// CHECK:STDOUT: %.loc14_20.1: i32 = value_of_initializer %int.ssub [template = constants.%.5]
|
|
|
|
|
-// CHECK:STDOUT: %.loc14_20.2: i32 = converted %int.ssub, %.loc14_20.1 [template = constants.%.5]
|
|
|
|
|
-// CHECK:STDOUT: %int.snegate.loc14_20: init i32 = call %Negate.ref.loc14_14(%.loc14_20.2) [template = constants.%.5]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %.loc14_31.1: i32 = value_of_initializer %int.snegate.loc14_31 [template = constants.%.3]
|
|
|
|
|
+// CHECK:STDOUT: %.loc14_31.2: i32 = converted %int.snegate.loc14_31, %.loc14_31.1 [template = constants.%.3]
|
|
|
|
|
+// CHECK:STDOUT: %int.ssub: init i32 = call %Sub.ref(%.loc14_31.2, %.loc14_45) [template = constants.%.5]
|
|
|
|
|
+// CHECK:STDOUT: %.loc14_24.1: i32 = value_of_initializer %int.ssub [template = constants.%.5]
|
|
|
|
|
+// CHECK:STDOUT: %.loc14_24.2: i32 = converted %int.ssub, %.loc14_24.1 [template = constants.%.5]
|
|
|
|
|
+// CHECK:STDOUT: %int.snegate.loc14_20: init i32 = call %Negate.ref.loc14_14(%.loc14_24.2) [template = constants.%.5]
|
|
|
// CHECK:STDOUT: %.loc14_48.1: i32 = value_of_initializer %int.snegate.loc14_20 [template = constants.%.5]
|
|
// CHECK:STDOUT: %.loc14_48.1: i32 = value_of_initializer %int.snegate.loc14_20 [template = constants.%.5]
|
|
|
// CHECK:STDOUT: %.loc14_48.2: i32 = converted %int.snegate.loc14_20, %.loc14_48.1 [template = constants.%.5]
|
|
// CHECK:STDOUT: %.loc14_48.2: i32 = converted %int.snegate.loc14_20, %.loc14_48.1 [template = constants.%.5]
|
|
|
// CHECK:STDOUT: %b: i32 = bind_name b, %.loc14_48.2
|
|
// CHECK:STDOUT: %b: i32 = bind_name b, %.loc14_48.2
|