From 2d3cc0a088b4f5fe032f39f5aa7c945c4b39f4ea Mon Sep 17 00:00:00 2001 From: Geoffrey Romer Date: Mon, 21 Oct 2024 16:11:32 -0700 Subject: [PATCH] Restore pretty-printing of param names --- toolchain/check/import_ref.cpp | 4 +- toolchain/check/pattern_match.cpp | 28 +++- .../no_prelude/fail_local_in_namespace.carbon | 4 +- .../alias/no_prelude/fail_params.carbon | 4 +- .../alias/no_prelude/in_namespace.carbon | 4 +- .../testdata/alias/no_prelude/local.carbon | 4 +- .../testdata/array/array_in_place.carbon | 4 +- .../testdata/array/assign_return_value.carbon | 4 +- .../testdata/array/canonicalize_index.carbon | 12 +- .../testdata/array/fail_bound_negative.carbon | 8 +- .../testdata/array/function_param.carbon | 16 +- .../check/testdata/array/generic_empty.carbon | 4 +- .../testdata/as/adapter_conversion.carbon | 4 +- toolchain/check/testdata/as/basic.carbon | 4 +- toolchain/check/testdata/as/identity.carbon | 12 +- .../check/testdata/as/no_prelude/tuple.carbon | 4 +- toolchain/check/testdata/as/overloaded.carbon | 16 +- .../check/testdata/basics/fail_bad_run.carbon | 4 +- .../testdata/basics/fail_bad_run_2.carbon | 4 +- .../no_prelude/raw_and_textual_ir.carbon | 12 +- .../basics/no_prelude/raw_identifier.carbon | 24 +-- .../testdata/basics/no_prelude/raw_ir.carbon | 6 +- .../basics/no_prelude/textual_ir.carbon | 8 +- .../check/testdata/basics/run_i32.carbon | 4 +- .../builtins/big_int/make_type.carbon | 4 +- .../testdata/builtins/bool/make_type.carbon | 4 +- .../check/testdata/builtins/float/add.carbon | 108 ++++++------- .../check/testdata/builtins/float/div.carbon | 108 ++++++------- .../check/testdata/builtins/float/eq.carbon | 44 +++--- .../testdata/builtins/float/greater.carbon | 40 ++--- .../testdata/builtins/float/greater_eq.carbon | 40 ++--- .../check/testdata/builtins/float/less.carbon | 40 ++--- .../testdata/builtins/float/less_eq.carbon | 40 ++--- .../testdata/builtins/float/make_type.carbon | 16 +- .../check/testdata/builtins/float/mul.carbon | 108 ++++++------- .../testdata/builtins/float/negate.carbon | 88 +++++------ .../check/testdata/builtins/float/neq.carbon | 44 +++--- .../check/testdata/builtins/float/sub.carbon | 108 ++++++------- .../check/testdata/builtins/int/and.carbon | 24 +-- .../testdata/builtins/int/complement.carbon | 28 ++-- .../check/testdata/builtins/int/eq.carbon | 44 +++--- .../testdata/builtins/int/greater.carbon | 40 ++--- .../testdata/builtins/int/greater_eq.carbon | 40 ++--- .../testdata/builtins/int/left_shift.carbon | 44 +++--- .../check/testdata/builtins/int/less.carbon | 40 ++--- .../testdata/builtins/int/less_eq.carbon | 40 ++--- .../testdata/builtins/int/make_type_32.carbon | 4 +- .../builtins/int/make_type_signed.carbon | 44 +++--- .../builtins/int/make_type_unsigned.carbon | 44 +++--- .../check/testdata/builtins/int/neq.carbon | 32 ++-- .../check/testdata/builtins/int/or.carbon | 24 +-- .../testdata/builtins/int/right_shift.carbon | 64 ++++---- .../check/testdata/builtins/int/sadd.carbon | 120 +++++++-------- .../check/testdata/builtins/int/sdiv.carbon | 68 ++++----- .../check/testdata/builtins/int/smod.carbon | 68 ++++----- .../check/testdata/builtins/int/smul.carbon | 36 ++--- .../testdata/builtins/int/snegate.carbon | 108 ++++++------- .../check/testdata/builtins/int/ssub.carbon | 36 ++--- .../check/testdata/builtins/int/uadd.carbon | 120 +++++++-------- .../check/testdata/builtins/int/udiv.carbon | 68 ++++----- .../check/testdata/builtins/int/umod.carbon | 68 ++++----- .../check/testdata/builtins/int/umul.carbon | 36 ++--- .../testdata/builtins/int/unegate.carbon | 108 ++++++------- .../check/testdata/builtins/int/usub.carbon | 36 ++--- .../check/testdata/builtins/int/xor.carbon | 24 +-- .../check/testdata/builtins/print.carbon | 4 +- .../testdata/class/access_modifers.carbon | 28 ++-- toolchain/check/testdata/class/adapt.carbon | 4 +- toolchain/check/testdata/class/base.carbon | 12 +- .../check/testdata/class/base_field.carbon | 8 +- .../check/testdata/class/base_method.carbon | 12 +- .../class/base_method_qualified.carbon | 56 +++---- .../testdata/class/base_method_shadow.carbon | 28 ++-- toolchain/check/testdata/class/basic.carbon | 28 ++-- .../class/complete_in_member_fn.carbon | 8 +- .../testdata/class/compound_field.carbon | 32 ++-- .../testdata/class/derived_to_base.carbon | 36 ++--- .../check/testdata/class/extend_adapt.carbon | 28 ++-- .../check/testdata/class/fail_abstract.carbon | 36 ++--- .../testdata/class/fail_adapt_bad_decl.carbon | 8 +- .../testdata/class/fail_addr_not_self.carbon | 8 +- .../testdata/class/fail_addr_self.carbon | 16 +- .../testdata/class/fail_base_bad_type.carbon | 104 ++++++------- .../class/fail_compound_type_mismatch.carbon | 8 +- .../class/fail_convert_to_invalid.carbon | 4 +- .../class/fail_derived_to_base.carbon | 16 +- .../testdata/class/fail_generic_method.carbon | 24 +-- .../testdata/class/fail_incomplete.carbon | 44 +++--- .../class/fail_init_as_inplace.carbon | 4 +- .../class/fail_memaccess_category.carbon | 12 +- .../testdata/class/fail_member_of_let.carbon | 4 +- .../check/testdata/class/fail_method.carbon | 8 +- .../class/fail_method_modifiers.carbon | 20 +-- .../check/testdata/class/fail_scope.carbon | 8 +- .../check/testdata/class/fail_self.carbon | 24 +-- .../testdata/class/fail_self_param.carbon | 4 +- .../testdata/class/fail_unbound_field.carbon | 8 +- .../testdata/class/fail_unknown_member.carbon | 8 +- .../testdata/class/forward_declared.carbon | 8 +- .../check/testdata/class/generic/basic.carbon | 24 +-- .../check/testdata/class/generic/call.carbon | 56 +++---- .../check/testdata/class/generic/field.carbon | 36 ++--- .../testdata/class/generic/import.carbon | 36 ++--- .../check/testdata/class/generic/init.carbon | 48 +++--- .../class/generic/member_access.carbon | 60 ++++---- .../class/generic/member_inline.carbon | 24 +-- .../class/generic/member_out_of_line.carbon | 104 ++++++------- .../class/generic/method_deduce.carbon | 40 ++--- .../testdata/class/generic/redeclare.carbon | 52 +++---- .../check/testdata/class/generic/self.carbon | 12 +- .../testdata/class/generic_method.carbon | 24 +-- toolchain/check/testdata/class/import.carbon | 8 +- .../check/testdata/class/import_base.carbon | 8 +- .../testdata/class/inheritance_access.carbon | 60 ++++---- toolchain/check/testdata/class/init.carbon | 24 +-- .../check/testdata/class/init_adapt.carbon | 16 +- toolchain/check/testdata/class/init_as.carbon | 4 +- .../check/testdata/class/init_nested.carbon | 8 +- toolchain/check/testdata/class/method.carbon | 76 ++++----- toolchain/check/testdata/class/nested.carbon | 4 +- .../check/testdata/class/nested_name.carbon | 12 +- .../class/no_prelude/generic_vs_params.carbon | 16 +- .../class/no_prelude/import_access.carbon | 12 +- .../class/no_prelude/syntactic_merge.carbon | 104 ++++++------- .../check/testdata/class/raw_self.carbon | 40 ++--- .../check/testdata/class/raw_self_type.carbon | 16 +- .../check/testdata/class/redeclaration.carbon | 16 +- .../check/testdata/class/reenter_scope.carbon | 12 +- toolchain/check/testdata/class/reorder.carbon | 8 +- toolchain/check/testdata/class/scope.carbon | 12 +- toolchain/check/testdata/class/self.carbon | 40 ++--- .../testdata/class/self_conversion.carbon | 32 ++-- .../check/testdata/class/self_type.carbon | 20 +-- .../check/testdata/class/static_method.carbon | 8 +- .../class/syntactic_merge_literal.carbon | 24 +-- toolchain/check/testdata/const/basic.carbon | 16 +- .../check/testdata/const/collapse.carbon | 8 +- .../check/testdata/const/fail_collapse.carbon | 8 +- toolchain/check/testdata/const/import.carbon | 4 +- toolchain/check/testdata/deduce/array.carbon | 84 +++++----- .../check/testdata/deduce/generic_type.carbon | 100 ++++++------ .../check/testdata/deduce/int_float.carbon | 40 ++--- toolchain/check/testdata/deduce/tuple.carbon | 72 ++++----- .../testdata/deduce/type_operator.carbon | 80 +++++----- .../check/testdata/eval/fail_symbolic.carbon | 4 +- toolchain/check/testdata/eval/symbolic.carbon | 4 +- .../expr_category/in_place_tuple_init.carbon | 12 +- .../testdata/function/builtin/call.carbon | 12 +- .../function/builtin/definition.carbon | 12 +- .../function/builtin/fail_redefined.carbon | 72 ++++----- .../testdata/function/builtin/method.carbon | 24 +-- .../no_prelude/call_from_operator.carbon | 28 ++-- .../function/builtin/no_prelude/import.carbon | 16 +- .../function/call/fail_param_count.carbon | 12 +- .../function/call/fail_param_type.carbon | 4 +- .../call/fail_return_type_mismatch.carbon | 4 +- .../check/testdata/function/call/i32.carbon | 8 +- .../function/call/more_param_ir.carbon | 8 +- .../function/call/no_prelude/alias.carbon | 4 +- .../call/no_prelude/empty_struct.carbon | 8 +- .../call/no_prelude/empty_tuple.carbon | 8 +- .../fail_explicit_self_param.carbon | 4 +- .../testdata/function/call/params_one.carbon | 4 +- .../function/call/params_one_comma.carbon | 4 +- .../testdata/function/call/params_two.carbon | 8 +- .../function/call/params_two_comma.carbon | 8 +- .../declaration/fail_param_in_type.carbon | 8 +- .../declaration/fail_param_redecl.carbon | 8 +- .../function/declaration/import.carbon | 64 ++++---- .../declaration/no_prelude/extern.carbon | 4 +- .../fail_import_incomplete_return.carbon | 16 +- .../declaration/no_prelude/fail_redecl.carbon | 12 +- .../declaration/param_same_name.carbon | 8 +- .../function/definition/import.carbon | 24 +-- .../fail_decl_param_mismatch.carbon | 32 ++-- .../no_prelude/syntactic_merge.carbon | 104 ++++++------- .../function/definition/params_one.carbon | 4 +- .../definition/params_one_comma.carbon | 4 +- .../function/definition/params_two.carbon | 8 +- .../definition/params_two_comma.carbon | 8 +- .../testdata/function/generic/deduce.carbon | 120 +++++++-------- .../generic/fail_todo_param_in_type.carbon | 8 +- .../function/generic/no_prelude/call.carbon | 88 +++++------ .../fail_type_param_mismatch.carbon | 8 +- .../generic/no_prelude/forward_decl.carbon | 4 +- .../no_prelude/indirect_generic_type.carbon | 12 +- .../generic/no_prelude/type_param.carbon | 4 +- .../no_prelude/type_param_scope.carbon | 12 +- .../function/generic/redeclare.carbon | 88 +++++------ .../function/generic/resolve_used.carbon | 4 +- .../function/generic/return_slot.carbon | 8 +- .../function/generic/undefined.carbon | 60 ++++---- .../testdata/global/class_with_fun.carbon | 4 +- .../testdata/global/simple_with_fun.carbon | 4 +- toolchain/check/testdata/if/else.carbon | 4 +- .../if/fail_reachable_fallthrough.carbon | 24 +-- toolchain/check/testdata/if/fail_scope.carbon | 8 +- toolchain/check/testdata/if/no_else.carbon | 4 +- .../if/unreachable_fallthrough.carbon | 8 +- toolchain/check/testdata/if_expr/basic.carbon | 16 +- .../if_expr/constant_condition.carbon | 28 ++-- .../testdata/if_expr/control_flow.carbon | 16 +- .../if_expr/fail_partial_constant.carbon | 8 +- .../check/testdata/if_expr/nested.carbon | 16 +- .../check/testdata/if_expr/struct.carbon | 8 +- toolchain/check/testdata/impl/compound.carbon | 24 +-- .../check/testdata/impl/extend_impl.carbon | 4 +- .../testdata/impl/fail_call_invalid.carbon | 12 +- .../impl/fail_extend_impl_forall.carbon | 16 +- .../impl/fail_impl_bad_assoc_fn.carbon | 120 +++++++-------- .../check/testdata/impl/impl_forall.carbon | 4 +- .../check/testdata/impl/lookup/alias.carbon | 4 +- .../lookup/fail_alias_impl_not_found.carbon | 4 +- .../lookup/fail_todo_undefined_impl.carbon | 4 +- .../check/testdata/impl/lookup/generic.carbon | 84 +++++----- .../check/testdata/impl/lookup/import.carbon | 4 +- .../impl/lookup/instance_method.carbon | 24 +-- .../impl/lookup/no_prelude/impl_forall.carbon | 48 +++--- .../impl/lookup/no_prelude/import.carbon | 4 +- .../no_prelude/generic_redeclaration.carbon | 40 ++--- .../impl/no_prelude/import_generic.carbon | 20 +-- .../impl/no_prelude/import_self.carbon | 36 ++--- .../impl/no_prelude/interface_args.carbon | 44 +++--- .../impl/no_prelude/self_in_class.carbon | 8 +- .../impl/no_prelude/self_in_signature.carbon | 48 +++--- .../check/testdata/index/expr_category.carbon | 12 +- .../testdata/index/fail_expr_category.carbon | 8 +- .../fail_todo_define_default_fn_inline.carbon | 12 +- ..._todo_define_default_fn_out_of_line.carbon | 56 +++---- .../interface/no_prelude/as_type.carbon | 4 +- .../no_prelude/as_type_of_type.carbon | 4 +- .../no_prelude/assoc_const_in_generic.carbon | 16 +- .../interface/no_prelude/export_name.carbon | 4 +- .../no_prelude/fail_duplicate.carbon | 4 +- .../fail_generic_redeclaration.carbon | 16 +- .../no_prelude/fail_lookup_undefined.carbon | 4 +- .../no_prelude/fail_todo_facet_lookup.carbon | 12 +- .../fail_todo_generic_default_fn.carbon | 24 +-- .../interface/no_prelude/generic.carbon | 44 +++--- .../generic_binding_after_assoc_const.carbon | 8 +- .../no_prelude/generic_import.carbon | 4 +- .../no_prelude/generic_vs_params.carbon | 12 +- .../interface/no_prelude/import.carbon | 12 +- .../interface/no_prelude/import_access.carbon | 36 ++--- .../testdata/interface/no_prelude/self.carbon | 8 +- .../no_prelude/syntactic_merge.carbon | 96 ++++++------ .../interface/todo_define_not_default.carbon | 12 +- .../testdata/let/compile_time_bindings.carbon | 36 ++--- toolchain/check/testdata/let/convert.carbon | 4 +- .../check/testdata/let/fail_generic.carbon | 8 +- toolchain/check/testdata/let/global.carbon | 4 +- toolchain/check/testdata/let/local.carbon | 8 +- .../check/testdata/let/shadowed_decl.carbon | 8 +- .../testdata/namespace/add_to_import.carbon | 4 +- .../check/testdata/namespace/alias.carbon | 12 +- .../namespace/fail_decl_in_alias.carbon | 4 +- .../testdata/namespace/fail_params.carbon | 16 +- .../merging_with_indirections.carbon | 4 +- .../check/testdata/namespace/shadow.carbon | 4 +- .../testdata/operators/builtin/and.carbon | 16 +- .../fail_and_or_partial_constant.carbon | 8 +- .../fail_assignment_to_non_assignable.carbon | 4 +- .../fail_redundant_compound_access.carbon | 4 +- .../builtin/fail_type_mismatch_once.carbon | 4 +- .../builtin/fail_unimplemented_op.carbon | 4 +- .../testdata/operators/builtin/or.carbon | 16 +- .../operators/builtin/unary_op.carbon | 8 +- .../testdata/operators/overloaded/add.carbon | 40 ++--- .../operators/overloaded/bit_and.carbon | 40 ++--- .../overloaded/bit_complement.carbon | 16 +- .../operators/overloaded/bit_or.carbon | 40 ++--- .../operators/overloaded/bit_xor.carbon | 40 ++--- .../testdata/operators/overloaded/dec.carbon | 4 +- .../testdata/operators/overloaded/div.carbon | 40 ++--- .../testdata/operators/overloaded/eq.carbon | 120 +++++++-------- .../overloaded/fail_assign_non_ref.carbon | 24 +-- .../operators/overloaded/fail_no_impl.carbon | 24 +-- .../overloaded/fail_no_impl_for_arg.carbon | 36 ++--- .../operators/overloaded/implicit_as.carbon | 32 ++-- .../testdata/operators/overloaded/inc.carbon | 4 +- .../operators/overloaded/left_shift.carbon | 40 ++--- .../testdata/operators/overloaded/mod.carbon | 40 ++--- .../testdata/operators/overloaded/mul.carbon | 40 ++--- .../operators/overloaded/negate.carbon | 16 +- .../operators/overloaded/ordered.carbon | 144 +++++++++--------- .../operators/overloaded/right_shift.carbon | 40 ++--- .../testdata/operators/overloaded/sub.carbon | 40 ++--- .../no_prelude/cross_package_import.carbon | 4 +- .../no_prelude/fail_export_name_params.carbon | 12 +- .../no_prelude/missing_prelude.carbon | 16 +- .../testdata/pointer/address_of_deref.carbon | 4 +- toolchain/check/testdata/pointer/arrow.carbon | 8 +- toolchain/check/testdata/pointer/basic.carbon | 4 +- .../pointer/fail_address_of_value.carbon | 14 +- .../pointer/fail_deref_not_pointer.carbon | 4 +- .../pointer/fail_type_mismatch.carbon | 8 +- .../testdata/pointer/nested_const.carbon | 8 +- toolchain/check/testdata/pointer/types.carbon | 16 +- .../return/code_after_return_value.carbon | 8 +- .../testdata/return/fail_call_in_type.carbon | 8 +- .../testdata/return/fail_error_in_type.carbon | 4 +- .../return/fail_missing_return.carbon | 4 +- .../fail_missing_return_empty_tuple.carbon | 4 +- .../fail_return_var_no_returned_var.carbon | 4 +- .../fail_return_with_returned_var.carbon | 8 +- .../return/fail_returned_var_shadow.carbon | 8 +- .../return/fail_returned_var_type.carbon | 4 +- .../testdata/return/fail_type_mismatch.carbon | 4 +- .../testdata/return/fail_value_missing.carbon | 4 +- .../testdata/return/fail_var_in_type.carbon | 4 +- .../check/testdata/return/returned_var.carbon | 8 +- .../testdata/return/returned_var_scope.carbon | 12 +- toolchain/check/testdata/return/struct.carbon | 4 +- toolchain/check/testdata/return/tuple.carbon | 4 +- toolchain/check/testdata/return/value.carbon | 4 +- .../struct/fail_duplicate_name.carbon | 4 +- toolchain/check/testdata/struct/import.carbon | 8 +- .../struct/literal_member_access.carbon | 8 +- .../struct/nested_struct_in_place.carbon | 4 +- .../testdata/struct/reorder_fields.carbon | 12 +- .../tuple/access/return_value_access.carbon | 8 +- toolchain/check/testdata/tuple/import.carbon | 8 +- .../tuple/nested_tuple_in_place.carbon | 4 +- .../testdata/var/fail_not_copyable.carbon | 4 +- .../testdata/where_expr/constraints.carbon | 40 ++--- .../testdata/where_expr/designator.carbon | 32 ++-- .../testdata/where_expr/fail_not_facet.carbon | 4 +- .../testdata/where_expr/non_generic.carbon | 4 +- .../testdata/while/break_continue.carbon | 32 ++-- .../testdata/while/unreachable_end.carbon | 4 +- toolchain/check/testdata/while/while.carbon | 4 +- toolchain/sem_ir/formatter.cpp | 6 + toolchain/sem_ir/inst_namer.cpp | 4 +- toolchain/sem_ir/typed_insts.h | 4 + 334 files changed, 4038 insertions(+), 4008 deletions(-) diff --git a/toolchain/check/import_ref.cpp b/toolchain/check/import_ref.cpp index 749f8a13d3353..5ee88a41f5a29 100644 --- a/toolchain/check/import_ref.cpp +++ b/toolchain/check/import_ref.cpp @@ -762,7 +762,9 @@ class ImportRefResolver { auto new_param_id = context_.AddInstInNoBlock( AddImportIRInst(param_id), - {.type_id = type_id, .runtime_index = param_inst.runtime_index}); + {.type_id = type_id, + .runtime_index = param_inst.runtime_index, + .pretty_name = GetLocalNameId(param_inst.pretty_name)}); switch (bind_inst.kind) { case SemIR::BindName::Kind: { auto entity_name_id = context_.entity_names().Add( diff --git a/toolchain/check/pattern_match.cpp b/toolchain/check/pattern_match.cpp index fc92097d9ad52..e8e5f88c7a338 100644 --- a/toolchain/check/pattern_match.cpp +++ b/toolchain/check/pattern_match.cpp @@ -16,6 +16,22 @@ namespace Carbon::Check { namespace { +// Returns a best-effort name for the given ParamPattern, suitable for use in +// IR pretty-printing. +// TODO: Resolve overlap with SemIR::Function::ParamPatternInfo::GetNameId +auto GetPrettyName(Context& context, SemIR::ParamPattern param_pattern) + -> SemIR::NameId { + if (context.insts().Is( + param_pattern.subpattern_id)) { + return SemIR::NameId::ReturnSlot; + } + if (auto binding_pattern = context.insts().TryGetAs( + param_pattern.subpattern_id)) { + return context.entity_names().Get(binding_pattern->entity_name_id).name_id; + } + return SemIR::NameId::Invalid; +} + // Selects between the different kinds of pattern matching. enum class MatchKind { // Caller pattern matching occurs on the caller side of a function call, and @@ -225,11 +241,13 @@ auto EmitPatternMatch(Context& context, MatchContext& match, context.ReplaceInstBeforeConstantUse(entry.pattern_id, param_pattern); } - match.AddWork({.pattern_id = param_pattern.subpattern_id, - .scrutinee_id = context.AddInst( - pattern.loc_id, - {.type_id = param_pattern.type_id, - .runtime_index = param_pattern.runtime_index})}); + match.AddWork( + {.pattern_id = param_pattern.subpattern_id, + .scrutinee_id = context.AddInst( + pattern.loc_id, + {.type_id = param_pattern.type_id, + .runtime_index = param_pattern.runtime_index, + .pretty_name = GetPrettyName(context, param_pattern)})}); } break; } break; diff --git a/toolchain/check/testdata/alias/no_prelude/fail_local_in_namespace.carbon b/toolchain/check/testdata/alias/no_prelude/fail_local_in_namespace.carbon index 5d6246fa9f102..25de92ee84300 100644 --- a/toolchain/check/testdata/alias/no_prelude/fail_local_in_namespace.carbon +++ b/toolchain/check/testdata/alias/no_prelude/fail_local_in_namespace.carbon @@ -47,8 +47,8 @@ fn F() -> {} { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc13_12.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_12.2: type = converted %.loc13_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/alias/no_prelude/fail_params.carbon b/toolchain/check/testdata/alias/no_prelude/fail_params.carbon index dbef063018931..373d7f0d2484f 100644 --- a/toolchain/check/testdata/alias/no_prelude/fail_params.carbon +++ b/toolchain/check/testdata/alias/no_prelude/fail_params.carbon @@ -31,8 +31,8 @@ alias A(T:! type) = T*; // CHECK:STDOUT: } // CHECK:STDOUT: %T.ref: type = name_ref T, %T [symbolic = constants.%T] // CHECK:STDOUT: %.loc18: type = ptr_type %T [symbolic = constants.%.1] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %param [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: %A: = bind_alias A, [template = ] // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/alias/no_prelude/in_namespace.carbon b/toolchain/check/testdata/alias/no_prelude/in_namespace.carbon index f2b813de72477..282ffcb2bdc26 100644 --- a/toolchain/check/testdata/alias/no_prelude/in_namespace.carbon +++ b/toolchain/check/testdata/alias/no_prelude/in_namespace.carbon @@ -55,8 +55,8 @@ fn F() -> NS.a { // CHECK:STDOUT: } { // CHECK:STDOUT: %NS.ref: = name_ref NS, file.%NS [template = file.%NS] // CHECK:STDOUT: %a.ref: type = name_ref a, file.%a [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/alias/no_prelude/local.carbon b/toolchain/check/testdata/alias/no_prelude/local.carbon index e3d6783c5eb24..018e83bbb2bec 100644 --- a/toolchain/check/testdata/alias/no_prelude/local.carbon +++ b/toolchain/check/testdata/alias/no_prelude/local.carbon @@ -33,8 +33,8 @@ fn F() -> () { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc11_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc11_12.2: type = converted %.loc11_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/array/array_in_place.carbon b/toolchain/check/testdata/array/array_in_place.carbon index 88f8f0b8e2e7b..e4b2665d3cd93 100644 --- a/toolchain/check/testdata/array/array_in_place.carbon +++ b/toolchain/check/testdata/array/array_in_place.carbon @@ -72,8 +72,8 @@ fn G() { // CHECK:STDOUT: %.loc11_25.6: type = value_of_initializer %int.make_type_32.loc11_22 [template = i32] // CHECK:STDOUT: %.loc11_25.7: type = converted %int.make_type_32.loc11_22, %.loc11_25.6 [template = i32] // CHECK:STDOUT: %.loc11_25.8: type = converted %.loc11_25.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/array/assign_return_value.carbon b/toolchain/check/testdata/array/assign_return_value.carbon index ce0d39cf9ad7e..5f0de66231786 100644 --- a/toolchain/check/testdata/array/assign_return_value.carbon +++ b/toolchain/check/testdata/array/assign_return_value.carbon @@ -64,8 +64,8 @@ fn Run() { // CHECK:STDOUT: %.loc11_16.2: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_16.3: type = converted %int.make_type_32, %.loc11_16.2 [template = i32] // CHECK:STDOUT: %.loc11_16.4: type = converted %.loc11_16.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Run.decl: %Run.type = fn_decl @Run [template = constants.%Run] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/array/canonicalize_index.carbon b/toolchain/check/testdata/array/canonicalize_index.carbon index 1010aa81658fa..7df7fdc969799 100644 --- a/toolchain/check/testdata/array/canonicalize_index.carbon +++ b/toolchain/check/testdata/array/canonicalize_index.carbon @@ -71,12 +71,12 @@ let b: [i32; 3]* = &a; // CHECK:STDOUT: %int.make_type_32.loc11_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_27.1: type = value_of_initializer %int.make_type_32.loc11_27 [template = i32] // CHECK:STDOUT: %.loc11_27.2: type = converted %int.make_type_32.loc11_27, %.loc11_27.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 -// CHECK:STDOUT: %param.loc11_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // 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] diff --git a/toolchain/check/testdata/array/fail_bound_negative.carbon b/toolchain/check/testdata/array/fail_bound_negative.carbon index 5ff337b4c6167..47bd35dddc12a 100644 --- a/toolchain/check/testdata/array/fail_bound_negative.carbon +++ b/toolchain/check/testdata/array/fail_bound_negative.carbon @@ -61,10 +61,10 @@ var a: [i32; Negate(1)]; // CHECK:STDOUT: %int.make_type_32.loc11_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_22.1: type = value_of_initializer %int.make_type_32.loc11_22 [template = i32] // CHECK:STDOUT: %.loc11_22.2: type = converted %int.make_type_32.loc11_22, %.loc11_22.1 [template = i32] -// CHECK:STDOUT: %param.loc11_12: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc11_12 -// CHECK:STDOUT: %param.loc11_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_19 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // 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] diff --git a/toolchain/check/testdata/array/function_param.carbon b/toolchain/check/testdata/array/function_param.carbon index c6484347bab68..e50e8058d7ad7 100644 --- a/toolchain/check/testdata/array/function_param.carbon +++ b/toolchain/check/testdata/array/function_param.carbon @@ -77,12 +77,12 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_32.1: type = value_of_initializer %int.make_type_32.loc11_32 [template = i32] // CHECK:STDOUT: %.loc11_32.2: type = converted %int.make_type_32.loc11_32, %.loc11_32.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: %.3 = param runtime_param0 -// CHECK:STDOUT: %arr: %.3 = bind_name arr, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_22: i32 = param runtime_param1 -// CHECK:STDOUT: %i: i32 = bind_name i, %param.loc11_22 -// CHECK:STDOUT: %param.loc11_29: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_29 +// CHECK:STDOUT: %arr.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %arr: %.3 = bind_name arr, %arr.param +// CHECK:STDOUT: %i.param: i32 = param runtime_param1 +// CHECK:STDOUT: %i: i32 = bind_name i, %i.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -91,8 +91,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_11.2: type = converted %int.make_type_32, %.loc15_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/array/generic_empty.carbon b/toolchain/check/testdata/array/generic_empty.carbon index b0314863007b9..b9a207a3e61c7 100644 --- a/toolchain/check/testdata/array/generic_empty.carbon +++ b/toolchain/check/testdata/array/generic_empty.carbon @@ -50,8 +50,8 @@ fn G(T:! type) { // CHECK:STDOUT: %T.patt.loc11_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_6.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_6.1, runtime_param [symbolic = %T.patt.loc11_6.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/as/adapter_conversion.carbon b/toolchain/check/testdata/as/adapter_conversion.carbon index 794b83c92e28a..021ecddd4e21d 100644 --- a/toolchain/check/testdata/as/adapter_conversion.carbon +++ b/toolchain/check/testdata/as/adapter_conversion.carbon @@ -181,8 +181,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: %return.param_patt: %A = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %return: ref %A = return_slot %param +// CHECK:STDOUT: %return.param: %A = param runtime_param0 +// CHECK:STDOUT: %return: ref %A = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc11: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/as/basic.carbon b/toolchain/check/testdata/as/basic.carbon index 9d2d01d7b2311..f89c4e717fafe 100644 --- a/toolchain/check/testdata/as/basic.carbon +++ b/toolchain/check/testdata/as/basic.carbon @@ -51,8 +51,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32.loc11, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/as/identity.carbon b/toolchain/check/testdata/as/identity.carbon index 9ede7d1d52ed6..1ddfeda1cf59c 100644 --- a/toolchain/check/testdata/as/identity.carbon +++ b/toolchain/check/testdata/as/identity.carbon @@ -76,8 +76,8 @@ fn Initializing() { // CHECK:STDOUT: %n.param_patt: %X = param_pattern %n.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref.loc17: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %n: %X = bind_name n, %param +// CHECK:STDOUT: %n.param: %X = param runtime_param0 +// CHECK:STDOUT: %n: %X = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: %Reference.decl: %Reference.type = fn_decl @Reference [template = constants.%Reference] { // CHECK:STDOUT: %p.patt: %.5 = binding_pattern p @@ -85,16 +85,16 @@ fn Initializing() { // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref.loc21: type = name_ref X, file.%X.decl [template = constants.%X] // CHECK:STDOUT: %.loc21: type = ptr_type %X [template = constants.%.5] -// CHECK:STDOUT: %param: %.5 = param runtime_param0 -// CHECK:STDOUT: %p: %.5 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %p: %.5 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: %Make.decl: %Make.type = fn_decl @Make [template = constants.%Make] { // CHECK:STDOUT: %return.patt: %X = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %X = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %return: ref %X = return_slot %param +// CHECK:STDOUT: %return.param: %X = param runtime_param0 +// CHECK:STDOUT: %return: ref %X = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Initializing.decl: %Initializing.type = fn_decl @Initializing [template = constants.%Initializing] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/as/no_prelude/tuple.carbon b/toolchain/check/testdata/as/no_prelude/tuple.carbon index 59e27babbdc0d..a38ac2d0b017b 100644 --- a/toolchain/check/testdata/as/no_prelude/tuple.carbon +++ b/toolchain/check/testdata/as/no_prelude/tuple.carbon @@ -57,8 +57,8 @@ fn Var() { // CHECK:STDOUT: %return.param_patt: %X = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %return: ref %X = return_slot %param +// CHECK:STDOUT: %return.param: %X = param runtime_param0 +// CHECK:STDOUT: %return: ref %X = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Let.decl: %Let.type = fn_decl @Let [template = constants.%Let] {} {} // CHECK:STDOUT: %Var.decl: %Var.type = fn_decl @Var [template = constants.%Var] {} {} diff --git a/toolchain/check/testdata/as/overloaded.carbon b/toolchain/check/testdata/as/overloaded.carbon index f65115ec9e961..3864fd9ff7315 100644 --- a/toolchain/check/testdata/as/overloaded.carbon +++ b/toolchain/check/testdata/as/overloaded.carbon @@ -149,10 +149,10 @@ let n: i32 = ((4 as i32) as X) as i32; // CHECK:STDOUT: %.loc16_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_20.2: type = converted %int.make_type_32, %.loc16_20.1 [template = i32] // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param.loc16_18: i32 = param runtime_param0 -// CHECK:STDOUT: %self: i32 = bind_name self, %param.loc16_18 -// CHECK:STDOUT: %param.loc16_27: %X = param runtime_param1 -// CHECK:STDOUT: %return: ref %X = return_slot %param.loc16_27 +// CHECK:STDOUT: %self.param: i32 = param runtime_param0 +// CHECK:STDOUT: %self: i32 = bind_name self, %self.param +// CHECK:STDOUT: %return.param: %X = param runtime_param1 +// CHECK:STDOUT: %return: ref %X = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15_24: = interface_witness (%Convert.decl) [template = constants.%.9] // CHECK:STDOUT: @@ -172,10 +172,10 @@ let n: i32 = ((4 as i32) as X) as i32; // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc20_28.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc20_28.2: type = converted %int.make_type_32, %.loc20_28.1 [template = i32] -// CHECK:STDOUT: %param.loc20_18: %X = param runtime_param0 -// CHECK:STDOUT: %self: %X = bind_name self, %param.loc20_18 -// CHECK:STDOUT: %param.loc20_25: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc20_25 +// CHECK:STDOUT: %self.param: %X = param runtime_param0 +// CHECK:STDOUT: %self: %X = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19_24: = interface_witness (%Convert.decl) [template = constants.%.13] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/fail_bad_run.carbon b/toolchain/check/testdata/basics/fail_bad_run.carbon index 8e163f8ea6a96..05a8f8678123c 100644 --- a/toolchain/check/testdata/basics/fail_bad_run.carbon +++ b/toolchain/check/testdata/basics/fail_bad_run.carbon @@ -49,8 +49,8 @@ fn Run() -> String {} // CHECK:STDOUT: %return.patt: String = return_slot_pattern // CHECK:STDOUT: %return.param_patt: String = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: String = param runtime_param0 -// CHECK:STDOUT: %return: ref String = return_slot %param +// CHECK:STDOUT: %return.param: String = param runtime_param0 +// CHECK:STDOUT: %return: ref String = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/fail_bad_run_2.carbon b/toolchain/check/testdata/basics/fail_bad_run_2.carbon index aec002fe1fd6b..00f40954ce375 100644 --- a/toolchain/check/testdata/basics/fail_bad_run_2.carbon +++ b/toolchain/check/testdata/basics/fail_bad_run_2.carbon @@ -51,8 +51,8 @@ fn Run(n: i32) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // 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: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/no_prelude/raw_and_textual_ir.carbon b/toolchain/check/testdata/basics/no_prelude/raw_and_textual_ir.carbon index 5adfadc629fcd..53dcf8766006a 100644 --- a/toolchain/check/testdata/basics/no_prelude/raw_and_textual_ir.carbon +++ b/toolchain/check/testdata/basics/no_prelude/raw_and_textual_ir.carbon @@ -61,8 +61,8 @@ fn Foo(n: ()) -> ((), ()) { // CHECK:STDOUT: 'inst+13': {kind: Converted, arg0: inst+10, arg1: inst+9, type: typeTypeType} // CHECK:STDOUT: 'inst+14': {kind: ReturnSlotPattern, type: type(inst+9)} // CHECK:STDOUT: 'inst+15': {kind: ParamPattern, arg0: inst+14, arg1: runtime_param1, type: type(inst+9)} -// CHECK:STDOUT: 'inst+16': {kind: Param, arg0: runtime_param0, type: type(inst+1)} -// CHECK:STDOUT: 'inst+17': {kind: Param, arg0: runtime_param1, type: type(inst+9)} +// CHECK:STDOUT: 'inst+16': {kind: Param, arg0: runtime_param0, arg1: name1, type: type(inst+1)} +// CHECK:STDOUT: 'inst+17': {kind: Param, arg0: runtime_param1, arg1: nameReturnSlot, type: type(inst+9)} // CHECK:STDOUT: 'inst+18': {kind: ReturnSlot, arg0: inst+17, type: type(inst+9)} // CHECK:STDOUT: 'inst+19': {kind: FunctionDecl, arg0: function0, arg1: block8, type: type(inst+20)} // CHECK:STDOUT: 'inst+20': {kind: FunctionType, arg0: function0, arg1: specific, type: typeTypeType} @@ -192,10 +192,10 @@ fn Foo(n: ()) -> ((), ()) { // CHECK:STDOUT: %.loc15_25.2: type = converted %.loc15_20, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc15_25.3: type = converted %.loc15_24, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc15_25.4: type = converted %.loc15_25.1, constants.%.2 [template = constants.%.2] -// CHECK:STDOUT: %param.loc15_9: %.1 = param runtime_param0 -// CHECK:STDOUT: %n: %.1 = bind_name n, %param.loc15_9 -// CHECK:STDOUT: %param.loc15_15: %.2 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param.loc15_15 +// CHECK:STDOUT: %n.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %n: %.1 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/no_prelude/raw_identifier.carbon b/toolchain/check/testdata/basics/no_prelude/raw_identifier.carbon index c9d33bc61e4db..54320f9ea5a8f 100644 --- a/toolchain/check/testdata/basics/no_prelude/raw_identifier.carbon +++ b/toolchain/check/testdata/basics/no_prelude/raw_identifier.carbon @@ -52,10 +52,10 @@ fn C(r#if: ()) -> () { // CHECK:STDOUT: %.loc15_10.2: type = converted %.loc15_10.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc15_17.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc15_17.2: type = converted %.loc15_17.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc15_7: %.1 = param runtime_param0 -// CHECK:STDOUT: %n: %.1 = bind_name n, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_13: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc15_13 +// CHECK:STDOUT: %n.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %n: %.1 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %n.patt: %.1 = binding_pattern n @@ -67,10 +67,10 @@ fn C(r#if: ()) -> () { // CHECK:STDOUT: %.loc19_12.2: type = converted %.loc19_12.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc19_19.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc19_19.2: type = converted %.loc19_19.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc19_9: %.1 = param runtime_param0 -// CHECK:STDOUT: %n: %.1 = bind_name n, %param.loc19_9 -// CHECK:STDOUT: %param.loc19_15: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc19_15 +// CHECK:STDOUT: %n.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %n: %.1 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %if.patt: %.1 = binding_pattern r#if @@ -82,10 +82,10 @@ fn C(r#if: ()) -> () { // CHECK:STDOUT: %.loc23_13.2: type = converted %.loc23_13.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc23_20.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc23_20.2: type = converted %.loc23_20.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc23_10: %.1 = param runtime_param0 -// CHECK:STDOUT: %if: %.1 = bind_name r#if, %param.loc23_10 -// CHECK:STDOUT: %param.loc23_16: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc23_16 +// CHECK:STDOUT: %if.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %if: %.1 = bind_name r#if, %if.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/no_prelude/raw_ir.carbon b/toolchain/check/testdata/basics/no_prelude/raw_ir.carbon index cf2af237f1cf8..c513937d01063 100644 --- a/toolchain/check/testdata/basics/no_prelude/raw_ir.carbon +++ b/toolchain/check/testdata/basics/no_prelude/raw_ir.carbon @@ -77,9 +77,9 @@ fn Foo[T:! type](n: T) -> (T, ()) { // CHECK:STDOUT: 'inst+17': {kind: Converted, arg0: inst+14, arg1: inst+16, type: typeTypeType} // CHECK:STDOUT: 'inst+18': {kind: ReturnSlotPattern, type: type(symbolicConstant5)} // CHECK:STDOUT: 'inst+19': {kind: ParamPattern, arg0: inst+18, arg1: runtime_param1, type: type(symbolicConstant5)} -// CHECK:STDOUT: 'inst+20': {kind: Param, arg0: runtime_param, type: typeTypeType} -// CHECK:STDOUT: 'inst+21': {kind: Param, arg0: runtime_param0, type: type(symbolicConstant3)} -// CHECK:STDOUT: 'inst+22': {kind: Param, arg0: runtime_param1, type: type(symbolicConstant5)} +// CHECK:STDOUT: 'inst+20': {kind: Param, arg0: runtime_param, arg1: name1, type: typeTypeType} +// CHECK:STDOUT: 'inst+21': {kind: Param, arg0: runtime_param0, arg1: name2, type: type(symbolicConstant3)} +// CHECK:STDOUT: 'inst+22': {kind: Param, arg0: runtime_param1, arg1: nameReturnSlot, type: type(symbolicConstant5)} // CHECK:STDOUT: 'inst+23': {kind: ReturnSlot, arg0: inst+22, type: type(symbolicConstant5)} // CHECK:STDOUT: 'inst+24': {kind: FunctionDecl, arg0: function0, arg1: block10, type: type(inst+28)} // CHECK:STDOUT: 'inst+25': {kind: BindSymbolicName, arg0: entity_name0, arg1: inst, type: typeTypeType} diff --git a/toolchain/check/testdata/basics/no_prelude/textual_ir.carbon b/toolchain/check/testdata/basics/no_prelude/textual_ir.carbon index 70a890e137087..8d38110f54624 100644 --- a/toolchain/check/testdata/basics/no_prelude/textual_ir.carbon +++ b/toolchain/check/testdata/basics/no_prelude/textual_ir.carbon @@ -46,10 +46,10 @@ fn Foo(n: ()) -> ((), ()) { // CHECK:STDOUT: %.loc15_25.2: type = converted %.loc15_20, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc15_25.3: type = converted %.loc15_24, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc15_25.4: type = converted %.loc15_25.1, constants.%.2 [template = constants.%.2] -// CHECK:STDOUT: %param.loc15_9: %.1 = param runtime_param0 -// CHECK:STDOUT: %n: %.1 = bind_name n, %param.loc15_9 -// CHECK:STDOUT: %param.loc15_15: %.2 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param.loc15_15 +// CHECK:STDOUT: %n.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %n: %.1 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/run_i32.carbon b/toolchain/check/testdata/basics/run_i32.carbon index 4d7813e3cb169..891f2ed572532 100644 --- a/toolchain/check/testdata/basics/run_i32.carbon +++ b/toolchain/check/testdata/basics/run_i32.carbon @@ -49,8 +49,8 @@ fn Run() -> i32 { return 0; } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_13.2: type = converted %int.make_type_32, %.loc11_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/big_int/make_type.carbon b/toolchain/check/testdata/builtins/big_int/make_type.carbon index 32d66973258be..76a91bac80b03 100644 --- a/toolchain/check/testdata/builtins/big_int/make_type.carbon +++ b/toolchain/check/testdata/builtins/big_int/make_type.carbon @@ -53,8 +53,8 @@ var i: BigInt(); // CHECK:STDOUT: %return.patt: type = return_slot_pattern // CHECK:STDOUT: %return.param_patt: type = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %return: ref type = return_slot %param +// CHECK:STDOUT: %return.param: type = param runtime_param0 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/bool/make_type.carbon b/toolchain/check/testdata/builtins/bool/make_type.carbon index 79af661a12750..b33a2d5f2f90b 100644 --- a/toolchain/check/testdata/builtins/bool/make_type.carbon +++ b/toolchain/check/testdata/builtins/bool/make_type.carbon @@ -53,8 +53,8 @@ var b: Bool() = false; // CHECK:STDOUT: %return.patt: type = return_slot_pattern // CHECK:STDOUT: %return.param_patt: type = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %return: ref type = return_slot %param +// CHECK:STDOUT: %return.param: type = param runtime_param0 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/add.carbon b/toolchain/check/testdata/builtins/float/add.carbon index 7c561f2be57b4..eeaace13d910c 100644 --- a/toolchain/check/testdata/builtins/float/add.carbon +++ b/toolchain/check/testdata/builtins/float/add.carbon @@ -109,12 +109,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] -// CHECK:STDOUT: %param.loc2_9: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -136,12 +136,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] -// CHECK:STDOUT: %param.loc4_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc4_25 -// CHECK:STDOUT: %param.loc4_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc4_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_8.1: i32 = int_literal 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] @@ -244,10 +244,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] -// CHECK:STDOUT: %param.loc8_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc8_12 -// CHECK:STDOUT: %param.loc8_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc8_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -275,14 +275,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] -// CHECK:STDOUT: %param.loc13_13: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_29: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc13_29 -// CHECK:STDOUT: %param.loc13_36: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc13_36 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -303,12 +303,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc17_37.2: type = converted %bool.make_type, %.loc17_37.1 [template = bool] -// CHECK:STDOUT: %param.loc17_19: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc17_19 -// CHECK:STDOUT: %param.loc17_27: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc17_27 -// CHECK:STDOUT: %param.loc17_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc17_34 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -330,12 +330,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] -// CHECK:STDOUT: %param.loc18_15: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc18_15 -// CHECK:STDOUT: %param.loc18_23: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_30: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc18_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -351,10 +351,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] -// CHECK:STDOUT: %param.loc20_23: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc20_23 -// CHECK:STDOUT: %param.loc20_30: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc20_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -382,14 +382,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] -// CHECK:STDOUT: %param.loc24_24: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc24_24 -// CHECK:STDOUT: %param.loc24_32: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc24_32 -// CHECK:STDOUT: %param.loc24_40: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc24_40 -// CHECK:STDOUT: %param.loc24_47: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc24_47 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -410,12 +410,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc28_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc28_48.2: type = converted %bool.make_type, %.loc28_48.1 [template = bool] -// CHECK:STDOUT: %param.loc28_30: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc28_30 -// CHECK:STDOUT: %param.loc28_38: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc28_38 -// CHECK:STDOUT: %param.loc28_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc28_45 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/div.carbon b/toolchain/check/testdata/builtins/float/div.carbon index 4d3a1fbb6059d..88288e66b540b 100644 --- a/toolchain/check/testdata/builtins/float/div.carbon +++ b/toolchain/check/testdata/builtins/float/div.carbon @@ -117,12 +117,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] -// CHECK:STDOUT: %param.loc2_9: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -144,12 +144,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] -// CHECK:STDOUT: %param.loc4_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc4_25 -// CHECK:STDOUT: %param.loc4_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc4_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_8.1: i32 = int_literal 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8: init type = call constants.%Float(%.loc8_8.1) [template = f64] @@ -274,10 +274,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] -// CHECK:STDOUT: %param.loc8_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc8_12 -// CHECK:STDOUT: %param.loc8_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc8_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -305,14 +305,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] -// CHECK:STDOUT: %param.loc13_13: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_29: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc13_29 -// CHECK:STDOUT: %param.loc13_36: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc13_36 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -333,12 +333,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc17_37.2: type = converted %bool.make_type, %.loc17_37.1 [template = bool] -// CHECK:STDOUT: %param.loc17_19: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc17_19 -// CHECK:STDOUT: %param.loc17_27: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc17_27 -// CHECK:STDOUT: %param.loc17_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc17_34 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -360,12 +360,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] -// CHECK:STDOUT: %param.loc18_15: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc18_15 -// CHECK:STDOUT: %param.loc18_23: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_30: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc18_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -381,10 +381,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] -// CHECK:STDOUT: %param.loc20_23: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc20_23 -// CHECK:STDOUT: %param.loc20_30: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc20_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -412,14 +412,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] -// CHECK:STDOUT: %param.loc24_24: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc24_24 -// CHECK:STDOUT: %param.loc24_32: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc24_32 -// CHECK:STDOUT: %param.loc24_40: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc24_40 -// CHECK:STDOUT: %param.loc24_47: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc24_47 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -440,12 +440,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc28_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc28_48.2: type = converted %bool.make_type, %.loc28_48.1 [template = bool] -// CHECK:STDOUT: %param.loc28_30: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc28_30 -// CHECK:STDOUT: %param.loc28_38: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc28_38 -// CHECK:STDOUT: %param.loc28_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc28_45 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/eq.carbon b/toolchain/check/testdata/builtins/float/eq.carbon index cebb7f6fb6508..51f8819f3ede7 100644 --- a/toolchain/check/testdata/builtins/float/eq.carbon +++ b/toolchain/check/testdata/builtins/float/eq.carbon @@ -105,12 +105,12 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_26.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_26.2: type = converted %bool.make_type, %.loc2_26.1 [template = bool] -// CHECK:STDOUT: %param.loc2_8: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_8 -// CHECK:STDOUT: %param.loc2_16: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_16 -// CHECK:STDOUT: %param.loc2_23: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_23 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -122,10 +122,10 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc7: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc7: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc7_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc7_11 -// CHECK:STDOUT: %param.loc7_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc7_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -146,12 +146,12 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_35.2: type = converted %bool.make_type, %.loc12_35.1 [template = bool] -// CHECK:STDOUT: %param.loc12_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc12_17 -// CHECK:STDOUT: %param.loc12_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc12_25 -// CHECK:STDOUT: %param.loc12_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc12_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -281,12 +281,12 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: %float.make_type.loc7_35: init type = call constants.%Float(%.loc7_35.1) [template = f64] // CHECK:STDOUT: %.loc7_35.2: type = value_of_initializer %float.make_type.loc7_35 [template = f64] // CHECK:STDOUT: %.loc7_35.3: type = converted %float.make_type.loc7_35, %.loc7_35.2 [template = f64] -// CHECK:STDOUT: %param.loc7_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/greater.carbon b/toolchain/check/testdata/builtins/float/greater.carbon index 53eb66c70c460..065dbde6f8338 100644 --- a/toolchain/check/testdata/builtins/float/greater.carbon +++ b/toolchain/check/testdata/builtins/float/greater.carbon @@ -105,12 +105,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_31.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_31.2: type = converted %bool.make_type, %.loc2_31.1 [template = bool] -// CHECK:STDOUT: %param.loc2_13: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_13 -// CHECK:STDOUT: %param.loc2_21: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_21 -// CHECK:STDOUT: %param.loc2_28: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_28 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -126,10 +126,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] -// CHECK:STDOUT: %param.loc3_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -141,10 +141,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -165,12 +165,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/greater_eq.carbon b/toolchain/check/testdata/builtins/float/greater_eq.carbon index a2e0aeef36e20..6da0892308a5b 100644 --- a/toolchain/check/testdata/builtins/float/greater_eq.carbon +++ b/toolchain/check/testdata/builtins/float/greater_eq.carbon @@ -105,12 +105,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_33.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_33.2: type = converted %bool.make_type, %.loc2_33.1 [template = bool] -// CHECK:STDOUT: %param.loc2_15: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_15 -// CHECK:STDOUT: %param.loc2_23: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_23 -// CHECK:STDOUT: %param.loc2_30: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -126,10 +126,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] -// CHECK:STDOUT: %param.loc3_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -141,10 +141,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -165,12 +165,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/less.carbon b/toolchain/check/testdata/builtins/float/less.carbon index 54bc5c818d47f..62a9bc26d8414 100644 --- a/toolchain/check/testdata/builtins/float/less.carbon +++ b/toolchain/check/testdata/builtins/float/less.carbon @@ -105,12 +105,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_28.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_28.2: type = converted %bool.make_type, %.loc2_28.1 [template = bool] -// CHECK:STDOUT: %param.loc2_10: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_10 -// CHECK:STDOUT: %param.loc2_18: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_18 -// CHECK:STDOUT: %param.loc2_25: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_25 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -126,10 +126,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] -// CHECK:STDOUT: %param.loc3_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -141,10 +141,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -165,12 +165,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/less_eq.carbon b/toolchain/check/testdata/builtins/float/less_eq.carbon index 9c759db9f7b7c..70f867ac64448 100644 --- a/toolchain/check/testdata/builtins/float/less_eq.carbon +++ b/toolchain/check/testdata/builtins/float/less_eq.carbon @@ -105,12 +105,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_30.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_30.2: type = converted %bool.make_type, %.loc2_30.1 [template = bool] -// CHECK:STDOUT: %param.loc2_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_12 -// CHECK:STDOUT: %param.loc2_20: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_20 -// CHECK:STDOUT: %param.loc2_27: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_27 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -126,10 +126,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] -// CHECK:STDOUT: %param.loc3_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -141,10 +141,10 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -165,12 +165,12 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/make_type.carbon b/toolchain/check/testdata/builtins/float/make_type.carbon index 7a17c895bff50..7c87caf242862 100644 --- a/toolchain/check/testdata/builtins/float/make_type.carbon +++ b/toolchain/check/testdata/builtins/float/make_type.carbon @@ -84,10 +84,10 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_16.2: type = converted %int.make_type_32, %.loc4_16.1 [template = i32] -// CHECK:STDOUT: %param.loc4_14: i32 = param runtime_param0 -// CHECK:STDOUT: %size: i32 = bind_name size, %param.loc4_14 -// CHECK:STDOUT: %param.loc4_21: type = param runtime_param1 -// CHECK:STDOUT: %return: ref type = return_slot %param.loc4_21 +// CHECK:STDOUT: %size.param: i32 = param runtime_param0 +// CHECK:STDOUT: %size: i32 = bind_name size, %size.param +// CHECK:STDOUT: %return.param: type = param runtime_param1 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -150,10 +150,10 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_23.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_23.2: type = converted %int.make_type_32, %.loc8_23.1 [template = i32] -// CHECK:STDOUT: %param.loc8_21: i32 = param runtime_param0 -// CHECK:STDOUT: %dyn_size: i32 = bind_name dyn_size, %param.loc8_21 -// CHECK:STDOUT: %param.loc8_28: type = param runtime_param1 -// CHECK:STDOUT: %return: ref type = return_slot %param.loc8_28 +// CHECK:STDOUT: %dyn_size.param: i32 = param runtime_param0 +// CHECK:STDOUT: %dyn_size: i32 = bind_name dyn_size, %dyn_size.param +// CHECK:STDOUT: %return.param: type = param runtime_param1 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/mul.carbon b/toolchain/check/testdata/builtins/float/mul.carbon index cdb3d4d554729..c393a4ed0da10 100644 --- a/toolchain/check/testdata/builtins/float/mul.carbon +++ b/toolchain/check/testdata/builtins/float/mul.carbon @@ -109,12 +109,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] -// CHECK:STDOUT: %param.loc2_9: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -136,12 +136,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] -// CHECK:STDOUT: %param.loc4_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc4_25 -// CHECK:STDOUT: %param.loc4_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc4_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_8.1: i32 = int_literal 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] @@ -244,10 +244,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] -// CHECK:STDOUT: %param.loc8_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc8_12 -// CHECK:STDOUT: %param.loc8_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc8_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -275,14 +275,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] -// CHECK:STDOUT: %param.loc13_13: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_29: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc13_29 -// CHECK:STDOUT: %param.loc13_36: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc13_36 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -303,12 +303,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc17_37.2: type = converted %bool.make_type, %.loc17_37.1 [template = bool] -// CHECK:STDOUT: %param.loc17_19: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc17_19 -// CHECK:STDOUT: %param.loc17_27: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc17_27 -// CHECK:STDOUT: %param.loc17_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc17_34 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -330,12 +330,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] -// CHECK:STDOUT: %param.loc18_15: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc18_15 -// CHECK:STDOUT: %param.loc18_23: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_30: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc18_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -351,10 +351,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] -// CHECK:STDOUT: %param.loc20_23: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc20_23 -// CHECK:STDOUT: %param.loc20_30: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc20_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -382,14 +382,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] -// CHECK:STDOUT: %param.loc24_24: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc24_24 -// CHECK:STDOUT: %param.loc24_32: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc24_32 -// CHECK:STDOUT: %param.loc24_40: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc24_40 -// CHECK:STDOUT: %param.loc24_47: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc24_47 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -410,12 +410,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc28_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc28_48.2: type = converted %bool.make_type, %.loc28_48.1 [template = bool] -// CHECK:STDOUT: %param.loc28_30: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc28_30 -// CHECK:STDOUT: %param.loc28_38: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc28_38 -// CHECK:STDOUT: %param.loc28_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc28_45 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/negate.carbon b/toolchain/check/testdata/builtins/float/negate.carbon index 0af960acf3cb6..6536943dc217c 100644 --- a/toolchain/check/testdata/builtins/float/negate.carbon +++ b/toolchain/check/testdata/builtins/float/negate.carbon @@ -123,10 +123,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc2_22: init type = call constants.%Float(%.loc2_22.1) [template = f64] // CHECK:STDOUT: %.loc2_22.2: type = value_of_initializer %float.make_type.loc2_22 [template = f64] // CHECK:STDOUT: %.loc2_22.3: type = converted %float.make_type.loc2_22, %.loc2_22.2 [template = f64] -// CHECK:STDOUT: %param.loc2_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_12 -// CHECK:STDOUT: %param.loc2_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc2_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -148,12 +148,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] -// CHECK:STDOUT: %param.loc4_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc4_25 -// CHECK:STDOUT: %param.loc4_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc4_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_8.1: i32 = int_literal 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] @@ -248,8 +248,8 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_16.1) [template = f64] // CHECK:STDOUT: %.loc8_16.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc8_16.3: type = converted %float.make_type, %.loc8_16.2 [template = f64] -// CHECK:STDOUT: %param: f64 = param runtime_param0 -// CHECK:STDOUT: %return: ref f64 = return_slot %param +// CHECK:STDOUT: %return.param: f64 = param runtime_param0 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -271,12 +271,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc13_31: init type = call constants.%Float(%.loc13_31.1) [template = f64] // CHECK:STDOUT: %.loc13_31.2: type = value_of_initializer %float.make_type.loc13_31 [template = f64] // CHECK:STDOUT: %.loc13_31.3: type = converted %float.make_type.loc13_31, %.loc13_31.2 [template = f64] -// CHECK:STDOUT: %param.loc13_13: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_28: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc13_28 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -291,10 +291,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> 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.2: type = converted %bool.make_type, %.loc18_29.1 [template = bool] -// CHECK:STDOUT: %param.loc18_19: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc18_19 -// CHECK:STDOUT: %param.loc18_26: bool = param runtime_param1 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc18_26 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: bool = param runtime_param1 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -310,10 +310,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc19_25: init type = call constants.%Float(%.loc19_25.1) [template = f64] // CHECK:STDOUT: %.loc19_25.2: type = value_of_initializer %float.make_type.loc19_25 [template = f64] // CHECK:STDOUT: %.loc19_25.3: type = converted %float.make_type.loc19_25, %.loc19_25.2 [template = f64] -// CHECK:STDOUT: %param.loc19_15: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc19_15 -// CHECK:STDOUT: %param.loc19_22: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc19_22 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -329,10 +329,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc21_33: init type = call constants.%Float(%.loc21_33.1) [template = f64] // CHECK:STDOUT: %.loc21_33.2: type = value_of_initializer %float.make_type.loc21_33 [template = f64] // CHECK:STDOUT: %.loc21_33.3: type = converted %float.make_type.loc21_33, %.loc21_33.2 [template = f64] -// CHECK:STDOUT: %param.loc21_23: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc21_23 -// CHECK:STDOUT: %param.loc21_30: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc21_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -360,14 +360,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc32_50: init type = call constants.%Float(%.loc32_50.1) [template = f64] // CHECK:STDOUT: %.loc32_50.2: type = value_of_initializer %float.make_type.loc32_50 [template = f64] // CHECK:STDOUT: %.loc32_50.3: type = converted %float.make_type.loc32_50, %.loc32_50.2 [template = f64] -// CHECK:STDOUT: %param.loc32_24: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc32_24 -// CHECK:STDOUT: %param.loc32_32: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc32_32 -// CHECK:STDOUT: %param.loc32_40: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc32_40 -// CHECK:STDOUT: %param.loc32_47: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc32_47 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -388,12 +388,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc43_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc43_48.2: type = converted %bool.make_type, %.loc43_48.1 [template = bool] -// CHECK:STDOUT: %param.loc43_30: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc43_30 -// CHECK:STDOUT: %param.loc43_38: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc43_38 -// CHECK:STDOUT: %param.loc43_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc43_45 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/neq.carbon b/toolchain/check/testdata/builtins/float/neq.carbon index 775e2019dfb1c..76220055c20f8 100644 --- a/toolchain/check/testdata/builtins/float/neq.carbon +++ b/toolchain/check/testdata/builtins/float/neq.carbon @@ -105,12 +105,12 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_27.2: type = converted %bool.make_type, %.loc2_27.1 [template = bool] -// CHECK:STDOUT: %param.loc2_9: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -122,10 +122,10 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc7: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc7: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc7_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc7_11 -// CHECK:STDOUT: %param.loc7_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc7_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -146,12 +146,12 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_35.2: type = converted %bool.make_type, %.loc12_35.1 [template = bool] -// CHECK:STDOUT: %param.loc12_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc12_17 -// CHECK:STDOUT: %param.loc12_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc12_25 -// CHECK:STDOUT: %param.loc12_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc12_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -281,12 +281,12 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: %float.make_type.loc7_35: init type = call constants.%Float(%.loc7_35.1) [template = f64] // CHECK:STDOUT: %.loc7_35.2: type = value_of_initializer %float.make_type.loc7_35 [template = f64] // CHECK:STDOUT: %.loc7_35.3: type = converted %float.make_type.loc7_35, %.loc7_35.2 [template = f64] -// CHECK:STDOUT: %param.loc7_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/float/sub.carbon b/toolchain/check/testdata/builtins/float/sub.carbon index 76c1f5ce69af4..c4c3f3e08139c 100644 --- a/toolchain/check/testdata/builtins/float/sub.carbon +++ b/toolchain/check/testdata/builtins/float/sub.carbon @@ -109,12 +109,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] -// CHECK:STDOUT: %param.loc2_9: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -136,12 +136,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] -// CHECK:STDOUT: %param.loc4_17: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_25: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc4_25 -// CHECK:STDOUT: %param.loc4_32: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc4_32 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_8.1: i32 = int_literal 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] @@ -244,10 +244,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] -// CHECK:STDOUT: %param.loc8_12: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc8_12 -// CHECK:STDOUT: %param.loc8_19: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc8_19 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -275,14 +275,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] -// CHECK:STDOUT: %param.loc13_13: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_29: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc13_29 -// CHECK:STDOUT: %param.loc13_36: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc13_36 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -303,12 +303,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc17_37.2: type = converted %bool.make_type, %.loc17_37.1 [template = bool] -// CHECK:STDOUT: %param.loc17_19: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc17_19 -// CHECK:STDOUT: %param.loc17_27: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc17_27 -// CHECK:STDOUT: %param.loc17_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc17_34 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -330,12 +330,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] -// CHECK:STDOUT: %param.loc18_15: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc18_15 -// CHECK:STDOUT: %param.loc18_23: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_30: f64 = param runtime_param2 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc18_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param2 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooFew.decl: %RuntimeCallTooFew.type = fn_decl @RuntimeCallTooFew [template = constants.%RuntimeCallTooFew] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -351,10 +351,10 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] -// CHECK:STDOUT: %param.loc20_23: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc20_23 -// CHECK:STDOUT: %param.loc20_30: f64 = param runtime_param1 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc20_30 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param1 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -382,14 +382,14 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] -// CHECK:STDOUT: %param.loc24_24: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc24_24 -// CHECK:STDOUT: %param.loc24_32: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc24_32 -// CHECK:STDOUT: %param.loc24_40: f64 = param runtime_param2 -// CHECK:STDOUT: %c: f64 = bind_name c, %param.loc24_40 -// CHECK:STDOUT: %param.loc24_47: f64 = param runtime_param3 -// CHECK:STDOUT: %return: ref f64 = return_slot %param.loc24_47 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: f64 = param runtime_param2 +// CHECK:STDOUT: %c: f64 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: f64 = param runtime_param3 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -410,12 +410,12 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc28_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc28_48.2: type = converted %bool.make_type, %.loc28_48.1 [template = bool] -// CHECK:STDOUT: %param.loc28_30: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc28_30 -// CHECK:STDOUT: %param.loc28_38: f64 = param runtime_param1 -// CHECK:STDOUT: %b: f64 = bind_name b, %param.loc28_38 -// CHECK:STDOUT: %param.loc28_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc28_45 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: f64 = param runtime_param1 +// CHECK:STDOUT: %b: f64 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/and.carbon b/toolchain/check/testdata/builtins/int/and.carbon index cc99922316caf..2b36c333c1687 100644 --- a/toolchain/check/testdata/builtins/int/and.carbon +++ b/toolchain/check/testdata/builtins/int/and.carbon @@ -77,12 +77,12 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %And.ref: %And.type = name_ref And, %And.decl [template = constants.%And] @@ -117,12 +117,12 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/complement.carbon b/toolchain/check/testdata/builtins/int/complement.carbon index e71f2456ab771..764074a981504 100644 --- a/toolchain/check/testdata/builtins/int/complement.carbon +++ b/toolchain/check/testdata/builtins/int/complement.carbon @@ -77,10 +77,10 @@ fn RuntimeCall(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc2_26: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_26.1: type = value_of_initializer %int.make_type_32.loc2_26 [template = i32] // CHECK:STDOUT: %.loc2_26.2: type = converted %int.make_type_32.loc2_26, %.loc2_26.1 [template = i32] -// CHECK:STDOUT: %param.loc2_16: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_16 -// CHECK:STDOUT: %param.loc2_23: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_23 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %And.decl: %And.type = fn_decl @And [template = constants.%And] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -99,12 +99,12 @@ fn RuntimeCall(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc3_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc3_27.1: type = value_of_initializer %int.make_type_32.loc3_27 [template = i32] // CHECK:STDOUT: %.loc3_27.2: type = converted %int.make_type_32.loc3_27, %.loc3_27.1 [template = i32] -// CHECK:STDOUT: %param.loc3_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc3_9 -// CHECK:STDOUT: %param.loc3_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc3_17 -// CHECK:STDOUT: %param.loc3_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc3_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %And.ref: %And.type = name_ref And, %And.decl [template = constants.%And] @@ -138,10 +138,10 @@ fn RuntimeCall(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc8_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_27.1: type = value_of_initializer %int.make_type_32.loc8_27 [template = i32] // CHECK:STDOUT: %.loc8_27.2: type = converted %int.make_type_32.loc8_27, %.loc8_27.1 [template = i32] -// CHECK:STDOUT: %param.loc8_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc8_17 -// CHECK:STDOUT: %param.loc8_24: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc8_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/eq.carbon b/toolchain/check/testdata/builtins/int/eq.carbon index 5470831324822..8acf3bf497ab6 100644 --- a/toolchain/check/testdata/builtins/int/eq.carbon +++ b/toolchain/check/testdata/builtins/int/eq.carbon @@ -102,12 +102,12 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_26.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_26.2: type = converted %bool.make_type, %.loc2_26.1 [template = bool] -// CHECK:STDOUT: %param.loc2_8: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_8 -// CHECK:STDOUT: %param.loc2_16: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_16 -// CHECK:STDOUT: %param.loc2_23: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_23 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -119,10 +119,10 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc7: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc7: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc7_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc7_11 -// CHECK:STDOUT: %param.loc7_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc7_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -141,12 +141,12 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_35.2: type = converted %bool.make_type, %.loc12_35.1 [template = bool] -// CHECK:STDOUT: %param.loc12_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc12_17 -// CHECK:STDOUT: %param.loc12_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc12_25 -// CHECK:STDOUT: %param.loc12_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc12_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -272,12 +272,12 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/greater.carbon b/toolchain/check/testdata/builtins/int/greater.carbon index 300054e03f3d0..55d1ed78c9961 100644 --- a/toolchain/check/testdata/builtins/int/greater.carbon +++ b/toolchain/check/testdata/builtins/int/greater.carbon @@ -102,12 +102,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_31.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_31.2: type = converted %bool.make_type, %.loc2_31.1 [template = bool] -// CHECK:STDOUT: %param.loc2_13: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_13 -// CHECK:STDOUT: %param.loc2_21: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_21 -// CHECK:STDOUT: %param.loc2_28: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_28 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -121,10 +121,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %int.make_type_32.loc3_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc3_22.1: type = value_of_initializer %int.make_type_32.loc3_22 [template = i32] // CHECK:STDOUT: %.loc3_22.2: type = converted %int.make_type_32.loc3_22, %.loc3_22.1 [template = i32] -// CHECK:STDOUT: %param.loc3_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -136,10 +136,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -158,12 +158,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/greater_eq.carbon b/toolchain/check/testdata/builtins/int/greater_eq.carbon index 9eea3d5dc0df4..64c197e6002df 100644 --- a/toolchain/check/testdata/builtins/int/greater_eq.carbon +++ b/toolchain/check/testdata/builtins/int/greater_eq.carbon @@ -102,12 +102,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_33.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_33.2: type = converted %bool.make_type, %.loc2_33.1 [template = bool] -// CHECK:STDOUT: %param.loc2_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_15 -// CHECK:STDOUT: %param.loc2_23: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_23 -// CHECK:STDOUT: %param.loc2_30: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -121,10 +121,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %int.make_type_32.loc3_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc3_22.1: type = value_of_initializer %int.make_type_32.loc3_22 [template = i32] // CHECK:STDOUT: %.loc3_22.2: type = converted %int.make_type_32.loc3_22, %.loc3_22.1 [template = i32] -// CHECK:STDOUT: %param.loc3_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -136,10 +136,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -158,12 +158,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/left_shift.carbon b/toolchain/check/testdata/builtins/int/left_shift.carbon index 20b359742c28f..eb7c24f1bdbae 100644 --- a/toolchain/check/testdata/builtins/int/left_shift.carbon +++ b/toolchain/check/testdata/builtins/int/left_shift.carbon @@ -121,12 +121,12 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc2_33: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_33.1: type = value_of_initializer %int.make_type_32.loc2_33 [template = i32] // CHECK:STDOUT: %.loc2_33.2: type = converted %int.make_type_32.loc2_33, %.loc2_33.1 [template = i32] -// CHECK:STDOUT: %param.loc2_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_15 -// CHECK:STDOUT: %param.loc2_23: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_23 -// CHECK:STDOUT: %param.loc2_30: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %LeftShift.ref: %LeftShift.type = name_ref LeftShift, %LeftShift.decl [template = constants.%LeftShift] @@ -161,12 +161,12 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -260,12 +260,12 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc4_33: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_33.1: type = value_of_initializer %int.make_type_32.loc4_33 [template = i32] // CHECK:STDOUT: %.loc4_33.2: type = converted %int.make_type_32.loc4_33, %.loc4_33.1 [template = i32] -// CHECK:STDOUT: %param.loc4_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_15 -// CHECK:STDOUT: %param.loc4_23: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_23 -// CHECK:STDOUT: %param.loc4_30: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -279,10 +279,10 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc5_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_22.1: type = value_of_initializer %int.make_type_32.loc5_22 [template = i32] // CHECK:STDOUT: %.loc5_22.2: type = converted %int.make_type_32.loc5_22, %.loc5_22.1 [template = i32] -// CHECK:STDOUT: %param.loc5_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_12 -// CHECK:STDOUT: %param.loc5_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_13.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/less.carbon b/toolchain/check/testdata/builtins/int/less.carbon index bb50233baad68..43891b3941f66 100644 --- a/toolchain/check/testdata/builtins/int/less.carbon +++ b/toolchain/check/testdata/builtins/int/less.carbon @@ -102,12 +102,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_28.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_28.2: type = converted %bool.make_type, %.loc2_28.1 [template = bool] -// CHECK:STDOUT: %param.loc2_10: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_10 -// CHECK:STDOUT: %param.loc2_18: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_18 -// CHECK:STDOUT: %param.loc2_25: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_25 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -121,10 +121,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %int.make_type_32.loc3_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc3_22.1: type = value_of_initializer %int.make_type_32.loc3_22 [template = i32] // CHECK:STDOUT: %.loc3_22.2: type = converted %int.make_type_32.loc3_22, %.loc3_22.1 [template = i32] -// CHECK:STDOUT: %param.loc3_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -136,10 +136,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -158,12 +158,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/less_eq.carbon b/toolchain/check/testdata/builtins/int/less_eq.carbon index 253aa7d647a9e..a4c8d9cc05632 100644 --- a/toolchain/check/testdata/builtins/int/less_eq.carbon +++ b/toolchain/check/testdata/builtins/int/less_eq.carbon @@ -102,12 +102,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_30.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_30.2: type = converted %bool.make_type, %.loc2_30.1 [template = bool] -// CHECK:STDOUT: %param.loc2_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_12 -// CHECK:STDOUT: %param.loc2_20: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_20 -// CHECK:STDOUT: %param.loc2_27: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_27 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -121,10 +121,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %int.make_type_32.loc3_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc3_22.1: type = value_of_initializer %int.make_type_32.loc3_22 [template = i32] // CHECK:STDOUT: %.loc3_22.2: type = converted %int.make_type_32.loc3_22, %.loc3_22.1 [template = i32] -// CHECK:STDOUT: %param.loc3_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc3_12 -// CHECK:STDOUT: %param.loc3_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc3_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -136,10 +136,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc8: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc8: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc8_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc8_11 -// CHECK:STDOUT: %param.loc8_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc8_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -158,12 +158,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_35.2: type = converted %bool.make_type, %.loc16_35.1 [template = bool] -// CHECK:STDOUT: %param.loc16_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc16_17 -// CHECK:STDOUT: %param.loc16_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc16_25 -// CHECK:STDOUT: %param.loc16_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc16_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/make_type_32.carbon b/toolchain/check/testdata/builtins/int/make_type_32.carbon index 2a8593d8d87e1..5ccb4d169a515 100644 --- a/toolchain/check/testdata/builtins/int/make_type_32.carbon +++ b/toolchain/check/testdata/builtins/int/make_type_32.carbon @@ -53,8 +53,8 @@ var i: Int() = 0; // CHECK:STDOUT: %return.patt: type = return_slot_pattern // CHECK:STDOUT: %return.param_patt: type = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %return: ref type = return_slot %param +// CHECK:STDOUT: %return.param: type = param runtime_param0 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/make_type_signed.carbon b/toolchain/check/testdata/builtins/int/make_type_signed.carbon index 5d3b5aab1049f..15d0590bae215 100644 --- a/toolchain/check/testdata/builtins/int/make_type_signed.carbon +++ b/toolchain/check/testdata/builtins/int/make_type_signed.carbon @@ -109,10 +109,10 @@ var m: Int(1000000000); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32, %.loc4_11.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_16: type = param runtime_param1 -// CHECK:STDOUT: %return: ref type = return_slot %param.loc4_16 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: type = param runtime_param1 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -185,10 +185,10 @@ var m: Int(1000000000); // CHECK:STDOUT: %int.make_type_signed.loc6_24: init type = call %Int.ref.loc6_21(%.loc6_25) [template = constants.%.3] // CHECK:STDOUT: %.loc6_27.1: type = value_of_initializer %int.make_type_signed.loc6_24 [template = constants.%.3] // CHECK:STDOUT: %.loc6_27.2: type = converted %int.make_type_signed.loc6_24, %.loc6_27.1 [template = constants.%.3] -// CHECK:STDOUT: %param.loc6_7: %.3 = param runtime_param0 -// CHECK:STDOUT: %n: %.3 = bind_name n, %param.loc6_7 -// CHECK:STDOUT: %param.loc6_18: %.3 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param.loc6_18 +// CHECK:STDOUT: %n.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %n: %.3 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %n.patt: %.5 = binding_pattern n @@ -206,10 +206,10 @@ var m: Int(1000000000); // CHECK:STDOUT: %int.make_type_signed.loc10_24: init type = call %Int.ref.loc10_21(%.loc10_25) [template = constants.%.5] // CHECK:STDOUT: %.loc10_27.1: type = value_of_initializer %int.make_type_signed.loc10_24 [template = constants.%.5] // CHECK:STDOUT: %.loc10_27.2: type = converted %int.make_type_signed.loc10_24, %.loc10_27.1 [template = constants.%.5] -// CHECK:STDOUT: %param.loc10_7: %.5 = param runtime_param0 -// CHECK:STDOUT: %n: %.5 = bind_name n, %param.loc10_7 -// CHECK:STDOUT: %param.loc10_18: %.5 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.5 = return_slot %param.loc10_18 +// CHECK:STDOUT: %n.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %n: %.5 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.5 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.5 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Symbolic.decl: %Symbolic.type = fn_decl @Symbolic [template = constants.%Symbolic] { // CHECK:STDOUT: %N.patt.loc14_13.1: i32 = symbolic_binding_pattern N, 0 [symbolic = %N.patt.loc14_13.2 (constants.%N.patt)] @@ -232,12 +232,12 @@ var m: Int(1000000000); // CHECK:STDOUT: %int.make_type_signed.loc14_39: init type = call %Int.ref.loc14_36(%N.ref.loc14_40) [symbolic = %.loc14_28 (constants.%.6)] // CHECK:STDOUT: %.loc14_41.1: type = value_of_initializer %int.make_type_signed.loc14_39 [symbolic = %.loc14_28 (constants.%.6)] // CHECK:STDOUT: %.loc14_41.2: type = converted %int.make_type_signed.loc14_39, %.loc14_41.1 [symbolic = %.loc14_28 (constants.%.6)] -// CHECK:STDOUT: %param.loc14_14: i32 = param runtime_param -// CHECK:STDOUT: %N.loc14_13.1: i32 = bind_symbolic_name N, 0, %param.loc14_14 [symbolic = %N.loc14_13.2 (constants.%N)] -// CHECK:STDOUT: %param.loc14_23: @Symbolic.%.loc14_28 (%.6) = param runtime_param0 -// CHECK:STDOUT: %x: @Symbolic.%.loc14_28 (%.6) = bind_name x, %param.loc14_23 -// CHECK:STDOUT: %param.loc14_33: @Symbolic.%.loc14_28 (%.6) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Symbolic.%.loc14_28 (%.6) = return_slot %param.loc14_33 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc14_13.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc14_13.2 (constants.%N)] +// CHECK:STDOUT: %x.param: @Symbolic.%.loc14_28 (%.6) = param runtime_param0 +// CHECK:STDOUT: %x: @Symbolic.%.loc14_28 (%.6) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @Symbolic.%.loc14_28 (%.6) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Symbolic.%.loc14_28 (%.6) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -370,10 +370,10 @@ var m: Int(1000000000); // CHECK:STDOUT: %int.make_type_32.loc6_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_22.1: type = value_of_initializer %int.make_type_32.loc6_22 [template = i32] // CHECK:STDOUT: %.loc6_22.2: type = converted %int.make_type_32.loc6_22, %.loc6_22.1 [template = i32] -// CHECK:STDOUT: %param.loc6_12: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_19 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Int.ref: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] diff --git a/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon b/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon index be13d79c1415f..ec01b4c2b7ca9 100644 --- a/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon +++ b/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon @@ -109,10 +109,10 @@ var m: UInt(1000000000); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_12.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_12.2: type = converted %int.make_type_32, %.loc4_12.1 [template = i32] -// CHECK:STDOUT: %param.loc4_10: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc4_10 -// CHECK:STDOUT: %param.loc4_17: type = param runtime_param1 -// CHECK:STDOUT: %return: ref type = return_slot %param.loc4_17 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: type = param runtime_param1 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -185,10 +185,10 @@ var m: UInt(1000000000); // CHECK:STDOUT: %int.make_type_unsigned.loc6_26: init type = call %UInt.ref.loc6_22(%.loc6_27) [template = constants.%.3] // CHECK:STDOUT: %.loc6_29.1: type = value_of_initializer %int.make_type_unsigned.loc6_26 [template = constants.%.3] // CHECK:STDOUT: %.loc6_29.2: type = converted %int.make_type_unsigned.loc6_26, %.loc6_29.1 [template = constants.%.3] -// CHECK:STDOUT: %param.loc6_7: %.3 = param runtime_param0 -// CHECK:STDOUT: %n: %.3 = bind_name n, %param.loc6_7 -// CHECK:STDOUT: %param.loc6_19: %.3 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param.loc6_19 +// CHECK:STDOUT: %n.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %n: %.3 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %n.patt: %.5 = binding_pattern n @@ -206,10 +206,10 @@ var m: UInt(1000000000); // CHECK:STDOUT: %int.make_type_unsigned.loc10_26: init type = call %UInt.ref.loc10_22(%.loc10_27) [template = constants.%.5] // CHECK:STDOUT: %.loc10_29.1: type = value_of_initializer %int.make_type_unsigned.loc10_26 [template = constants.%.5] // CHECK:STDOUT: %.loc10_29.2: type = converted %int.make_type_unsigned.loc10_26, %.loc10_29.1 [template = constants.%.5] -// CHECK:STDOUT: %param.loc10_7: %.5 = param runtime_param0 -// CHECK:STDOUT: %n: %.5 = bind_name n, %param.loc10_7 -// CHECK:STDOUT: %param.loc10_19: %.5 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.5 = return_slot %param.loc10_19 +// CHECK:STDOUT: %n.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %n: %.5 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.5 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.5 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Symbolic.decl: %Symbolic.type = fn_decl @Symbolic [template = constants.%Symbolic] { // CHECK:STDOUT: %N.patt.loc14_13.1: i32 = symbolic_binding_pattern N, 0 [symbolic = %N.patt.loc14_13.2 (constants.%N.patt)] @@ -232,12 +232,12 @@ var m: UInt(1000000000); // CHECK:STDOUT: %int.make_type_unsigned.loc14_41: init type = call %UInt.ref.loc14_37(%N.ref.loc14_42) [symbolic = %.loc14_29 (constants.%.6)] // CHECK:STDOUT: %.loc14_43.1: type = value_of_initializer %int.make_type_unsigned.loc14_41 [symbolic = %.loc14_29 (constants.%.6)] // CHECK:STDOUT: %.loc14_43.2: type = converted %int.make_type_unsigned.loc14_41, %.loc14_43.1 [symbolic = %.loc14_29 (constants.%.6)] -// CHECK:STDOUT: %param.loc14_14: i32 = param runtime_param -// CHECK:STDOUT: %N.loc14_13.1: i32 = bind_symbolic_name N, 0, %param.loc14_14 [symbolic = %N.loc14_13.2 (constants.%N)] -// CHECK:STDOUT: %param.loc14_23: @Symbolic.%.loc14_29 (%.6) = param runtime_param0 -// CHECK:STDOUT: %x: @Symbolic.%.loc14_29 (%.6) = bind_name x, %param.loc14_23 -// CHECK:STDOUT: %param.loc14_34: @Symbolic.%.loc14_29 (%.6) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Symbolic.%.loc14_29 (%.6) = return_slot %param.loc14_34 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc14_13.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc14_13.2 (constants.%N)] +// CHECK:STDOUT: %x.param: @Symbolic.%.loc14_29 (%.6) = param runtime_param0 +// CHECK:STDOUT: %x: @Symbolic.%.loc14_29 (%.6) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @Symbolic.%.loc14_29 (%.6) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Symbolic.%.loc14_29 (%.6) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -370,10 +370,10 @@ var m: UInt(1000000000); // CHECK:STDOUT: %int.make_type_32.loc6_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_22.1: type = value_of_initializer %int.make_type_32.loc6_22 [template = i32] // CHECK:STDOUT: %.loc6_22.2: type = converted %int.make_type_32.loc6_22, %.loc6_22.1 [template = i32] -// CHECK:STDOUT: %param.loc6_12: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_19 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %UInt.ref: %UInt.type = name_ref UInt, imports.%import_ref.1 [template = constants.%UInt] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] diff --git a/toolchain/check/testdata/builtins/int/neq.carbon b/toolchain/check/testdata/builtins/int/neq.carbon index 4a7eb3c6a8b8d..b397e858744cc 100644 --- a/toolchain/check/testdata/builtins/int/neq.carbon +++ b/toolchain/check/testdata/builtins/int/neq.carbon @@ -93,12 +93,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc2_27.2: type = converted %bool.make_type, %.loc2_27.1 [template = bool] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %True.decl: type = class_decl @True [template = constants.%True] {} {} // CHECK:STDOUT: %False.decl: type = class_decl @False [template = constants.%False] {} {} @@ -110,10 +110,10 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: } { // CHECK:STDOUT: %True.ref.loc7: type = name_ref True, file.%True.decl [template = constants.%True] // CHECK:STDOUT: %False.ref.loc7: type = name_ref False, file.%False.decl [template = constants.%False] -// CHECK:STDOUT: %param.loc7_11: %True = param runtime_param0 -// CHECK:STDOUT: %true_: %True = bind_name true_, %param.loc7_11 -// CHECK:STDOUT: %param.loc7_25: %False = param runtime_param1 -// CHECK:STDOUT: %false_: %False = bind_name false_, %param.loc7_25 +// CHECK:STDOUT: %true_.param: %True = param runtime_param0 +// CHECK:STDOUT: %true_: %True = bind_name true_, %true_.param +// CHECK:STDOUT: %false_.param: %False = param runtime_param1 +// CHECK:STDOUT: %false_: %False = bind_name false_, %false_.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCall.decl: %RuntimeCall.type = fn_decl @RuntimeCall [template = constants.%RuntimeCall] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -132,12 +132,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_35.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_35.2: type = converted %bool.make_type, %.loc12_35.1 [template = bool] -// CHECK:STDOUT: %param.loc12_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc12_17 -// CHECK:STDOUT: %param.loc12_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc12_25 -// CHECK:STDOUT: %param.loc12_32: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc12_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/or.carbon b/toolchain/check/testdata/builtins/int/or.carbon index 0bff654bbf387..1737dfa878e74 100644 --- a/toolchain/check/testdata/builtins/int/or.carbon +++ b/toolchain/check/testdata/builtins/int/or.carbon @@ -77,12 +77,12 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc2_26: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_26.1: type = value_of_initializer %int.make_type_32.loc2_26 [template = i32] // CHECK:STDOUT: %.loc2_26.2: type = converted %int.make_type_32.loc2_26, %.loc2_26.1 [template = i32] -// CHECK:STDOUT: %param.loc2_8: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_8 -// CHECK:STDOUT: %param.loc2_16: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_16 -// CHECK:STDOUT: %param.loc2_23: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_23 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Or.ref: %Or.type = name_ref Or, %Or.decl [template = constants.%Or] @@ -117,12 +117,12 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/int/right_shift.carbon b/toolchain/check/testdata/builtins/int/right_shift.carbon index e9f40fa906904..384574ee0cd58 100644 --- a/toolchain/check/testdata/builtins/int/right_shift.carbon +++ b/toolchain/check/testdata/builtins/int/right_shift.carbon @@ -122,12 +122,12 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc2_34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_34.1: type = value_of_initializer %int.make_type_32.loc2_34 [template = i32] // CHECK:STDOUT: %.loc2_34.2: type = converted %int.make_type_32.loc2_34, %.loc2_34.1 [template = i32] -// CHECK:STDOUT: %param.loc2_16: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_16 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_24 -// CHECK:STDOUT: %param.loc2_31: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_31 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %RightShift.ref: %RightShift.type = name_ref RightShift, %RightShift.decl [template = constants.%RightShift] @@ -162,12 +162,12 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -260,12 +260,12 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc6_34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_34.1: type = value_of_initializer %int.make_type_32.loc6_34 [template = i32] // CHECK:STDOUT: %.loc6_34.2: type = converted %int.make_type_32.loc6_34, %.loc6_34.1 [template = i32] -// CHECK:STDOUT: %param.loc6_16: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc6_16 -// CHECK:STDOUT: %param.loc6_24: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc6_24 -// CHECK:STDOUT: %param.loc6_31: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_31 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -279,10 +279,10 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc7_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_22.1: type = value_of_initializer %int.make_type_32.loc7_22 [template = i32] // CHECK:STDOUT: %.loc7_22.2: type = converted %int.make_type_32.loc7_22, %.loc7_22.1 [template = i32] -// CHECK:STDOUT: %param.loc7_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_12 -// CHECK:STDOUT: %param.loc7_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc10: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Negate.ref.loc10_17: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] @@ -412,12 +412,12 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc4_34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_34.1: type = value_of_initializer %int.make_type_32.loc4_34 [template = i32] // CHECK:STDOUT: %.loc4_34.2: type = converted %int.make_type_32.loc4_34, %.loc4_34.1 [template = i32] -// CHECK:STDOUT: %param.loc4_16: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_16 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_24 -// CHECK:STDOUT: %param.loc4_31: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_31 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -431,10 +431,10 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %int.make_type_32.loc5_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_22.1: type = value_of_initializer %int.make_type_32.loc5_22 [template = i32] // CHECK:STDOUT: %.loc5_22.2: type = converted %int.make_type_32.loc5_22, %.loc5_22.1 [template = i32] -// CHECK:STDOUT: %param.loc5_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_12 -// CHECK:STDOUT: %param.loc5_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_13.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/sadd.carbon b/toolchain/check/testdata/builtins/int/sadd.carbon index 5467ff889768b..c570a8ff20145 100644 --- a/toolchain/check/testdata/builtins/int/sadd.carbon +++ b/toolchain/check/testdata/builtins/int/sadd.carbon @@ -147,12 +147,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] @@ -187,12 +187,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -291,10 +291,10 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc8_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_22.1: type = value_of_initializer %int.make_type_32.loc8_22 [template = i32] // CHECK:STDOUT: %.loc8_22.2: type = converted %int.make_type_32.loc8_22, %.loc8_22.1 [template = i32] -// CHECK:STDOUT: %param.loc8_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc8_12 -// CHECK:STDOUT: %param.loc8_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc8_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -318,14 +318,14 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc13_39: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_39.1: type = value_of_initializer %int.make_type_32.loc13_39 [template = i32] // CHECK:STDOUT: %.loc13_39.2: type = converted %int.make_type_32.loc13_39, %.loc13_39.1 [template = i32] -// CHECK:STDOUT: %param.loc13_13: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_29: i32 = param runtime_param2 -// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc13_29 -// CHECK:STDOUT: %param.loc13_36: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_36 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: i32 = param runtime_param2 +// CHECK:STDOUT: %c: i32 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -344,12 +344,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc18_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc18_37.2: type = converted %bool.make_type, %.loc18_37.1 [template = bool] -// CHECK:STDOUT: %param.loc18_19: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc18_19 -// CHECK:STDOUT: %param.loc18_27: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc18_27 -// CHECK:STDOUT: %param.loc18_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc18_34 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -368,12 +368,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc19_33: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_33.1: type = value_of_initializer %int.make_type_32.loc19_33 [template = i32] // CHECK:STDOUT: %.loc19_33.2: type = converted %int.make_type_32.loc19_33, %.loc19_33.1 [template = i32] -// CHECK:STDOUT: %param.loc19_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc19_15 -// CHECK:STDOUT: %param.loc19_23: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc19_23 -// CHECK:STDOUT: %param.loc19_30: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] @@ -418,10 +418,10 @@ let b: i32 = Add(0x7FFFFFFF, 1); // 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.2: type = converted %int.make_type_32.loc46_33, %.loc46_33.1 [template = i32] -// CHECK:STDOUT: %param.loc46_23: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc46_23 -// CHECK:STDOUT: %param.loc46_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc46_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -445,14 +445,14 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc50_50: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc50_50.1: type = value_of_initializer %int.make_type_32.loc50_50 [template = i32] // CHECK:STDOUT: %.loc50_50.2: type = converted %int.make_type_32.loc50_50, %.loc50_50.1 [template = i32] -// CHECK:STDOUT: %param.loc50_24: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc50_24 -// CHECK:STDOUT: %param.loc50_32: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc50_32 -// CHECK:STDOUT: %param.loc50_40: i32 = param runtime_param2 -// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc50_40 -// CHECK:STDOUT: %param.loc50_47: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc50_47 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: i32 = param runtime_param2 +// CHECK:STDOUT: %c: i32 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -471,12 +471,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc54_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc54_48.2: type = converted %bool.make_type, %.loc54_48.1 [template = bool] -// CHECK:STDOUT: %param.loc54_30: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc54_30 -// CHECK:STDOUT: %param.loc54_38: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc54_38 -// CHECK:STDOUT: %param.loc54_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc54_45 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -579,12 +579,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_8.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/sdiv.carbon b/toolchain/check/testdata/builtins/int/sdiv.carbon index d633518f93146..e2e550f9f7fd3 100644 --- a/toolchain/check/testdata/builtins/int/sdiv.carbon +++ b/toolchain/check/testdata/builtins/int/sdiv.carbon @@ -115,12 +115,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Div.ref: %Div.type = name_ref Div, %Div.decl [template = constants.%Div] @@ -155,12 +155,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -249,12 +249,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -273,12 +273,12 @@ let b: i32 = Div(0, 0); // 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.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32] -// CHECK:STDOUT: %param.loc5_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_17 -// CHECK:STDOUT: %param.loc5_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -292,10 +292,10 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc6_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_22.1: type = value_of_initializer %int.make_type_32.loc6_22 [template = i32] // CHECK:STDOUT: %.loc6_22.2: type = converted %int.make_type_32.loc6_22, %.loc6_22.1 [template = i32] -// CHECK:STDOUT: %param.loc6_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc9: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc9_8.1: type = value_of_initializer %int.make_type_32.loc9 [template = i32] @@ -424,12 +424,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc10: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_8.1: type = value_of_initializer %int.make_type_32.loc10 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/smod.carbon b/toolchain/check/testdata/builtins/int/smod.carbon index fe32655a9b122..1691043ddb5fa 100644 --- a/toolchain/check/testdata/builtins/int/smod.carbon +++ b/toolchain/check/testdata/builtins/int/smod.carbon @@ -118,12 +118,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mod.ref: %Mod.type = name_ref Mod, %Mod.decl [template = constants.%Mod] @@ -158,12 +158,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -253,12 +253,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -277,12 +277,12 @@ let b: i32 = Mod(0, 0); // 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.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32] -// CHECK:STDOUT: %param.loc5_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_17 -// CHECK:STDOUT: %param.loc5_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -296,10 +296,10 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc6_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_22.1: type = value_of_initializer %int.make_type_32.loc6_22 [template = i32] // CHECK:STDOUT: %.loc6_22.2: type = converted %int.make_type_32.loc6_22, %.loc6_22.1 [template = i32] -// CHECK:STDOUT: %param.loc6_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc9: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc9_8.1: type = value_of_initializer %int.make_type_32.loc9 [template = i32] @@ -428,12 +428,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_8.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/smul.carbon b/toolchain/check/testdata/builtins/int/smul.carbon index 28e6ca05fbf21..198e717f0947f 100644 --- a/toolchain/check/testdata/builtins/int/smul.carbon +++ b/toolchain/check/testdata/builtins/int/smul.carbon @@ -89,12 +89,12 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mul.ref: %Mul.type = name_ref Mul, %Mul.decl [template = constants.%Mul] @@ -129,12 +129,12 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -216,12 +216,12 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_8.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/snegate.carbon b/toolchain/check/testdata/builtins/int/snegate.carbon index 43fbc2e73703f..84d61e5ae1145 100644 --- a/toolchain/check/testdata/builtins/int/snegate.carbon +++ b/toolchain/check/testdata/builtins/int/snegate.carbon @@ -171,10 +171,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc2_22, %.loc2_22.1 [template = i32] -// CHECK:STDOUT: %param.loc2_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_12 -// CHECK:STDOUT: %param.loc2_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] @@ -215,12 +215,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc9_35, %.loc9_35.1 [template = i32] -// CHECK:STDOUT: %param.loc9_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc9_17 -// CHECK:STDOUT: %param.loc9_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc9_25 -// CHECK:STDOUT: %param.loc9_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc9_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -318,8 +318,8 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_16.2: type = converted %int.make_type_32, %.loc8_16.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -338,12 +338,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc13_31, %.loc13_31.1 [template = i32] -// CHECK:STDOUT: %param.loc13_13: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_28: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_28 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -357,10 +357,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %bool.make_type, %.loc18_29.1 [template = bool] -// CHECK:STDOUT: %param.loc18_19: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc18_19 -// CHECK:STDOUT: %param.loc18_26: bool = param runtime_param1 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc18_26 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: bool = param runtime_param1 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -374,10 +374,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc19_25, %.loc19_25.1 [template = i32] -// CHECK:STDOUT: %param.loc19_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc19_15 -// CHECK:STDOUT: %param.loc19_22: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_22 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] @@ -418,10 +418,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc46_33, %.loc46_33.1 [template = i32] -// CHECK:STDOUT: %param.loc46_23: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc46_23 -// CHECK:STDOUT: %param.loc46_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc46_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -445,14 +445,14 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc57_50, %.loc57_50.1 [template = i32] -// CHECK:STDOUT: %param.loc57_24: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc57_24 -// CHECK:STDOUT: %param.loc57_32: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc57_32 -// CHECK:STDOUT: %param.loc57_40: i32 = param runtime_param2 -// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc57_40 -// CHECK:STDOUT: %param.loc57_47: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc57_47 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: i32 = param runtime_param2 +// CHECK:STDOUT: %c: i32 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -471,12 +471,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %bool.make_type, %.loc68_48.1 [template = bool] -// CHECK:STDOUT: %param.loc68_30: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc68_30 -// CHECK:STDOUT: %param.loc68_38: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc68_38 -// CHECK:STDOUT: %param.loc68_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc68_45 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -568,10 +568,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc4_22, %.loc4_22.1 [template = i32] -// CHECK:STDOUT: %param.loc4_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_12 -// CHECK:STDOUT: %param.loc4_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -590,12 +590,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32] -// CHECK:STDOUT: %param.loc5_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_17 -// CHECK:STDOUT: %param.loc5_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] diff --git a/toolchain/check/testdata/builtins/int/ssub.carbon b/toolchain/check/testdata/builtins/int/ssub.carbon index 6a36b7619f798..b12c539ce2f6c 100644 --- a/toolchain/check/testdata/builtins/int/ssub.carbon +++ b/toolchain/check/testdata/builtins/int/ssub.carbon @@ -90,12 +90,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, %Sub.decl [template = constants.%Sub] @@ -130,12 +130,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -219,12 +219,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_8.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/uadd.carbon b/toolchain/check/testdata/builtins/int/uadd.carbon index f9c5d4b243453..bb429528f9b0a 100644 --- a/toolchain/check/testdata/builtins/int/uadd.carbon +++ b/toolchain/check/testdata/builtins/int/uadd.carbon @@ -144,12 +144,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] @@ -184,12 +184,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -288,10 +288,10 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc8_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_22.1: type = value_of_initializer %int.make_type_32.loc8_22 [template = i32] // CHECK:STDOUT: %.loc8_22.2: type = converted %int.make_type_32.loc8_22, %.loc8_22.1 [template = i32] -// CHECK:STDOUT: %param.loc8_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc8_12 -// CHECK:STDOUT: %param.loc8_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc8_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -315,14 +315,14 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc13_39: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_39.1: type = value_of_initializer %int.make_type_32.loc13_39 [template = i32] // CHECK:STDOUT: %.loc13_39.2: type = converted %int.make_type_32.loc13_39, %.loc13_39.1 [template = i32] -// CHECK:STDOUT: %param.loc13_13: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_29: i32 = param runtime_param2 -// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc13_29 -// CHECK:STDOUT: %param.loc13_36: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_36 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: i32 = param runtime_param2 +// CHECK:STDOUT: %c: i32 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -341,12 +341,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc18_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc18_37.2: type = converted %bool.make_type, %.loc18_37.1 [template = bool] -// CHECK:STDOUT: %param.loc18_19: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc18_19 -// CHECK:STDOUT: %param.loc18_27: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc18_27 -// CHECK:STDOUT: %param.loc18_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc18_34 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -365,12 +365,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc19_33: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_33.1: type = value_of_initializer %int.make_type_32.loc19_33 [template = i32] // CHECK:STDOUT: %.loc19_33.2: type = converted %int.make_type_32.loc19_33, %.loc19_33.1 [template = i32] -// CHECK:STDOUT: %param.loc19_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc19_15 -// CHECK:STDOUT: %param.loc19_23: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc19_23 -// CHECK:STDOUT: %param.loc19_30: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] @@ -415,10 +415,10 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc45_33: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc45_33.1: type = value_of_initializer %int.make_type_32.loc45_33 [template = i32] // CHECK:STDOUT: %.loc45_33.2: type = converted %int.make_type_32.loc45_33, %.loc45_33.1 [template = i32] -// CHECK:STDOUT: %param.loc45_23: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc45_23 -// CHECK:STDOUT: %param.loc45_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc45_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -442,14 +442,14 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc49_50: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc49_50.1: type = value_of_initializer %int.make_type_32.loc49_50 [template = i32] // CHECK:STDOUT: %.loc49_50.2: type = converted %int.make_type_32.loc49_50, %.loc49_50.1 [template = i32] -// CHECK:STDOUT: %param.loc49_24: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc49_24 -// CHECK:STDOUT: %param.loc49_32: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc49_32 -// CHECK:STDOUT: %param.loc49_40: i32 = param runtime_param2 -// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc49_40 -// CHECK:STDOUT: %param.loc49_47: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc49_47 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: i32 = param runtime_param2 +// CHECK:STDOUT: %c: i32 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -468,12 +468,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc53_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc53_48.2: type = converted %bool.make_type, %.loc53_48.1 [template = bool] -// CHECK:STDOUT: %param.loc53_30: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc53_30 -// CHECK:STDOUT: %param.loc53_38: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc53_38 -// CHECK:STDOUT: %param.loc53_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc53_45 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -576,12 +576,12 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] diff --git a/toolchain/check/testdata/builtins/int/udiv.carbon b/toolchain/check/testdata/builtins/int/udiv.carbon index 5706d4597d75e..982dd5b98c901 100644 --- a/toolchain/check/testdata/builtins/int/udiv.carbon +++ b/toolchain/check/testdata/builtins/int/udiv.carbon @@ -111,12 +111,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Div.ref: %Div.type = name_ref Div, %Div.decl [template = constants.%Div] @@ -151,12 +151,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -246,12 +246,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -270,12 +270,12 @@ let b: i32 = Div(0, 0); // 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.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32] -// CHECK:STDOUT: %param.loc5_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_17 -// CHECK:STDOUT: %param.loc5_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -289,10 +289,10 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc6_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_22.1: type = value_of_initializer %int.make_type_32.loc6_22 [template = i32] // CHECK:STDOUT: %.loc6_22.2: type = converted %int.make_type_32.loc6_22, %.loc6_22.1 [template = i32] -// CHECK:STDOUT: %param.loc6_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc9: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc9_8.1: type = value_of_initializer %int.make_type_32.loc9 [template = i32] @@ -421,12 +421,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc10: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_8.1: type = value_of_initializer %int.make_type_32.loc10 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/umod.carbon b/toolchain/check/testdata/builtins/int/umod.carbon index 2bece88f0b311..1dc63abe78ee6 100644 --- a/toolchain/check/testdata/builtins/int/umod.carbon +++ b/toolchain/check/testdata/builtins/int/umod.carbon @@ -113,12 +113,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mod.ref: %Mod.type = name_ref Mod, %Mod.decl [template = constants.%Mod] @@ -153,12 +153,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -248,12 +248,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -272,12 +272,12 @@ let b: i32 = Mod(0, 0); // 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.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32] -// CHECK:STDOUT: %param.loc5_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_17 -// CHECK:STDOUT: %param.loc5_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Negate.decl: %Negate.type = fn_decl @Negate [template = constants.%Negate] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -291,10 +291,10 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc6_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_22.1: type = value_of_initializer %int.make_type_32.loc6_22 [template = i32] // CHECK:STDOUT: %.loc6_22.2: type = converted %int.make_type_32.loc6_22, %.loc6_22.1 [template = i32] -// CHECK:STDOUT: %param.loc6_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc9: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc9_8.1: type = value_of_initializer %int.make_type_32.loc9 [template = i32] @@ -423,12 +423,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_8.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/umul.carbon b/toolchain/check/testdata/builtins/int/umul.carbon index 32ac7858864d3..f9e8090d1cf73 100644 --- a/toolchain/check/testdata/builtins/int/umul.carbon +++ b/toolchain/check/testdata/builtins/int/umul.carbon @@ -86,12 +86,12 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mul.ref: %Mul.type = name_ref Mul, %Mul.decl [template = constants.%Mul] @@ -126,12 +126,12 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -213,12 +213,12 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_8.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/unegate.carbon b/toolchain/check/testdata/builtins/int/unegate.carbon index e1e5b3944d42a..245cffc387638 100644 --- a/toolchain/check/testdata/builtins/int/unegate.carbon +++ b/toolchain/check/testdata/builtins/int/unegate.carbon @@ -167,10 +167,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc2_22, %.loc2_22.1 [template = i32] -// CHECK:STDOUT: %param.loc2_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_12 -// CHECK:STDOUT: %param.loc2_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] @@ -211,12 +211,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc9_35, %.loc9_35.1 [template = i32] -// CHECK:STDOUT: %param.loc9_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc9_17 -// CHECK:STDOUT: %param.loc9_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc9_25 -// CHECK:STDOUT: %param.loc9_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc9_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -314,8 +314,8 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_16.2: type = converted %int.make_type_32, %.loc8_16.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TooMany.decl: %TooMany.type = fn_decl @TooMany [template = constants.%TooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -334,12 +334,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc13_31, %.loc13_31.1 [template = i32] -// CHECK:STDOUT: %param.loc13_13: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_13 -// CHECK:STDOUT: %param.loc13_21: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_21 -// CHECK:STDOUT: %param.loc13_28: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_28 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %BadReturnType.decl: %BadReturnType.type = fn_decl @BadReturnType [template = constants.%BadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -353,10 +353,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %bool.make_type, %.loc18_29.1 [template = bool] -// CHECK:STDOUT: %param.loc18_19: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc18_19 -// CHECK:STDOUT: %param.loc18_26: bool = param runtime_param1 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc18_26 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: bool = param runtime_param1 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %JustRight.decl: %JustRight.type = fn_decl @JustRight [template = constants.%JustRight] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -370,10 +370,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc19_25, %.loc19_25.1 [template = i32] -// CHECK:STDOUT: %param.loc19_15: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc19_15 -// CHECK:STDOUT: %param.loc19_22: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_22 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] @@ -414,10 +414,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc46_33, %.loc46_33.1 [template = i32] -// CHECK:STDOUT: %param.loc46_23: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc46_23 -// CHECK:STDOUT: %param.loc46_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc46_30 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallTooMany.decl: %RuntimeCallTooMany.type = fn_decl @RuntimeCallTooMany [template = constants.%RuntimeCallTooMany] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -441,14 +441,14 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc57_50, %.loc57_50.1 [template = i32] -// CHECK:STDOUT: %param.loc57_24: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc57_24 -// CHECK:STDOUT: %param.loc57_32: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc57_32 -// CHECK:STDOUT: %param.loc57_40: i32 = param runtime_param2 -// CHECK:STDOUT: %c: i32 = bind_name c, %param.loc57_40 -// CHECK:STDOUT: %param.loc57_47: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc57_47 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: i32 = param runtime_param2 +// CHECK:STDOUT: %c: i32 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %RuntimeCallBadReturnType.decl: %RuntimeCallBadReturnType.type = fn_decl @RuntimeCallBadReturnType [template = constants.%RuntimeCallBadReturnType] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -467,12 +467,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %bool.make_type, %.loc68_48.1 [template = bool] -// CHECK:STDOUT: %param.loc68_30: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc68_30 -// CHECK:STDOUT: %param.loc68_38: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc68_38 -// CHECK:STDOUT: %param.loc68_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc68_45 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -564,10 +564,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc4_22, %.loc4_22.1 [template = i32] -// CHECK:STDOUT: %param.loc4_12: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_12 -// CHECK:STDOUT: %param.loc4_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_19 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sub.decl: %Sub.type = fn_decl @Sub [template = constants.%Sub] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -586,12 +586,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // 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.2: type = converted %int.make_type_32.loc5_27, %.loc5_27.1 [template = i32] -// CHECK:STDOUT: %param.loc5_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_17 -// CHECK:STDOUT: %param.loc5_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // 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] diff --git a/toolchain/check/testdata/builtins/int/usub.carbon b/toolchain/check/testdata/builtins/int/usub.carbon index 6fb16deed190a..8f752ac2948f4 100644 --- a/toolchain/check/testdata/builtins/int/usub.carbon +++ b/toolchain/check/testdata/builtins/int/usub.carbon @@ -87,12 +87,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, %Sub.decl [template = constants.%Sub] @@ -127,12 +127,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -216,12 +216,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %int.make_type_32.loc4_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32.loc4_27 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32.loc4_27, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc4_9 -// CHECK:STDOUT: %param.loc4_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc4_17 -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_8.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] diff --git a/toolchain/check/testdata/builtins/int/xor.carbon b/toolchain/check/testdata/builtins/int/xor.carbon index 482436012d418..a2f1c394b9cd3 100644 --- a/toolchain/check/testdata/builtins/int/xor.carbon +++ b/toolchain/check/testdata/builtins/int/xor.carbon @@ -77,12 +77,12 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc2_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_27.1: type = value_of_initializer %int.make_type_32.loc2_27 [template = i32] // CHECK:STDOUT: %.loc2_27.2: type = converted %int.make_type_32.loc2_27, %.loc2_27.1 [template = i32] -// CHECK:STDOUT: %param.loc2_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc2_9 -// CHECK:STDOUT: %param.loc2_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc2_17 -// CHECK:STDOUT: %param.loc2_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc2_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Xor.ref: %Xor.type = name_ref Xor, %Xor.decl [template = constants.%Xor] @@ -117,12 +117,12 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc7_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_35.1: type = value_of_initializer %int.make_type_32.loc7_35 [template = i32] // CHECK:STDOUT: %.loc7_35.2: type = converted %int.make_type_32.loc7_35, %.loc7_35.1 [template = i32] -// CHECK:STDOUT: %param.loc7_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/builtins/print.carbon b/toolchain/check/testdata/builtins/print.carbon index 5273cd739336b..7848be08d91da 100644 --- a/toolchain/check/testdata/builtins/print.carbon +++ b/toolchain/check/testdata/builtins/print.carbon @@ -63,8 +63,8 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_13.2: type = converted %int.make_type_32, %.loc11_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/access_modifers.carbon b/toolchain/check/testdata/class/access_modifers.carbon index 0279008fbb000..ab67a4fca6517 100644 --- a/toolchain/check/testdata/class/access_modifers.carbon +++ b/toolchain/check/testdata/class/access_modifers.carbon @@ -210,16 +210,16 @@ class A { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_40.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_40.2: type = converted %int.make_type_32, %.loc8_40.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Make.decl: %Make.type = fn_decl @Make [template = constants.%Make] { // CHECK:STDOUT: %return.patt: %Circle = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %Circle = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Circle [template = constants.%Circle] -// CHECK:STDOUT: %param: %Circle = param runtime_param0 -// CHECK:STDOUT: %return: ref %Circle = return_slot %param +// CHECK:STDOUT: %return.param: %Circle = param runtime_param0 +// CHECK:STDOUT: %return: ref %Circle = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.4 [template = constants.%.5] // CHECK:STDOUT: @@ -402,10 +402,10 @@ class A { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_33.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc7_33.2: type = converted %int.make_type_32, %.loc7_33.1 [template = i32] -// CHECK:STDOUT: %param.loc7_20: %Circle = param runtime_param0 -// CHECK:STDOUT: %self: %Circle = bind_name self, %param.loc7_20 -// CHECK:STDOUT: %param.loc7_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_30 +// CHECK:STDOUT: %self.param: %Circle = param runtime_param0 +// CHECK:STDOUT: %self: %Circle = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %SomeInternalFunction.decl: %SomeInternalFunction.type = fn_decl @SomeInternalFunction [template = constants.%SomeInternalFunction] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -414,8 +414,8 @@ class A { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_40.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_40.2: type = converted %int.make_type_32, %.loc11_40.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Compute.decl: %Compute.type = fn_decl @Compute [template = constants.%Compute] { // CHECK:STDOUT: %self.patt: %Circle = binding_pattern self @@ -427,10 +427,10 @@ class A { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_31.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_31.2: type = converted %int.make_type_32, %.loc15_31.1 [template = i32] -// CHECK:STDOUT: %param.loc15_18: %Circle = param runtime_param0 -// CHECK:STDOUT: %self: %Circle = bind_name self, %param.loc15_18 -// CHECK:STDOUT: %param.loc15_28: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc15_28 +// CHECK:STDOUT: %self.param: %Circle = param runtime_param0 +// CHECK:STDOUT: %self: %Circle = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc18: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/adapt.carbon b/toolchain/check/testdata/class/adapt.carbon index 71d9130b0193b..deefb19e43051 100644 --- a/toolchain/check/testdata/class/adapt.carbon +++ b/toolchain/check/testdata/class/adapt.carbon @@ -176,8 +176,8 @@ fn F(a: AdaptNotExtend) { // CHECK:STDOUT: %a.param_patt: %AdaptNotExtend = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %AdaptNotExtend.ref: type = name_ref AdaptNotExtend, file.%AdaptNotExtend.decl [template = constants.%AdaptNotExtend] -// CHECK:STDOUT: %param: %AdaptNotExtend = param runtime_param0 -// CHECK:STDOUT: %a: %AdaptNotExtend = bind_name a, %param +// CHECK:STDOUT: %a.param: %AdaptNotExtend = param runtime_param0 +// CHECK:STDOUT: %a: %AdaptNotExtend = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/base.carbon b/toolchain/check/testdata/class/base.carbon index 4133c24e28f81..fc8d9b62be61a 100644 --- a/toolchain/check/testdata/class/base.carbon +++ b/toolchain/check/testdata/class/base.carbon @@ -90,8 +90,8 @@ fn Access(d: Derived) -> (i32, i32) { // CHECK:STDOUT: %return.param_patt: %Derived = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Derived.ref: type = name_ref Derived, file.%Derived.decl [template = constants.%Derived] -// CHECK:STDOUT: %param: %Derived = param runtime_param0 -// CHECK:STDOUT: %return: ref %Derived = return_slot %param +// CHECK:STDOUT: %return.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %return: ref %Derived = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Access.decl: %Access.type = fn_decl @Access [template = constants.%Access] { // CHECK:STDOUT: %d.patt: %Derived = binding_pattern d @@ -108,10 +108,10 @@ fn Access(d: Derived) -> (i32, i32) { // CHECK:STDOUT: %.loc25_35.4: type = value_of_initializer %int.make_type_32.loc25_32 [template = i32] // CHECK:STDOUT: %.loc25_35.5: type = converted %int.make_type_32.loc25_32, %.loc25_35.4 [template = i32] // CHECK:STDOUT: %.loc25_35.6: type = converted %.loc25_35.1, constants.%.17 [template = constants.%.17] -// CHECK:STDOUT: %param.loc25_12: %Derived = param runtime_param0 -// CHECK:STDOUT: %d: %Derived = bind_name d, %param.loc25_12 -// CHECK:STDOUT: %param.loc25_23: %.17 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.17 = return_slot %param.loc25_23 +// CHECK:STDOUT: %d.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %d: %Derived = bind_name d, %d.param +// CHECK:STDOUT: %return.param: %.17 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.17 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/base_field.carbon b/toolchain/check/testdata/class/base_field.carbon index 5c1fef7e15aaa..d62483f718085 100644 --- a/toolchain/check/testdata/class/base_field.carbon +++ b/toolchain/check/testdata/class/base_field.carbon @@ -87,10 +87,10 @@ fn Access(p: Derived*) -> i32* { // CHECK:STDOUT: %.loc24_30.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc24_30.2: type = converted %int.make_type_32, %.loc24_30.1 [template = i32] // CHECK:STDOUT: %.loc24_30.3: type = ptr_type i32 [template = constants.%.11] -// CHECK:STDOUT: %param.loc24_12: %.10 = param runtime_param0 -// CHECK:STDOUT: %p: %.10 = bind_name p, %param.loc24_12 -// CHECK:STDOUT: %param.loc24_24: %.11 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.11 = return_slot %param.loc24_24 +// CHECK:STDOUT: %p.param: %.10 = param runtime_param0 +// CHECK:STDOUT: %p: %.10 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.11 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.11 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/base_method.carbon b/toolchain/check/testdata/class/base_method.carbon index 17212488eb077..bb353569302ec 100644 --- a/toolchain/check/testdata/class/base_method.carbon +++ b/toolchain/check/testdata/class/base_method.carbon @@ -83,8 +83,8 @@ fn Call(p: Derived*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc17: type = name_ref Self, constants.%Base [template = constants.%Base] // CHECK:STDOUT: %.loc17_26: type = ptr_type %Base [template = constants.%.3] -// CHECK:STDOUT: %param.loc17: %.3 = param runtime_param0 -// CHECK:STDOUT: %self.loc17: %.3 = bind_name self, %param.loc17 +// CHECK:STDOUT: %self.param.loc17: %.3 = param runtime_param0 +// CHECK:STDOUT: %self.loc17: %.3 = bind_name self, %self.param.loc17 // CHECK:STDOUT: } // CHECK:STDOUT: %Derived.decl: type = class_decl @Derived [template = constants.%Derived] {} {} // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [template = constants.%Call] { @@ -93,8 +93,8 @@ fn Call(p: Derived*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Derived.ref: type = name_ref Derived, file.%Derived.decl [template = constants.%Derived] // CHECK:STDOUT: %.loc25: type = ptr_type %Derived [template = constants.%.11] -// CHECK:STDOUT: %param: %.11 = param runtime_param0 -// CHECK:STDOUT: %p: %.11 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.11 = param runtime_param0 +// CHECK:STDOUT: %p: %.11 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -110,8 +110,8 @@ fn Call(p: Derived*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc14: type = name_ref Self, constants.%Base [template = constants.%Base] // CHECK:STDOUT: %.loc14: type = ptr_type %Base [template = constants.%.3] -// CHECK:STDOUT: %param.loc14: %.3 = param runtime_param0 -// CHECK:STDOUT: %self.loc14: %.3 = bind_name self, %param.loc14 +// CHECK:STDOUT: %self.param.loc14: %.3 = param runtime_param0 +// CHECK:STDOUT: %self.loc14: %.3 = bind_name self, %self.param.loc14 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.4 [template = constants.%.5] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/base_method_qualified.carbon b/toolchain/check/testdata/class/base_method_qualified.carbon index 0f3bc4711ff1f..5affc9ff0d03b 100644 --- a/toolchain/check/testdata/class/base_method_qualified.carbon +++ b/toolchain/check/testdata/class/base_method_qualified.carbon @@ -112,10 +112,10 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc25_24.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc25_24.2: type = converted %int.make_type_32, %.loc25_24.1 [template = i32] -// CHECK:STDOUT: %param.loc25_10: %Derived = param runtime_param0 -// CHECK:STDOUT: %a: %Derived = bind_name a, %param.loc25_10 -// CHECK:STDOUT: %param.loc25_21: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc25_21 +// CHECK:STDOUT: %a.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %a: %Derived = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallIndirect.decl: %CallIndirect.type = fn_decl @CallIndirect [template = constants.%CallIndirect] { // CHECK:STDOUT: %p.patt: %.10 = binding_pattern p @@ -128,10 +128,10 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc29_33.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc29_33.2: type = converted %int.make_type_32, %.loc29_33.1 [template = i32] -// CHECK:STDOUT: %param.loc29_18: %.10 = param runtime_param0 -// CHECK:STDOUT: %p: %.10 = bind_name p, %param.loc29_18 -// CHECK:STDOUT: %param.loc29_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc29_30 +// CHECK:STDOUT: %p.param: %.10 = param runtime_param0 +// CHECK:STDOUT: %p: %.10 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %PassDerivedToBase.decl: %PassDerivedToBase.type = fn_decl @PassDerivedToBase [template = constants.%PassDerivedToBase] { // CHECK:STDOUT: %a.patt: %Derived = binding_pattern a @@ -143,10 +143,10 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc33_37.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc33_37.2: type = converted %int.make_type_32, %.loc33_37.1 [template = i32] -// CHECK:STDOUT: %param.loc33_23: %Derived = param runtime_param0 -// CHECK:STDOUT: %a: %Derived = bind_name a, %param.loc33_23 -// CHECK:STDOUT: %param.loc33_34: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc33_34 +// CHECK:STDOUT: %a.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %a: %Derived = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %PassDerivedToBaseIndirect.decl: %PassDerivedToBaseIndirect.type = fn_decl @PassDerivedToBaseIndirect [template = constants.%PassDerivedToBaseIndirect] { // CHECK:STDOUT: %p.patt: %.10 = binding_pattern p @@ -159,10 +159,10 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc37_46.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc37_46.2: type = converted %int.make_type_32, %.loc37_46.1 [template = i32] -// CHECK:STDOUT: %param.loc37_31: %.10 = param runtime_param0 -// CHECK:STDOUT: %p: %.10 = bind_name p, %param.loc37_31 -// CHECK:STDOUT: %param.loc37_43: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc37_43 +// CHECK:STDOUT: %p.param: %.10 = param runtime_param0 +// CHECK:STDOUT: %p: %.10 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -174,16 +174,16 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %self.param_patt: %Derived = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Derived [template = constants.%Derived] -// CHECK:STDOUT: %param: %Derived = param runtime_param0 -// CHECK:STDOUT: %self: %Derived = bind_name self, %param +// CHECK:STDOUT: %self.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %self: %Derived = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type.2 = fn_decl @G.2 [template = constants.%G.2] { // CHECK:STDOUT: %self.patt: %Derived = binding_pattern self // CHECK:STDOUT: %self.param_patt: %Derived = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Derived [template = constants.%Derived] -// CHECK:STDOUT: %param: %Derived = param runtime_param0 -// CHECK:STDOUT: %self: %Derived = bind_name self, %param +// CHECK:STDOUT: %self.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %self: %Derived = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc23: = complete_type_witness %.6 [template = constants.%.7] // CHECK:STDOUT: @@ -206,10 +206,10 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_25.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_25.2: type = converted %int.make_type_32, %.loc14_25.1 [template = i32] -// CHECK:STDOUT: %param.loc14_12: %Base = param runtime_param0 -// CHECK:STDOUT: %self: %Base = bind_name self, %param.loc14_12 -// CHECK:STDOUT: %param.loc14_22: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc14_22 +// CHECK:STDOUT: %self.param: %Base = param runtime_param0 +// CHECK:STDOUT: %self: %Base = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type.1 = fn_decl @G.1 [template = constants.%G.1] { // CHECK:STDOUT: %self.patt: %Derived = binding_pattern self @@ -221,10 +221,10 @@ fn PassDerivedToBaseIndirect(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_28.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_28.2: type = converted %int.make_type_32, %.loc15_28.1 [template = i32] -// CHECK:STDOUT: %param.loc15_12: %Derived = param runtime_param0 -// CHECK:STDOUT: %self: %Derived = bind_name self, %param.loc15_12 -// CHECK:STDOUT: %param.loc15_25: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc15_25 +// CHECK:STDOUT: %self.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %self: %Derived = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/base_method_shadow.carbon b/toolchain/check/testdata/class/base_method_shadow.carbon index 227fdd91d9a82..e8ccba97c96eb 100644 --- a/toolchain/check/testdata/class/base_method_shadow.carbon +++ b/toolchain/check/testdata/class/base_method_shadow.carbon @@ -114,14 +114,14 @@ fn Call(a: A*, b: B*, c: C*, d: D*) { // CHECK:STDOUT: %.loc29_27: type = ptr_type %C [template = constants.%.13] // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D.decl [template = constants.%D] // CHECK:STDOUT: %.loc29_34: type = ptr_type %D [template = constants.%.17] -// CHECK:STDOUT: %param.loc29_10: %.1 = param runtime_param0 -// CHECK:STDOUT: %a: %.1 = bind_name a, %param.loc29_10 -// CHECK:STDOUT: %param.loc29_17: %.7 = param runtime_param1 -// CHECK:STDOUT: %b: %.7 = bind_name b, %param.loc29_17 -// CHECK:STDOUT: %param.loc29_24: %.13 = param runtime_param2 -// CHECK:STDOUT: %c: %.13 = bind_name c, %param.loc29_24 -// CHECK:STDOUT: %param.loc29_31: %.17 = param runtime_param3 -// CHECK:STDOUT: %d: %.17 = bind_name d, %param.loc29_31 +// CHECK:STDOUT: %a.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %a: %.1 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %.7 = param runtime_param1 +// CHECK:STDOUT: %b: %.7 = bind_name b, %b.param +// CHECK:STDOUT: %c.param: %.13 = param runtime_param2 +// CHECK:STDOUT: %c: %.13 = bind_name c, %c.param +// CHECK:STDOUT: %d.param: %.17 = param runtime_param3 +// CHECK:STDOUT: %d: %.17 = bind_name d, %d.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -133,8 +133,8 @@ fn Call(a: A*, b: B*, c: C*, d: D*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%A [template = constants.%A] // CHECK:STDOUT: %.loc12_23: type = ptr_type %A [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %self: %.1 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %self: %.1 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: @@ -153,8 +153,8 @@ fn Call(a: A*, b: B*, c: C*, d: D*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%B [template = constants.%B] // CHECK:STDOUT: %.loc17_23: type = ptr_type %B [template = constants.%.7] -// CHECK:STDOUT: %param: %.7 = param runtime_param0 -// CHECK:STDOUT: %self: %.7 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %self: %.7 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc18: = complete_type_witness %.8 [template = constants.%.9] // CHECK:STDOUT: @@ -175,8 +175,8 @@ fn Call(a: A*, b: B*, c: C*, d: D*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [template = constants.%C] // CHECK:STDOUT: %.loc22_23: type = ptr_type %C [template = constants.%.13] -// CHECK:STDOUT: %param: %.13 = param runtime_param0 -// CHECK:STDOUT: %self: %.13 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.13 = param runtime_param0 +// CHECK:STDOUT: %self: %.13 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc23: = complete_type_witness %.14 [template = constants.%.15] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/basic.carbon b/toolchain/check/testdata/class/basic.carbon index 49a5c9fd84503..cdcdc5f168e08 100644 --- a/toolchain/check/testdata/class/basic.carbon +++ b/toolchain/check/testdata/class/basic.carbon @@ -81,10 +81,10 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc21_23: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_23.1: type = value_of_initializer %int.make_type_32.loc21_23 [template = i32] // CHECK:STDOUT: %.loc21_23.2: type = converted %int.make_type_32.loc21_23, %.loc21_23.1 [template = i32] -// CHECK:STDOUT: %param.loc21_13: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc21: i32 = bind_name n, %param.loc21_13 -// CHECK:STDOUT: %param.loc21_20: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc21_20 +// CHECK:STDOUT: %n.param.loc21: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc21: i32 = bind_name n, %n.param.loc21 +// CHECK:STDOUT: %return.param.loc21: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc21 // CHECK:STDOUT: } // CHECK:STDOUT: %Run.decl: %Run.type = fn_decl @Run [template = constants.%Run] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -93,8 +93,8 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc25_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc25_13.2: type = converted %int.make_type_32, %.loc25_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -111,10 +111,10 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_19.1: type = value_of_initializer %int.make_type_32.loc12_19 [template = i32] // CHECK:STDOUT: %.loc12_19.2: type = converted %int.make_type_32.loc12_19, %.loc12_19.1 [template = i32] -// CHECK:STDOUT: %param.loc12_9: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc12_9 -// CHECK:STDOUT: %param.loc12_16: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc12_16 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -128,10 +128,10 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc16_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_19.1: type = value_of_initializer %int.make_type_32.loc16_19 [template = i32] // CHECK:STDOUT: %.loc16_19.2: type = converted %int.make_type_32.loc16_19, %.loc16_19.1 [template = i32] -// CHECK:STDOUT: %param.loc16_9: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc16: i32 = bind_name n, %param.loc16_9 -// CHECK:STDOUT: %param.loc16_16: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc16_16: ref i32 = return_slot %param.loc16_16 +// CHECK:STDOUT: %n.param.loc16: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc16: i32 = bind_name n, %n.param.loc16 +// CHECK:STDOUT: %return.param.loc16: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc16_16: ref i32 = return_slot %return.param.loc16 // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_10.1: type = value_of_initializer %int.make_type_32 [template = i32] diff --git a/toolchain/check/testdata/class/complete_in_member_fn.carbon b/toolchain/check/testdata/class/complete_in_member_fn.carbon index c2b1907f034e3..37a10fb8cb91b 100644 --- a/toolchain/check/testdata/class/complete_in_member_fn.carbon +++ b/toolchain/check/testdata/class/complete_in_member_fn.carbon @@ -64,10 +64,10 @@ class C { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_17.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_17.2: type = converted %int.make_type_32, %.loc12_17.1 [template = i32] -// CHECK:STDOUT: %param.loc12_9: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param.loc12_9 -// CHECK:STDOUT: %param.loc12_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc12_14 +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_10.1: type = value_of_initializer %int.make_type_32 [template = i32] diff --git a/toolchain/check/testdata/class/compound_field.carbon b/toolchain/check/testdata/class/compound_field.carbon index e0e4bff49a86a..64b74a5518e68 100644 --- a/toolchain/check/testdata/class/compound_field.carbon +++ b/toolchain/check/testdata/class/compound_field.carbon @@ -106,10 +106,10 @@ fn AccessBaseIndirect(p: Derived*) -> i32* { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc24_33.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc24_33.2: type = converted %int.make_type_32, %.loc24_33.1 [template = i32] -// CHECK:STDOUT: %param.loc24_19: %Derived = param runtime_param0 -// CHECK:STDOUT: %d: %Derived = bind_name d, %param.loc24_19 -// CHECK:STDOUT: %param.loc24_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc24_30 +// CHECK:STDOUT: %d.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %d: %Derived = bind_name d, %d.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessBase.decl: %AccessBase.type = fn_decl @AccessBase [template = constants.%AccessBase] { // CHECK:STDOUT: %d.patt: %Derived = binding_pattern d @@ -121,10 +121,10 @@ fn AccessBaseIndirect(p: Derived*) -> i32* { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc28_30.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc28_30.2: type = converted %int.make_type_32, %.loc28_30.1 [template = i32] -// CHECK:STDOUT: %param.loc28_16: %Derived = param runtime_param0 -// CHECK:STDOUT: %d: %Derived = bind_name d, %param.loc28_16 -// CHECK:STDOUT: %param.loc28_27: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc28_27 +// CHECK:STDOUT: %d.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %d: %Derived = bind_name d, %d.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessDerivedIndirect.decl: %AccessDerivedIndirect.type = fn_decl @AccessDerivedIndirect [template = constants.%AccessDerivedIndirect] { // CHECK:STDOUT: %p.patt: %.13 = binding_pattern p @@ -138,10 +138,10 @@ fn AccessBaseIndirect(p: Derived*) -> i32* { // CHECK:STDOUT: %.loc32_45.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc32_45.2: type = converted %int.make_type_32, %.loc32_45.1 [template = i32] // CHECK:STDOUT: %.loc32_45.3: type = ptr_type i32 [template = constants.%.14] -// CHECK:STDOUT: %param.loc32_27: %.13 = param runtime_param0 -// CHECK:STDOUT: %p: %.13 = bind_name p, %param.loc32_27 -// CHECK:STDOUT: %param.loc32_39: %.14 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.14 = return_slot %param.loc32_39 +// CHECK:STDOUT: %p.param: %.13 = param runtime_param0 +// CHECK:STDOUT: %p: %.13 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.14 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.14 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessBaseIndirect.decl: %AccessBaseIndirect.type = fn_decl @AccessBaseIndirect [template = constants.%AccessBaseIndirect] { // CHECK:STDOUT: %p.patt: %.13 = binding_pattern p @@ -155,10 +155,10 @@ fn AccessBaseIndirect(p: Derived*) -> i32* { // CHECK:STDOUT: %.loc36_42.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc36_42.2: type = converted %int.make_type_32, %.loc36_42.1 [template = i32] // CHECK:STDOUT: %.loc36_42.3: type = ptr_type i32 [template = constants.%.14] -// CHECK:STDOUT: %param.loc36_24: %.13 = param runtime_param0 -// CHECK:STDOUT: %p: %.13 = bind_name p, %param.loc36_24 -// CHECK:STDOUT: %param.loc36_36: %.14 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.14 = return_slot %param.loc36_36 +// CHECK:STDOUT: %p.param: %.13 = param runtime_param0 +// CHECK:STDOUT: %p: %.13 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.14 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.14 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/derived_to_base.carbon b/toolchain/check/testdata/class/derived_to_base.carbon index 9ff23394ce778..d4c82bfbda509 100644 --- a/toolchain/check/testdata/class/derived_to_base.carbon +++ b/toolchain/check/testdata/class/derived_to_base.carbon @@ -132,10 +132,10 @@ fn ConvertInit() { // CHECK:STDOUT: %.loc25_20: type = ptr_type %C [template = constants.%.17] // CHECK:STDOUT: %B.ref: type = name_ref B, file.%B.decl [template = constants.%B] // CHECK:STDOUT: %.loc25_27: type = ptr_type %B [template = constants.%.18] -// CHECK:STDOUT: %param.loc25_17: %.17 = param runtime_param0 -// CHECK:STDOUT: %p: %.17 = bind_name p, %param.loc25_17 -// CHECK:STDOUT: %param.loc25_23: %.18 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.18 = return_slot %param.loc25_23 +// CHECK:STDOUT: %p.param: %.17 = param runtime_param0 +// CHECK:STDOUT: %p: %.17 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.18 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.18 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ConvertBToA.decl: %ConvertBToA.type = fn_decl @ConvertBToA [template = constants.%ConvertBToA] { // CHECK:STDOUT: %p.patt: %.18 = binding_pattern p @@ -147,10 +147,10 @@ fn ConvertInit() { // CHECK:STDOUT: %.loc26_20: type = ptr_type %B [template = constants.%.18] // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc26_27: type = ptr_type %A [template = constants.%.22] -// CHECK:STDOUT: %param.loc26_17: %.18 = param runtime_param0 -// CHECK:STDOUT: %p: %.18 = bind_name p, %param.loc26_17 -// CHECK:STDOUT: %param.loc26_23: %.22 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.22 = return_slot %param.loc26_23 +// CHECK:STDOUT: %p.param: %.18 = param runtime_param0 +// CHECK:STDOUT: %p: %.18 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.22 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.22 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ConvertCToA.decl: %ConvertCToA.type = fn_decl @ConvertCToA [template = constants.%ConvertCToA] { // CHECK:STDOUT: %p.patt: %.17 = binding_pattern p @@ -162,18 +162,18 @@ fn ConvertInit() { // CHECK:STDOUT: %.loc27_20: type = ptr_type %C [template = constants.%.17] // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc27_27: type = ptr_type %A [template = constants.%.22] -// CHECK:STDOUT: %param.loc27_17: %.17 = param runtime_param0 -// CHECK:STDOUT: %p: %.17 = bind_name p, %param.loc27_17 -// CHECK:STDOUT: %param.loc27_23: %.22 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.22 = return_slot %param.loc27_23 +// CHECK:STDOUT: %p.param: %.17 = param runtime_param0 +// CHECK:STDOUT: %p: %.17 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.22 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.22 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ConvertValue.decl: %ConvertValue.type = fn_decl @ConvertValue [template = constants.%ConvertValue] { // CHECK:STDOUT: %c.patt: %C = binding_pattern c // CHECK:STDOUT: %c.param_patt: %C = param_pattern %c.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: %ConvertRef.decl: %ConvertRef.type = fn_decl @ConvertRef [template = constants.%ConvertRef] { // CHECK:STDOUT: %c.patt: %.17 = binding_pattern c @@ -185,10 +185,10 @@ fn ConvertInit() { // CHECK:STDOUT: %.loc33_19: type = ptr_type %C [template = constants.%.17] // CHECK:STDOUT: %A.ref.loc33: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc33_26: type = ptr_type %A [template = constants.%.22] -// CHECK:STDOUT: %param.loc33_16: %.17 = param runtime_param0 -// CHECK:STDOUT: %c: %.17 = bind_name c, %param.loc33_16 -// CHECK:STDOUT: %param.loc33_22: %.22 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.22 = return_slot %param.loc33_22 +// CHECK:STDOUT: %c.param: %.17 = param runtime_param0 +// CHECK:STDOUT: %c: %.17 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.22 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.22 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ConvertInit.decl: %ConvertInit.type = fn_decl @ConvertInit [template = constants.%ConvertInit] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/extend_adapt.carbon b/toolchain/check/testdata/class/extend_adapt.carbon index 63942e78cc0d2..53e5f0f7b3065 100644 --- a/toolchain/check/testdata/class/extend_adapt.carbon +++ b/toolchain/check/testdata/class/extend_adapt.carbon @@ -151,16 +151,16 @@ class StructAdapter { // CHECK:STDOUT: %a.param_patt: %SomeClassAdapter = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %SomeClassAdapter.ref: type = name_ref SomeClassAdapter, file.%SomeClassAdapter.decl.loc4 [template = constants.%SomeClassAdapter] -// CHECK:STDOUT: %param: %SomeClassAdapter = param runtime_param0 -// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %param +// CHECK:STDOUT: %a.param: %SomeClassAdapter = param runtime_param0 +// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAdapterMethod.decl: %TestAdapterMethod.type = fn_decl @TestAdapterMethod [template = constants.%TestAdapterMethod] { // CHECK:STDOUT: %a.patt: %SomeClassAdapter = binding_pattern a // CHECK:STDOUT: %a.param_patt: %SomeClassAdapter = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %SomeClassAdapter.ref: type = name_ref SomeClassAdapter, file.%SomeClassAdapter.decl.loc4 [template = constants.%SomeClassAdapter] -// CHECK:STDOUT: %param: %SomeClassAdapter = param runtime_param0 -// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %param +// CHECK:STDOUT: %a.param: %SomeClassAdapter = param runtime_param0 +// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -189,8 +189,8 @@ class StructAdapter { // CHECK:STDOUT: %self.param_patt: %SomeClassAdapter = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %SomeClassAdapter.ref: type = name_ref SomeClassAdapter, file.%SomeClassAdapter.decl.loc4 [template = constants.%SomeClassAdapter] -// CHECK:STDOUT: %param: %SomeClassAdapter = param runtime_param0 -// CHECK:STDOUT: %self: %SomeClassAdapter = bind_name self, %param +// CHECK:STDOUT: %self.param: %SomeClassAdapter = param runtime_param0 +// CHECK:STDOUT: %self: %SomeClassAdapter = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: @@ -293,8 +293,8 @@ class StructAdapter { // CHECK:STDOUT: %a.param_patt: %SomeClassAdapter = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %SomeClassAdapter.ref: type = name_ref SomeClassAdapter, file.%SomeClassAdapter.decl [template = constants.%SomeClassAdapter] -// CHECK:STDOUT: %param: %SomeClassAdapter = param runtime_param0 -// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %param +// CHECK:STDOUT: %a.param: %SomeClassAdapter = param runtime_param0 +// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -324,8 +324,8 @@ class StructAdapter { // CHECK:STDOUT: %self.param_patt: %SomeClass = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SomeClass [template = constants.%SomeClass] -// CHECK:STDOUT: %param: %SomeClass = param runtime_param0 -// CHECK:STDOUT: %self: %SomeClass = bind_name self, %param +// CHECK:STDOUT: %self.param: %SomeClass = param runtime_param0 +// CHECK:STDOUT: %self: %SomeClass = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -477,10 +477,10 @@ class StructAdapter { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_30.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_30.2: type = converted %int.make_type_32, %.loc13_30.1 [template = i32] -// CHECK:STDOUT: %param.loc13_7: %SomeClassAdapter = param runtime_param0 -// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %param.loc13_7 -// CHECK:STDOUT: %param.loc13_27: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_27 +// CHECK:STDOUT: %a.param: %SomeClassAdapter = param runtime_param0 +// CHECK:STDOUT: %a: %SomeClassAdapter = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_abstract.carbon b/toolchain/check/testdata/class/fail_abstract.carbon index 0775c6d981613..ea25fb6de6327 100644 --- a/toolchain/check/testdata/class/fail_abstract.carbon +++ b/toolchain/check/testdata/class/fail_abstract.carbon @@ -329,8 +329,8 @@ fn CallReturnAbstract() { // CHECK:STDOUT: %a.param_patt: %Abstract = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Abstract.ref.loc7: type = name_ref Abstract, file.%Abstract.decl [template = constants.%Abstract] -// CHECK:STDOUT: %param: %Abstract = param runtime_param0 -// CHECK:STDOUT: %a: %Abstract = bind_name a, %param +// CHECK:STDOUT: %a.param: %Abstract = param runtime_param0 +// CHECK:STDOUT: %a: %Abstract = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -441,16 +441,16 @@ fn CallReturnAbstract() { // CHECK:STDOUT: %a.param_patt: %Abstract = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Abstract.ref: type = name_ref Abstract, file.%Abstract.decl [template = constants.%Abstract] -// CHECK:STDOUT: %param: %Abstract = param runtime_param0 -// CHECK:STDOUT: %a: %Abstract = bind_name a, %param +// CHECK:STDOUT: %a.param: %Abstract = param runtime_param0 +// CHECK:STDOUT: %a: %Abstract = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [template = constants.%Call] { // CHECK:STDOUT: %p.patt: %Abstract = binding_pattern p // CHECK:STDOUT: %p.param_patt: %Abstract = param_pattern %p.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Abstract.ref: type = name_ref Abstract, file.%Abstract.decl [template = constants.%Abstract] -// CHECK:STDOUT: %param: %Abstract = param runtime_param0 -// CHECK:STDOUT: %p: %Abstract = bind_name p, %param +// CHECK:STDOUT: %p.param: %Abstract = param runtime_param0 +// CHECK:STDOUT: %p: %Abstract = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -527,8 +527,8 @@ fn CallReturnAbstract() { // CHECK:STDOUT: %return.param_patt: %Derived = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Derived.ref: type = name_ref Derived, file.%Derived.decl [template = constants.%Derived] -// CHECK:STDOUT: %param: %Derived = param runtime_param0 -// CHECK:STDOUT: %return: ref %Derived = return_slot %param +// CHECK:STDOUT: %return.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %return: ref %Derived = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -618,10 +618,10 @@ fn CallReturnAbstract() { // CHECK:STDOUT: } { // CHECK:STDOUT: %Abstract.ref.loc13_14: type = name_ref Abstract, file.%Abstract.decl [template = constants.%Abstract] // CHECK:STDOUT: %Abstract.ref.loc13_27: type = name_ref Abstract, file.%Abstract.decl [template = constants.%Abstract] -// CHECK:STDOUT: %param.loc13_12: %Abstract = param runtime_param0 -// CHECK:STDOUT: %a: %Abstract = bind_name a, %param.loc13_12 -// CHECK:STDOUT: %param.loc13_24: %Abstract = param runtime_param1 -// CHECK:STDOUT: %return: ref %Abstract = return_slot %param.loc13_24 +// CHECK:STDOUT: %a.param: %Abstract = param runtime_param0 +// CHECK:STDOUT: %a: %Abstract = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %Abstract = param runtime_param1 +// CHECK:STDOUT: %return: ref %Abstract = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -714,10 +714,10 @@ fn CallReturnAbstract() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_26.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_26.2: type = converted %int.make_type_32, %.loc14_26.1 [template = i32] -// CHECK:STDOUT: %param.loc14_12: %Derived = param runtime_param0 -// CHECK:STDOUT: %d: %Derived = bind_name d, %param.loc14_12 -// CHECK:STDOUT: %param.loc14_23: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc14_23 +// CHECK:STDOUT: %d.param: %Derived = param runtime_param0 +// CHECK:STDOUT: %d: %Derived = bind_name d, %d.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -851,8 +851,8 @@ fn CallReturnAbstract() { // CHECK:STDOUT: %return.param_patt: %Abstract = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Abstract.ref: type = name_ref Abstract, file.%Abstract.decl [template = constants.%Abstract] -// CHECK:STDOUT: %param: %Abstract = param runtime_param0 -// CHECK:STDOUT: %return: ref %Abstract = return_slot %param +// CHECK:STDOUT: %return.param: %Abstract = param runtime_param0 +// CHECK:STDOUT: %return: ref %Abstract = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallReturnAbstract.decl: %CallReturnAbstract.type = fn_decl @CallReturnAbstract [template = constants.%CallReturnAbstract] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon b/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon index e55a3dcdda3b3..492688bbca745 100644 --- a/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon +++ b/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon @@ -162,8 +162,8 @@ class C { // CHECK:STDOUT: %b.param_patt: %Bad = param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Bad.ref: type = name_ref Bad, file.%Bad.decl [template = constants.%Bad] -// CHECK:STDOUT: %param: %Bad = param runtime_param0 -// CHECK:STDOUT: %b: %Bad = bind_name b, %param +// CHECK:STDOUT: %b.param: %Bad = param runtime_param0 +// CHECK:STDOUT: %b: %Bad = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -309,8 +309,8 @@ class C { // CHECK:STDOUT: %b.param_patt: %Bad = param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Bad.ref: type = name_ref Bad, file.%Bad.decl [template = constants.%Bad] -// CHECK:STDOUT: %param: %Bad = param runtime_param0 -// CHECK:STDOUT: %b: %Bad = bind_name b, %param +// CHECK:STDOUT: %b.param: %Bad = param runtime_param0 +// CHECK:STDOUT: %b: %Bad = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_addr_not_self.carbon b/toolchain/check/testdata/class/fail_addr_not_self.carbon index ddad5dc037cfd..63dce0b1454f7 100644 --- a/toolchain/check/testdata/class/fail_addr_not_self.carbon +++ b/toolchain/check/testdata/class/fail_addr_not_self.carbon @@ -66,8 +66,8 @@ class Class { // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc16: type = ptr_type %Class [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param -// CHECK:STDOUT: %a.loc16_13.2: %.1 = bind_symbolic_name a, 0, %param [symbolic = %a.loc16_13.1 (constants.%a)] +// CHECK:STDOUT: %a.param: %.1 = param runtime_param +// CHECK:STDOUT: %a.loc16_13.2: %.1 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc16_13.1 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %b.patt: %.1 = binding_pattern b @@ -75,8 +75,8 @@ class Class { // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc21: type = ptr_type %Class [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %b: %.1 = bind_name b, %param +// CHECK:STDOUT: %b.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %b: %.1 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_addr_self.carbon b/toolchain/check/testdata/class/fail_addr_self.carbon index a3c24463137fe..a638d5c92c952 100644 --- a/toolchain/check/testdata/class/fail_addr_self.carbon +++ b/toolchain/check/testdata/class/fail_addr_self.carbon @@ -81,10 +81,10 @@ fn F(c: Class, p: Class*) { // CHECK:STDOUT: %Class.ref.loc20_9: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %Class.ref.loc20_19: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc20: type = ptr_type %Class [template = constants.%.1] -// CHECK:STDOUT: %param.loc20_7: %Class = param runtime_param0 -// CHECK:STDOUT: %c: %Class = bind_name c, %param.loc20_7 -// CHECK:STDOUT: %param.loc20_17: %.1 = param runtime_param1 -// CHECK:STDOUT: %p: %.1 = bind_name p, %param.loc20_17 +// CHECK:STDOUT: %c.param: %Class = param runtime_param0 +// CHECK:STDOUT: %c: %Class = bind_name c, %c.param +// CHECK:STDOUT: %p.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %p: %.1 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -96,16 +96,16 @@ fn F(c: Class, p: Class*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc12_24: type = ptr_type %Class [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %self: %.1 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %self: %.1 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt: %Class = binding_pattern self // CHECK:STDOUT: %self.param_patt: %Class = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %self: %Class = bind_name self, %param +// CHECK:STDOUT: %self.param: %Class = param runtime_param0 +// CHECK:STDOUT: %self: %Class = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc18: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_base_bad_type.carbon b/toolchain/check/testdata/class/fail_base_bad_type.carbon index 6a1de1d5813ef..1f495c5d3c9bd 100644 --- a/toolchain/check/testdata/class/fail_base_bad_type.carbon +++ b/toolchain/check/testdata/class/fail_base_bad_type.carbon @@ -224,10 +224,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_61.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_61.2: type = converted %int.make_type_32, %.loc13_61.1 [template = i32] -// CHECK:STDOUT: %param.loc13_38: %.1 = param runtime_param0 -// CHECK:STDOUT: %p: %.1 = bind_name p, %param.loc13_38 -// CHECK:STDOUT: %param.loc13_58: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_58 +// CHECK:STDOUT: %p.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %p: %.1 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -323,10 +323,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_64.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_64.2: type = converted %int.make_type_32, %.loc15_64.1 [template = i32] -// CHECK:STDOUT: %param.loc15_39: %.8 = param runtime_param0 -// CHECK:STDOUT: %p: %.8 = bind_name p, %param.loc15_39 -// CHECK:STDOUT: %param.loc15_61: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc15_61 +// CHECK:STDOUT: %p.param: %.8 = param runtime_param0 +// CHECK:STDOUT: %p: %.8 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -492,10 +492,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %.loc21_49.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc21_49.2: type = converted %int.make_type_32, %.loc21_49.1 [template = i32] // CHECK:STDOUT: %.loc21_49.3: type = ptr_type i32 [template = constants.%.3] -// CHECK:STDOUT: %param.loc21_25: %.2 = param runtime_param0 -// CHECK:STDOUT: %p: %.2 = bind_name p, %param.loc21_25 -// CHECK:STDOUT: %param.loc21_43: %.3 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param.loc21_43 +// CHECK:STDOUT: %p.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %p: %.2 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessMemberWithInvalidBasei32.decl: %AccessMemberWithInvalidBasei32.type = fn_decl @AccessMemberWithInvalidBasei32 [template = constants.%AccessMemberWithInvalidBasei32] { // CHECK:STDOUT: %p.patt: %.2 = binding_pattern p @@ -508,10 +508,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_57.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc23_57.2: type = converted %int.make_type_32, %.loc23_57.1 [template = i32] -// CHECK:STDOUT: %param.loc23_36: %.2 = param runtime_param0 -// CHECK:STDOUT: %p: %.2 = bind_name p, %param.loc23_36 -// CHECK:STDOUT: %param.loc23_54: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc23_54 +// CHECK:STDOUT: %p.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %p: %.2 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -694,10 +694,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %.loc21_56: %.3 = tuple_literal (%Base.ref) // CHECK:STDOUT: %.loc21_57.1: type = converted %.loc21_56, constants.%.4 [template = constants.%.4] // CHECK:STDOUT: %.loc21_57.2: type = ptr_type %.4 [template = constants.%.9] -// CHECK:STDOUT: %param.loc21_27: %.8 = param runtime_param0 -// CHECK:STDOUT: %p: %.8 = bind_name p, %param.loc21_27 -// CHECK:STDOUT: %param.loc21_47: %.9 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.9 = return_slot %param.loc21_47 +// CHECK:STDOUT: %p.param: %.8 = param runtime_param0 +// CHECK:STDOUT: %p: %.8 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.9 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.9 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessMemberWithInvalidBaseTuple.decl: %AccessMemberWithInvalidBaseTuple.type = fn_decl @AccessMemberWithInvalidBaseTuple [template = constants.%AccessMemberWithInvalidBaseTuple] { // CHECK:STDOUT: %p.patt: %.8 = binding_pattern p @@ -710,10 +710,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_61.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc23_61.2: type = converted %int.make_type_32, %.loc23_61.1 [template = i32] -// CHECK:STDOUT: %param.loc23_38: %.8 = param runtime_param0 -// CHECK:STDOUT: %p: %.8 = bind_name p, %param.loc23_38 -// CHECK:STDOUT: %param.loc23_58: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc23_58 +// CHECK:STDOUT: %p.param: %.8 = param runtime_param0 +// CHECK:STDOUT: %p: %.8 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -899,10 +899,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %.loc21_66.2: type = converted %int.make_type_32.loc21_66, %.loc21_66.1 [template = i32] // CHECK:STDOUT: %.loc21_69: type = struct_type {.a: i32, .b: i32} [template = constants.%.2] // CHECK:STDOUT: %.loc21_70: type = ptr_type %.2 [template = constants.%.3] -// CHECK:STDOUT: %param.loc21_28: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc21_28 -// CHECK:STDOUT: %param.loc21_49: %.3 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param.loc21_49 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessMemberWithInvalidBaseStruct.decl: %AccessMemberWithInvalidBaseStruct.type = fn_decl @AccessMemberWithInvalidBaseStruct [template = constants.%AccessMemberWithInvalidBaseStruct] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -915,10 +915,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc24_63.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc24_63.2: type = converted %int.make_type_32, %.loc24_63.1 [template = i32] -// CHECK:STDOUT: %param.loc24_39: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc24_39 -// CHECK:STDOUT: %param.loc24_60: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc24_60 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1097,10 +1097,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %.loc28_54: type = ptr_type %DeriveFromIncomplete [template = constants.%.1] // CHECK:STDOUT: %Incomplete.ref: type = name_ref Incomplete, file.%Incomplete.decl [template = constants.%Incomplete] // CHECK:STDOUT: %.loc28_70: type = ptr_type %Incomplete [template = constants.%.2] -// CHECK:STDOUT: %param.loc28_32: %.1 = param runtime_param0 -// CHECK:STDOUT: %p: %.1 = bind_name p, %param.loc28_32 -// CHECK:STDOUT: %param.loc28_57: %.2 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param.loc28_57 +// CHECK:STDOUT: %p.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %p: %.1 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessMemberWithInvalidBaseIncomplete.decl: %AccessMemberWithInvalidBaseIncomplete.type = fn_decl @AccessMemberWithInvalidBaseIncomplete [template = constants.%AccessMemberWithInvalidBaseIncomplete] { // CHECK:STDOUT: %p.patt: %.1 = binding_pattern p @@ -1113,10 +1113,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc30_71.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc30_71.2: type = converted %int.make_type_32, %.loc30_71.1 [template = i32] -// CHECK:STDOUT: %param.loc30_43: %.1 = param runtime_param0 -// CHECK:STDOUT: %p: %.1 = bind_name p, %param.loc30_43 -// CHECK:STDOUT: %param.loc30_68: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc30_68 +// CHECK:STDOUT: %p.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %p: %.1 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1279,10 +1279,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %.loc15_44: type = ptr_type %DeriveFromFinal [template = constants.%.9] // CHECK:STDOUT: %Final.ref: type = name_ref Final, file.%Final.decl [template = constants.%Final] // CHECK:STDOUT: %.loc15_55: type = ptr_type %Final [template = constants.%.10] -// CHECK:STDOUT: %param.loc15_27: %.9 = param runtime_param0 -// CHECK:STDOUT: %p: %.9 = bind_name p, %param.loc15_27 -// CHECK:STDOUT: %param.loc15_47: %.10 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.10 = return_slot %param.loc15_47 +// CHECK:STDOUT: %p.param: %.9 = param runtime_param0 +// CHECK:STDOUT: %p: %.9 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.10 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.10 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessMemberWithInvalidBaseFinal_WithMember.decl: %AccessMemberWithInvalidBaseFinal_WithMember.type = fn_decl @AccessMemberWithInvalidBaseFinal_WithMember [template = constants.%AccessMemberWithInvalidBaseFinal_WithMember] { // CHECK:STDOUT: %p.patt: %.9 = binding_pattern p @@ -1295,10 +1295,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_72.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc19_72.2: type = converted %int.make_type_32, %.loc19_72.1 [template = i32] -// CHECK:STDOUT: %param.loc19_49: %.9 = param runtime_param0 -// CHECK:STDOUT: %p: %.9 = bind_name p, %param.loc19_49 -// CHECK:STDOUT: %param.loc19_69: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_69 +// CHECK:STDOUT: %p.param: %.9 = param runtime_param0 +// CHECK:STDOUT: %p: %.9 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AccessMemberWithInvalidBaseFinal_NoMember.decl: %AccessMemberWithInvalidBaseFinal_NoMember.type = fn_decl @AccessMemberWithInvalidBaseFinal_NoMember [template = constants.%AccessMemberWithInvalidBaseFinal_NoMember] { // CHECK:STDOUT: %p.patt: %.9 = binding_pattern p @@ -1311,10 +1311,10 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_70.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc23_70.2: type = converted %int.make_type_32, %.loc23_70.1 [template = i32] -// CHECK:STDOUT: %param.loc23_47: %.9 = param runtime_param0 -// CHECK:STDOUT: %p: %.9 = bind_name p, %param.loc23_47 -// CHECK:STDOUT: %param.loc23_67: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc23_67 +// CHECK:STDOUT: %p.param: %.9 = param runtime_param0 +// CHECK:STDOUT: %p: %.9 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_compound_type_mismatch.carbon b/toolchain/check/testdata/class/fail_compound_type_mismatch.carbon index afb8fd35ecb59..cdbc6fac34cf2 100644 --- a/toolchain/check/testdata/class/fail_compound_type_mismatch.carbon +++ b/toolchain/check/testdata/class/fail_compound_type_mismatch.carbon @@ -105,10 +105,10 @@ fn AccessBInA(a: A) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_24.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc19_24.2: type = converted %int.make_type_32, %.loc19_24.1 [template = i32] -// CHECK:STDOUT: %param.loc19_16: %A = param runtime_param0 -// CHECK:STDOUT: %a: %A = bind_name a, %param.loc19_16 -// CHECK:STDOUT: %param.loc19_21: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_21 +// CHECK:STDOUT: %a.param: %A = param runtime_param0 +// CHECK:STDOUT: %a: %A = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_convert_to_invalid.carbon b/toolchain/check/testdata/class/fail_convert_to_invalid.carbon index d4d4bae86c8bf..7574be6a39bcd 100644 --- a/toolchain/check/testdata/class/fail_convert_to_invalid.carbon +++ b/toolchain/check/testdata/class/fail_convert_to_invalid.carbon @@ -56,8 +56,8 @@ fn Make() -> C { // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_derived_to_base.carbon b/toolchain/check/testdata/class/fail_derived_to_base.carbon index 2c4be2874d3f0..319e18c1a1f13 100644 --- a/toolchain/check/testdata/class/fail_derived_to_base.carbon +++ b/toolchain/check/testdata/class/fail_derived_to_base.carbon @@ -140,10 +140,10 @@ fn ConvertIncomplete(p: Incomplete*) -> A2* { return p; } // CHECK:STDOUT: %.loc31_26: type = ptr_type %B2 [template = constants.%.11] // CHECK:STDOUT: %A1.ref: type = name_ref A1, file.%A1.decl [template = constants.%A1] // CHECK:STDOUT: %.loc31_34: type = ptr_type %A1 [template = constants.%.12] -// CHECK:STDOUT: %param.loc31_22: %.11 = param runtime_param0 -// CHECK:STDOUT: %p: %.11 = bind_name p, %param.loc31_22 -// CHECK:STDOUT: %param.loc31_29: %.12 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.12 = return_slot %param.loc31_29 +// CHECK:STDOUT: %p.param: %.11 = param runtime_param0 +// CHECK:STDOUT: %p: %.11 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.12 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.12 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Incomplete.decl: type = class_decl @Incomplete [template = constants.%Incomplete] {} {} // CHECK:STDOUT: %ConvertIncomplete.decl: %ConvertIncomplete.type = fn_decl @ConvertIncomplete [template = constants.%ConvertIncomplete] { @@ -156,10 +156,10 @@ fn ConvertIncomplete(p: Incomplete*) -> A2* { return p; } // CHECK:STDOUT: %.loc41_35: type = ptr_type %Incomplete [template = constants.%.21] // CHECK:STDOUT: %A2.ref: type = name_ref A2, file.%A2.decl [template = constants.%A2] // CHECK:STDOUT: %.loc41_43: type = ptr_type %A2 [template = constants.%.22] -// CHECK:STDOUT: %param.loc41_23: %.21 = param runtime_param0 -// CHECK:STDOUT: %p: %.21 = bind_name p, %param.loc41_23 -// CHECK:STDOUT: %param.loc41_38: %.22 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.22 = return_slot %param.loc41_38 +// CHECK:STDOUT: %p.param: %.21 = param runtime_param0 +// CHECK:STDOUT: %p: %.21 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.22 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.22 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_generic_method.carbon b/toolchain/check/testdata/class/fail_generic_method.carbon index 3f78d0f29f499..24fd93b7ec7d4 100644 --- a/toolchain/check/testdata/class/fail_generic_method.carbon +++ b/toolchain/check/testdata/class/fail_generic_method.carbon @@ -78,8 +78,8 @@ fn Class(N:! i32).F[self: Self](n: T) {} // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.5] { // CHECK:STDOUT: %self.patt: = binding_pattern self @@ -90,14 +90,14 @@ fn Class(N:! i32).F[self: Self](n: T) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc32_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc32_14.2: type = converted %int.make_type_32, %.loc32_14.1 [template = i32] -// CHECK:STDOUT: %param.loc32_11: i32 = param runtime_param -// CHECK:STDOUT: %N.loc32_10.1: i32 = bind_symbolic_name N, 0, %param.loc32_11 [symbolic = %N.loc32_10.2 (constants.%N)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc32_10.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc32_10.2 (constants.%N)] // CHECK:STDOUT: %Self.ref: = name_ref Self, [template = ] // CHECK:STDOUT: %T.ref: = name_ref T, [template = ] -// CHECK:STDOUT: %param.loc32_25: = param runtime_param0 -// CHECK:STDOUT: %self: = bind_name self, %param.loc32_25 -// CHECK:STDOUT: %param.loc32_34: = param runtime_param1 -// CHECK:STDOUT: %n: = bind_name n, %param.loc32_34 +// CHECK:STDOUT: %self.param: = param runtime_param0 +// CHECK:STDOUT: %self: = bind_name self, %self.param +// CHECK:STDOUT: %n.param: = param runtime_param1 +// CHECK:STDOUT: %n: = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -125,10 +125,10 @@ fn Class(N:! i32).F[self: Self](n: T) {} // CHECK:STDOUT: %.loc13: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc13 [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc11_13.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param.loc13_12: @F.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %self: @F.%Class (%Class.2) = bind_name self, %param.loc13_12 -// CHECK:STDOUT: %param.loc13_21: @F.%T (%T) = param runtime_param1 -// CHECK:STDOUT: %n: @F.%T (%T) = bind_name n, %param.loc13_21 +// CHECK:STDOUT: %self.param: @F.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %self: @F.%Class (%Class.2) = bind_name self, %self.param +// CHECK:STDOUT: %n.param: @F.%T (%T) = param runtime_param1 +// CHECK:STDOUT: %n: @F.%T (%T) = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14_1.1: = complete_type_witness %.3 [symbolic = %.loc14_1.3 (constants.%.4)] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_incomplete.carbon b/toolchain/check/testdata/class/fail_incomplete.carbon index 6b1acf335cdb9..db611678c329c 100644 --- a/toolchain/check/testdata/class/fail_incomplete.carbon +++ b/toolchain/check/testdata/class/fail_incomplete.carbon @@ -230,8 +230,8 @@ class C { // CHECK:STDOUT: %return.param_patt: %Class = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %return: ref %Class = return_slot %param +// CHECK:STDOUT: %return.param: %Class = param runtime_param0 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -244,10 +244,10 @@ class C { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc44_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc44_20.2: type = converted %int.make_type_32, %.loc44_20.1 [template = i32] -// CHECK:STDOUT: %param.loc44_7: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc44_7 -// CHECK:STDOUT: %param.loc44_17: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc44_17 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MemberAccess.decl: %MemberAccess.type = fn_decl @MemberAccess [template = constants.%MemberAccess] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -260,10 +260,10 @@ class C { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc55_31.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc55_31.2: type = converted %int.make_type_32, %.loc55_31.1 [template = i32] -// CHECK:STDOUT: %param.loc55_18: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc55_18 -// CHECK:STDOUT: %param.loc55_28: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc55_28 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Copy.decl: %Copy.type = fn_decl @Copy [template = constants.%Copy] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -274,10 +274,10 @@ class C { // CHECK:STDOUT: %Class.ref.loc73_12: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc73_17: type = ptr_type %Class [template = constants.%.4] // CHECK:STDOUT: %Class.ref.loc73_23: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param.loc73_10: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc73_10 -// CHECK:STDOUT: %param.loc73_20: %Class = param runtime_param1 -// CHECK:STDOUT: %return: ref %Class = return_slot %param.loc73_20 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %Class = param runtime_param1 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Let.decl: %Let.type = fn_decl @Let [template = constants.%Let] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -285,24 +285,24 @@ class C { // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref.loc77: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc77: type = ptr_type %Class [template = constants.%.4] -// CHECK:STDOUT: %param: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: %TakeIncomplete.decl: %TakeIncomplete.type = fn_decl @TakeIncomplete [template = constants.%TakeIncomplete] { // CHECK:STDOUT: %c.patt: %Class = binding_pattern c // CHECK:STDOUT: %c.param_patt: %Class = param_pattern %c.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %c: %Class = bind_name c, %param +// CHECK:STDOUT: %c.param: %Class = param runtime_param0 +// CHECK:STDOUT: %c: %Class = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: %ReturnIncomplete.decl: %ReturnIncomplete.type = fn_decl @ReturnIncomplete [template = constants.%ReturnIncomplete] { // CHECK:STDOUT: %return.patt: %Class = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %Class = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %return: ref %Class = return_slot %param +// CHECK:STDOUT: %return.param: %Class = param runtime_param0 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallTakeIncomplete.decl: %CallTakeIncomplete.type = fn_decl @CallTakeIncomplete [template = constants.%CallTakeIncomplete] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -310,8 +310,8 @@ class C { // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc92: type = ptr_type %Class [template = constants.%.4] -// CHECK:STDOUT: %param: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallReturnIncomplete.decl: %CallReturnIncomplete.type = fn_decl @CallReturnIncomplete [template = constants.%CallReturnIncomplete] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/fail_init_as_inplace.carbon b/toolchain/check/testdata/class/fail_init_as_inplace.carbon index 9e33f295d4a60..de48330844a3d 100644 --- a/toolchain/check/testdata/class/fail_init_as_inplace.carbon +++ b/toolchain/check/testdata/class/fail_init_as_inplace.carbon @@ -77,8 +77,8 @@ fn F() { // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc16: type = ptr_type %Class [template = constants.%.5] -// CHECK:STDOUT: %param: %.5 = param runtime_param0 -// CHECK:STDOUT: %p: %.5 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %p: %.5 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/fail_memaccess_category.carbon b/toolchain/check/testdata/class/fail_memaccess_category.carbon index bf6be0a39a56c..f979fe4df39f0 100644 --- a/toolchain/check/testdata/class/fail_memaccess_category.carbon +++ b/toolchain/check/testdata/class/fail_memaccess_category.carbon @@ -91,10 +91,10 @@ fn F(s: {.a: A}, b: B) { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc19: type = struct_type {.a: %A} [template = constants.%.7] // CHECK:STDOUT: %B.ref: type = name_ref B, file.%B.decl [template = constants.%B] -// CHECK:STDOUT: %param.loc19_7: %.7 = param runtime_param0 -// CHECK:STDOUT: %s: %.7 = bind_name s, %param.loc19_7 -// CHECK:STDOUT: %param.loc19_19: %B = param runtime_param1 -// CHECK:STDOUT: %b: %B = bind_name b, %param.loc19_19 +// CHECK:STDOUT: %s.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %s: %.7 = bind_name s, %s.param +// CHECK:STDOUT: %b.param: %B = param runtime_param1 +// CHECK:STDOUT: %b: %B = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -106,8 +106,8 @@ fn F(s: {.a: A}, b: B) { // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc12_20: type = ptr_type %A [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %self: %.1 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %self: %.1 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_member_of_let.carbon b/toolchain/check/testdata/class/fail_member_of_let.carbon index 534841b0593dc..4f8873eaa7ef6 100644 --- a/toolchain/check/testdata/class/fail_member_of_let.carbon +++ b/toolchain/check/testdata/class/fail_member_of_let.carbon @@ -74,8 +74,8 @@ fn T.F() {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_method.carbon b/toolchain/check/testdata/class/fail_method.carbon index e1b0d3f5ed8d8..acc41de119b80 100644 --- a/toolchain/check/testdata/class/fail_method.carbon +++ b/toolchain/check/testdata/class/fail_method.carbon @@ -92,8 +92,8 @@ fn F(c: Class) { // CHECK:STDOUT: %c.param_patt: %Class = param_pattern %c.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref.loc18: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %c: %Class = bind_name c, %param +// CHECK:STDOUT: %c.param: %Class = param runtime_param0 +// CHECK:STDOUT: %c: %Class = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -104,8 +104,8 @@ fn F(c: Class) { // CHECK:STDOUT: %self.param_patt: %Class = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %self: %Class = bind_name self, %param +// CHECK:STDOUT: %self.param: %Class = param runtime_param0 +// CHECK:STDOUT: %self: %Class = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_method_modifiers.carbon b/toolchain/check/testdata/class/fail_method_modifiers.carbon index c3fb1aa08ae5a..410671ddfce07 100644 --- a/toolchain/check/testdata/class/fail_method_modifiers.carbon +++ b/toolchain/check/testdata/class/fail_method_modifiers.carbon @@ -108,16 +108,16 @@ base class BaseClass { // CHECK:STDOUT: %self.param_patt: %FinalClass = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FinalClass [template = constants.%FinalClass] -// CHECK:STDOUT: %param: %FinalClass = param runtime_param0 -// CHECK:STDOUT: %self: %FinalClass = bind_name self, %param +// CHECK:STDOUT: %self.param: %FinalClass = param runtime_param0 +// CHECK:STDOUT: %self: %FinalClass = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %Virtual.decl: %Virtual.type = fn_decl @Virtual [template = constants.%Virtual] { // CHECK:STDOUT: %self.patt: %FinalClass = binding_pattern self // CHECK:STDOUT: %self.param_patt: %FinalClass = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FinalClass [template = constants.%FinalClass] -// CHECK:STDOUT: %param: %FinalClass = param runtime_param0 -// CHECK:STDOUT: %self: %FinalClass = bind_name self, %param +// CHECK:STDOUT: %self.param: %FinalClass = param runtime_param0 +// CHECK:STDOUT: %self: %FinalClass = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc30: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -133,16 +133,16 @@ base class BaseClass { // CHECK:STDOUT: %self.param_patt: %AbstractClass = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%AbstractClass [template = constants.%AbstractClass] -// CHECK:STDOUT: %param: %AbstractClass = param runtime_param0 -// CHECK:STDOUT: %self: %AbstractClass = bind_name self, %param +// CHECK:STDOUT: %self.param: %AbstractClass = param runtime_param0 +// CHECK:STDOUT: %self: %AbstractClass = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %Final.decl: %Final.type = fn_decl @Final [template = constants.%Final] { // CHECK:STDOUT: %self.patt: %AbstractClass = binding_pattern self // CHECK:STDOUT: %self.param_patt: %AbstractClass = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%AbstractClass [template = constants.%AbstractClass] -// CHECK:STDOUT: %param: %AbstractClass = param runtime_param0 -// CHECK:STDOUT: %self: %AbstractClass = bind_name self, %param +// CHECK:STDOUT: %self.param: %AbstractClass = param runtime_param0 +// CHECK:STDOUT: %self: %AbstractClass = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc45: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -158,8 +158,8 @@ base class BaseClass { // CHECK:STDOUT: %self.param_patt: %BaseClass = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%BaseClass [template = constants.%BaseClass] -// CHECK:STDOUT: %param: %BaseClass = param runtime_param0 -// CHECK:STDOUT: %self: %BaseClass = bind_name self, %param +// CHECK:STDOUT: %self.param: %BaseClass = param runtime_param0 +// CHECK:STDOUT: %self: %BaseClass = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc56: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_scope.carbon b/toolchain/check/testdata/class/fail_scope.carbon index b887ddfc57655..85dc1a05a110d 100644 --- a/toolchain/check/testdata/class/fail_scope.carbon +++ b/toolchain/check/testdata/class/fail_scope.carbon @@ -67,8 +67,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc17_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc17_11.2: type = converted %int.make_type_32, %.loc17_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -80,8 +80,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_self.carbon b/toolchain/check/testdata/class/fail_self.carbon index 6642f07fa4ce0..a7820ee6bf354 100644 --- a/toolchain/check/testdata/class/fail_self.carbon +++ b/toolchain/check/testdata/class/fail_self.carbon @@ -125,16 +125,16 @@ fn CallWrongSelf(ws: WrongSelf) { // CHECK:STDOUT: %self.param_patt: %Class = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc25: type = name_ref Self, constants.%Class [template = constants.%Class] -// CHECK:STDOUT: %param.loc25: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc25: %Class = bind_name self, %param.loc25 +// CHECK:STDOUT: %self.param.loc25: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc25: %Class = bind_name self, %self.param.loc25 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %Class = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %Class = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc28: type = name_ref Self, constants.%Class [template = constants.%Class] -// CHECK:STDOUT: %param.loc28: %Class = param runtime_param0 -// CHECK:STDOUT: %return: ref %Class = return_slot %param.loc28 +// CHECK:STDOUT: %return.param.loc28: %Class = param runtime_param0 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param.loc28 // CHECK:STDOUT: } // CHECK:STDOUT: %WrongSelf.decl: type = class_decl @WrongSelf [template = constants.%WrongSelf] {} {} // CHECK:STDOUT: %CallWrongSelf.decl: %CallWrongSelf.type = fn_decl @CallWrongSelf [template = constants.%CallWrongSelf] { @@ -142,8 +142,8 @@ fn CallWrongSelf(ws: WrongSelf) { // CHECK:STDOUT: %ws.param_patt: %WrongSelf = param_pattern %ws.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %WrongSelf.ref: type = name_ref WrongSelf, file.%WrongSelf.decl [template = constants.%WrongSelf] -// CHECK:STDOUT: %param: %WrongSelf = param runtime_param0 -// CHECK:STDOUT: %ws: %WrongSelf = bind_name ws, %param +// CHECK:STDOUT: %ws.param: %WrongSelf = param runtime_param0 +// CHECK:STDOUT: %ws: %WrongSelf = bind_name ws, %ws.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -173,16 +173,16 @@ fn CallWrongSelf(ws: WrongSelf) { // CHECK:STDOUT: %self.param_patt: %Class = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc16: type = name_ref Self, constants.%Class [template = constants.%Class] -// CHECK:STDOUT: %param.loc16: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc16: %Class = bind_name self, %param.loc16 +// CHECK:STDOUT: %self.param.loc16: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc16: %Class = bind_name self, %self.param.loc16 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %Class = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %Class = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc18: type = name_ref Self, constants.%Class [template = constants.%Class] -// CHECK:STDOUT: %param.loc18: %Class = param runtime_param0 -// CHECK:STDOUT: %.loc18: ref %Class = return_slot %param.loc18 +// CHECK:STDOUT: %return.param.loc18: %Class = param runtime_param0 +// CHECK:STDOUT: %.loc18: ref %Class = return_slot %return.param.loc18 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -198,8 +198,8 @@ fn CallWrongSelf(ws: WrongSelf) { // CHECK:STDOUT: %self.param_patt: %Class = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %self: %Class = bind_name self, %param +// CHECK:STDOUT: %self.param: %Class = param runtime_param0 +// CHECK:STDOUT: %self: %Class = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc43: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_self_param.carbon b/toolchain/check/testdata/class/fail_self_param.carbon index 6e930f302bd83..3fffc51fede65 100644 --- a/toolchain/check/testdata/class/fail_self_param.carbon +++ b/toolchain/check/testdata/class/fail_self_param.carbon @@ -53,8 +53,8 @@ var v: C(0); // CHECK:STDOUT: %x.param_patt: = param_pattern %x.patt.loc14_22.1, runtime_param [symbolic = %x.patt.loc14_22.2 (constants.%x.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %self.ref: = name_ref self, [template = ] -// CHECK:STDOUT: %param: = param runtime_param -// CHECK:STDOUT: %x.loc14_22.1: = bind_symbolic_name x, 0, %param [symbolic = %x.loc14_22.2 (constants.%x)] +// CHECK:STDOUT: %x.param: = param runtime_param +// CHECK:STDOUT: %x.loc14_22.1: = bind_symbolic_name x, 0, %x.param [symbolic = %x.loc14_22.2 (constants.%x)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.ref: %C.type = name_ref C, %C.decl [template = constants.%C.1] // CHECK:STDOUT: %.loc15: i32 = int_literal 0 [template = constants.%.4] diff --git a/toolchain/check/testdata/class/fail_unbound_field.carbon b/toolchain/check/testdata/class/fail_unbound_field.carbon index cfe2eb7adbb3d..196d99c5966f0 100644 --- a/toolchain/check/testdata/class/fail_unbound_field.carbon +++ b/toolchain/check/testdata/class/fail_unbound_field.carbon @@ -73,8 +73,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc22_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc22_11.2: type = converted %int.make_type_32, %.loc22_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -90,8 +90,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_13.2: type = converted %int.make_type_32, %.loc13_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc20: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_unknown_member.carbon b/toolchain/check/testdata/class/fail_unknown_member.carbon index 7b7af99205d61..89fe81e75725d 100644 --- a/toolchain/check/testdata/class/fail_unknown_member.carbon +++ b/toolchain/check/testdata/class/fail_unknown_member.carbon @@ -68,10 +68,10 @@ fn G(c: Class) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_19.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_19.2: type = converted %int.make_type_32, %.loc15_19.1 [template = i32] -// CHECK:STDOUT: %param.loc15_7: %Class = param runtime_param0 -// CHECK:STDOUT: %c: %Class = bind_name c, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_16: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc15_16 +// CHECK:STDOUT: %c.param: %Class = param runtime_param0 +// CHECK:STDOUT: %c: %Class = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/forward_declared.carbon b/toolchain/check/testdata/class/forward_declared.carbon index 6ed3c348c110d..c46c294547450 100644 --- a/toolchain/check/testdata/class/forward_declared.carbon +++ b/toolchain/check/testdata/class/forward_declared.carbon @@ -53,10 +53,10 @@ fn F(p: Class*) -> Class* { return p; } // CHECK:STDOUT: %.loc13_14: type = ptr_type %Class [template = constants.%.1] // CHECK:STDOUT: %Class.ref.loc13_20: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc13_25: type = ptr_type %Class [template = constants.%.1] -// CHECK:STDOUT: %param.loc13_7: %.1 = param runtime_param0 -// CHECK:STDOUT: %p: %.1 = bind_name p, %param.loc13_7 -// CHECK:STDOUT: %param.loc13_17: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc13_17 +// CHECK:STDOUT: %p.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %p: %.1 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/basic.carbon b/toolchain/check/testdata/class/generic/basic.carbon index f109b9d2e5149..7a7a41453ee36 100644 --- a/toolchain/check/testdata/class/generic/basic.carbon +++ b/toolchain/check/testdata/class/generic/basic.carbon @@ -72,15 +72,15 @@ class Declaration(T:! type); // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %Declaration.decl: %Declaration.type = class_decl @Declaration [template = constants.%Declaration.1] { // CHECK:STDOUT: %T.patt.loc24_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc24_19.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc24_19.1, runtime_param [symbolic = %T.patt.loc24_19.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc24_19.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc24_19.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc24_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc24_19.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -111,10 +111,10 @@ class Declaration(T:! type); // CHECK:STDOUT: %.loc12_29.2: type = ptr_type %Class.2 [symbolic = %.loc12_29.1 (constants.%.2)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc11_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %.loc12_38.2: type = ptr_type %T [symbolic = %.loc12_38.1 (constants.%.3)] -// CHECK:STDOUT: %param.loc12_23: @GetAddr.%.loc12_29.1 (%.2) = param runtime_param0 -// CHECK:STDOUT: %self: @GetAddr.%.loc12_29.1 (%.2) = bind_name self, %param.loc12_23 -// CHECK:STDOUT: %param.loc12_34: @GetAddr.%.loc12_38.1 (%.3) = param runtime_param1 -// CHECK:STDOUT: %return: ref @GetAddr.%.loc12_38.1 (%.3) = return_slot %param.loc12_34 +// CHECK:STDOUT: %self.param: @GetAddr.%.loc12_29.1 (%.2) = param runtime_param0 +// CHECK:STDOUT: %self: @GetAddr.%.loc12_29.1 (%.2) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @GetAddr.%.loc12_38.1 (%.3) = param runtime_param1 +// CHECK:STDOUT: %return: ref @GetAddr.%.loc12_38.1 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %GetValue.decl: @Class.%GetValue.type (%GetValue.type) = fn_decl @GetValue [symbolic = @Class.%GetValue (constants.%GetValue)] { // CHECK:STDOUT: %self.patt: @GetValue.%Class (%Class.2) = binding_pattern self @@ -125,10 +125,10 @@ class Declaration(T:! type); // CHECK:STDOUT: %.loc17: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc17 [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc11_13.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param.loc17_19: @GetValue.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %self: @GetValue.%Class (%Class.2) = bind_name self, %param.loc17_19 -// CHECK:STDOUT: %param.loc17_29: @GetValue.%T (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @GetValue.%T (%T) = return_slot %param.loc17_29 +// CHECK:STDOUT: %self.param: @GetValue.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %self: @GetValue.%Class (%Class.2) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @GetValue.%T (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @GetValue.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc11_13.1 [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: %.loc21_8.1: @Class.%.loc21_8.2 (%.4) = field_decl k, element0 [template] diff --git a/toolchain/check/testdata/class/generic/call.carbon b/toolchain/check/testdata/class/generic/call.carbon index d0ea716fe4bee..fe72c0ce5dee2 100644 --- a/toolchain/check/testdata/class/generic/call.carbon +++ b/toolchain/check/testdata/class/generic/call.carbon @@ -140,10 +140,10 @@ class Outer(T:! type) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_14: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param.loc4_14 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %param.loc4_24 [symbolic = %N.loc4_23.2 (constants.%N)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc4_23.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %Class.ref.loc6: %Class.type = name_ref Class, %Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] @@ -255,10 +255,10 @@ class Outer(T:! type) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_14: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param.loc4_14 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %param.loc4_24 [symbolic = %N.loc4_23.2 (constants.%N)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc4_23.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %Class.ref: %Class.type = name_ref Class, %Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] @@ -345,10 +345,10 @@ class Outer(T:! type) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_14: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param.loc4_14 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %param.loc4_24 [symbolic = %N.loc4_23.2 (constants.%N)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc4_23.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %Class.ref: %Class.type = name_ref Class, %Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] @@ -460,10 +460,10 @@ class Outer(T:! type) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_27.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_27.2: type = converted %int.make_type_32, %.loc4_27.1 [template = i32] -// CHECK:STDOUT: %param.loc4_14: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param.loc4_14 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_24: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %param.loc4_24 [symbolic = %N.loc4_23.2 (constants.%N)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc4_23.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %Class.ref: %Class.type = name_ref Class, %Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %.loc15_14: i32 = int_literal 5 [template = constants.%.4] @@ -632,8 +632,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %T.patt.loc2_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc2_13.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc2_13.1, runtime_param [symbolic = %T.patt.loc2_13.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc2_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc2_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc2_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc2_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -650,8 +650,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %U.patt.loc3_15.1: type = symbolic_binding_pattern U, 1 [symbolic = %U.patt.loc3_15.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc3_15.1, runtime_param [symbolic = %U.patt.loc3_15.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc3_15.1: type = bind_symbolic_name U, 1, %param [symbolic = %U.loc3_15.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc3_15.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc3_15.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -684,8 +684,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %Outer.ref: %Outer.type = name_ref Outer, file.%Outer.decl [template = constants.%Outer.1] // CHECK:STDOUT: %T.ref: type = name_ref T, @Outer.%T.loc2_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %Outer.loc4_20.2: type = class_type @Outer, @Outer(constants.%T) [symbolic = %Outer.loc4_20.1 (constants.%Outer.2)] -// CHECK:STDOUT: %param: @A.%Outer.loc4_20.1 (%Outer.2) = param runtime_param0 -// CHECK:STDOUT: %return: ref @A.%Outer.loc4_20.1 (%Outer.2) = return_slot %param +// CHECK:STDOUT: %return.param: @A.%Outer.loc4_20.1 (%Outer.2) = param runtime_param0 +// CHECK:STDOUT: %return: ref @A.%Outer.loc4_20.1 (%Outer.2) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: @Inner.%B.type (%B.type.1) = fn_decl @B [symbolic = @Inner.%B (constants.%B.1)] { // CHECK:STDOUT: %return.patt: @B.%Outer.loc7_20.1 (%Outer.3) = return_slot_pattern @@ -694,8 +694,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %Outer.ref: %Outer.type = name_ref Outer, file.%Outer.decl [template = constants.%Outer.1] // CHECK:STDOUT: %U.ref: type = name_ref U, @Inner.%U.loc3_15.1 [symbolic = %U (constants.%U)] // CHECK:STDOUT: %Outer.loc7_20.2: type = class_type @Outer, @Outer(constants.%U) [symbolic = %Outer.loc7_20.1 (constants.%Outer.3)] -// CHECK:STDOUT: %param: @B.%Outer.loc7_20.1 (%Outer.3) = param runtime_param0 -// CHECK:STDOUT: %return: ref @B.%Outer.loc7_20.1 (%Outer.3) = return_slot %param +// CHECK:STDOUT: %return.param: @B.%Outer.loc7_20.1 (%Outer.3) = param runtime_param0 +// CHECK:STDOUT: %return: ref @B.%Outer.loc7_20.1 (%Outer.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: @Inner.%C.type (%C.type.1) = fn_decl @C [symbolic = @Inner.%C (constants.%C.1)] { // CHECK:STDOUT: %return.patt: @C.%Inner.loc10_20.1 (%Inner.3) = return_slot_pattern @@ -705,8 +705,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %Inner.ref: @C.%Inner.type (%Inner.type.1) = name_ref Inner, %.loc10 [symbolic = %Inner.loc10_15 (constants.%Inner.1)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Outer.%T.loc2_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %Inner.loc10_20.2: type = class_type @Inner, @Inner(constants.%T, constants.%T) [symbolic = %Inner.loc10_20.1 (constants.%Inner.3)] -// CHECK:STDOUT: %param: @C.%Inner.loc10_20.1 (%Inner.3) = param runtime_param0 -// CHECK:STDOUT: %return: ref @C.%Inner.loc10_20.1 (%Inner.3) = return_slot %param +// CHECK:STDOUT: %return.param: @C.%Inner.loc10_20.1 (%Inner.3) = param runtime_param0 +// CHECK:STDOUT: %return: ref @C.%Inner.loc10_20.1 (%Inner.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: @Inner.%D.type (%D.type.1) = fn_decl @D [symbolic = @Inner.%D (constants.%D.1)] { // CHECK:STDOUT: %return.patt: @D.%Inner.loc13_20.1 (%Inner.2) = return_slot_pattern @@ -716,8 +716,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %Inner.ref: @D.%Inner.type (%Inner.type.1) = name_ref Inner, %.loc13 [symbolic = %Inner.loc13_15 (constants.%Inner.1)] // CHECK:STDOUT: %U.ref: type = name_ref U, @Inner.%U.loc3_15.1 [symbolic = %U (constants.%U)] // CHECK:STDOUT: %Inner.loc13_20.2: type = class_type @Inner, @Inner(constants.%T, constants.%U) [symbolic = %Inner.loc13_20.1 (constants.%Inner.2)] -// CHECK:STDOUT: %param: @D.%Inner.loc13_20.1 (%Inner.2) = param runtime_param0 -// CHECK:STDOUT: %return: ref @D.%Inner.loc13_20.1 (%Inner.2) = return_slot %param +// CHECK:STDOUT: %return.param: @D.%Inner.loc13_20.1 (%Inner.2) = param runtime_param0 +// CHECK:STDOUT: %return: ref @D.%Inner.loc13_20.1 (%Inner.2) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/field.carbon b/toolchain/check/testdata/class/generic/field.carbon index 5fec60bbba562..b7d5de453f001 100644 --- a/toolchain/check/testdata/class/generic/field.carbon +++ b/toolchain/check/testdata/class/generic/field.carbon @@ -88,8 +88,8 @@ fn H(U:! type, c: Class(U)) -> U { // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %c.patt: %Class.3 = binding_pattern c @@ -105,10 +105,10 @@ fn H(U:! type, c: Class(U)) -> U { // CHECK:STDOUT: %int.make_type_32.loc15_24: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_24.1: type = value_of_initializer %int.make_type_32.loc15_24 [template = i32] // CHECK:STDOUT: %.loc15_24.2: type = converted %int.make_type_32.loc15_24, %.loc15_24.1 [template = i32] -// CHECK:STDOUT: %param.loc15_7: %Class.3 = param runtime_param0 -// CHECK:STDOUT: %c: %Class.3 = bind_name c, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_21: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc15_21 +// CHECK:STDOUT: %c.param: %Class.3 = param runtime_param0 +// CHECK:STDOUT: %c: %Class.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %T.patt.loc19_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc19_6.2 (constants.%T.patt.2)] @@ -122,12 +122,12 @@ fn H(U:! type, c: Class(U)) -> U { // CHECK:STDOUT: %T.ref.loc19_25: type = name_ref T, %T.loc19_6.1 [symbolic = %T.loc19_6.2 (constants.%T)] // CHECK:STDOUT: %Class.loc19_24.1: type = class_type @Class, @Class(constants.%T) [symbolic = %Class.loc19_24.2 (constants.%Class.2)] // CHECK:STDOUT: %T.ref.loc19_32: type = name_ref T, %T.loc19_6.1 [symbolic = %T.loc19_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc19_7: type = param runtime_param -// CHECK:STDOUT: %T.loc19_6.1: type = bind_symbolic_name T, 0, %param.loc19_7 [symbolic = %T.loc19_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc19_17: @G.%Class.loc19_24.2 (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %c: @G.%Class.loc19_24.2 (%Class.2) = bind_name c, %param.loc19_17 -// CHECK:STDOUT: %param.loc19_29: @G.%T.loc19_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @G.%T.loc19_6.2 (%T) = return_slot %param.loc19_29 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc19_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc19_6.2 (constants.%T)] +// CHECK:STDOUT: %c.param: @G.%Class.loc19_24.2 (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %c: @G.%Class.loc19_24.2 (%Class.2) = bind_name c, %c.param +// CHECK:STDOUT: %return.param: @G.%T.loc19_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @G.%T.loc19_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] { // CHECK:STDOUT: %U.patt.loc23_6.1: type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc23_6.2 (constants.%U.patt)] @@ -141,12 +141,12 @@ fn H(U:! type, c: Class(U)) -> U { // CHECK:STDOUT: %U.ref.loc23_25: type = name_ref U, %U.loc23_6.1 [symbolic = %U.loc23_6.2 (constants.%U)] // CHECK:STDOUT: %Class.loc23_24.1: type = class_type @Class, @Class(constants.%U) [symbolic = %Class.loc23_24.2 (constants.%Class.4)] // CHECK:STDOUT: %U.ref.loc23_32: type = name_ref U, %U.loc23_6.1 [symbolic = %U.loc23_6.2 (constants.%U)] -// CHECK:STDOUT: %param.loc23_7: type = param runtime_param -// CHECK:STDOUT: %U.loc23_6.1: type = bind_symbolic_name U, 0, %param.loc23_7 [symbolic = %U.loc23_6.2 (constants.%U)] -// CHECK:STDOUT: %param.loc23_17: @H.%Class.loc23_24.2 (%Class.4) = param runtime_param0 -// CHECK:STDOUT: %c: @H.%Class.loc23_24.2 (%Class.4) = bind_name c, %param.loc23_17 -// CHECK:STDOUT: %param.loc23_29: @H.%U.loc23_6.2 (%U) = param runtime_param1 -// CHECK:STDOUT: %return: ref @H.%U.loc23_6.2 (%U) = return_slot %param.loc23_29 +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc23_6.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc23_6.2 (constants.%U)] +// CHECK:STDOUT: %c.param: @H.%Class.loc23_24.2 (%Class.4) = param runtime_param0 +// CHECK:STDOUT: %c: @H.%Class.loc23_24.2 (%Class.4) = bind_name c, %c.param +// CHECK:STDOUT: %return.param: @H.%U.loc23_6.2 (%U) = param runtime_param1 +// CHECK:STDOUT: %return: ref @H.%U.loc23_6.2 (%U) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/import.carbon b/toolchain/check/testdata/class/generic/import.carbon index 373fdd3be62d5..fb2b28c8c9072 100644 --- a/toolchain/check/testdata/class/generic/import.carbon +++ b/toolchain/check/testdata/class/generic/import.carbon @@ -137,15 +137,15 @@ class Class(U:! type) { // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %CompleteClass.decl: %CompleteClass.type = class_decl @CompleteClass [template = constants.%CompleteClass.1] { // CHECK:STDOUT: %T.patt.loc6_21.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc6_21.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc6_21.1, runtime_param [symbolic = %T.patt.loc6_21.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc6_21.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc6_21.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_21.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_21.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type.2 = fn_decl @F.2 [template = constants.%F.2] { // CHECK:STDOUT: %return.patt: %CompleteClass.3 = return_slot_pattern @@ -156,8 +156,8 @@ class Class(U:! type) { // CHECK:STDOUT: %.loc11_24.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_24.2: type = converted %int.make_type_32, %.loc11_24.1 [template = i32] // CHECK:STDOUT: %CompleteClass: type = class_type @CompleteClass, @CompleteClass(i32) [template = constants.%CompleteClass.3] -// CHECK:STDOUT: %param: %CompleteClass.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %CompleteClass.3 = return_slot %param +// CHECK:STDOUT: %return.param: %CompleteClass.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %CompleteClass.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -190,8 +190,8 @@ class Class(U:! type) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_13.2: type = converted %int.make_type_32, %.loc8_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc9: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: @@ -313,8 +313,8 @@ class Class(U:! type) { // CHECK:STDOUT: %T.patt.loc4: type = symbolic_binding_pattern T, 0 [symbolic = constants.%T.patt.1] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4, runtime_param [symbolic = constants.%T.patt.1] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4: type = bind_symbolic_name T, 0, %param [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type.2 = fn_decl @F.2 [template = constants.%F.2] { // CHECK:STDOUT: %return.patt: %CompleteClass.3 = return_slot_pattern @@ -325,8 +325,8 @@ class Class(U:! type) { // CHECK:STDOUT: %.loc8_24.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_24.2: type = converted %int.make_type_32, %.loc8_24.1 [template = i32] // CHECK:STDOUT: %CompleteClass: type = class_type @CompleteClass, @CompleteClass(i32) [template = constants.%CompleteClass.3] -// CHECK:STDOUT: %param: %CompleteClass.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %CompleteClass.3 = return_slot %param +// CHECK:STDOUT: %return.param: %CompleteClass.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %CompleteClass.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -496,8 +496,8 @@ class Class(U:! type) { // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_19.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_19.2: type = converted %int.make_type_32.loc5, %.loc5_19.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %UseField.decl: %UseField.type = fn_decl @UseField [template = constants.%UseField] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -506,8 +506,8 @@ class Class(U:! type) { // CHECK:STDOUT: %int.make_type_32.loc10: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_18.1: type = value_of_initializer %int.make_type_32.loc10 [template = i32] // CHECK:STDOUT: %.loc10_18.2: type = converted %int.make_type_32.loc10, %.loc10_18.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -903,8 +903,8 @@ class Class(U:! type) { // CHECK:STDOUT: %U.patt.loc12_13.1: type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc12_13.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc12_13.1, runtime_param [symbolic = %U.patt.loc12_13.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc12_13.1: type = bind_symbolic_name U, 0, %param [symbolic = %U.loc12_13.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc12_13.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc12_13.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/init.carbon b/toolchain/check/testdata/class/generic/init.carbon index 425e0bed28444..c18e002cdf13b 100644 --- a/toolchain/check/testdata/class/generic/init.carbon +++ b/toolchain/check/testdata/class/generic/init.carbon @@ -96,8 +96,8 @@ fn InitFromAdaptedSpecific(x: i32) -> i32 { // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %InitFromStructGeneric.decl: %InitFromStructGeneric.type = fn_decl @InitFromStructGeneric [template = constants.%InitFromStructGeneric] { // CHECK:STDOUT: %T.patt.loc8_26.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_26.2 (constants.%T.patt.2)] @@ -109,12 +109,12 @@ fn InitFromAdaptedSpecific(x: i32) -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc8_39: type = name_ref T, %T.loc8_26.1 [symbolic = %T.loc8_26.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc8_45: type = name_ref T, %T.loc8_26.1 [symbolic = %T.loc8_26.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_27: type = param runtime_param -// CHECK:STDOUT: %T.loc8_26.1: type = bind_symbolic_name T, 0, %param.loc8_27 [symbolic = %T.loc8_26.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_37: @InitFromStructGeneric.%T.loc8_26.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @InitFromStructGeneric.%T.loc8_26.2 (%T) = bind_name x, %param.loc8_37 -// CHECK:STDOUT: %param.loc8_42: @InitFromStructGeneric.%T.loc8_26.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @InitFromStructGeneric.%T.loc8_26.2 (%T) = return_slot %param.loc8_42 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_26.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_26.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @InitFromStructGeneric.%T.loc8_26.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @InitFromStructGeneric.%T.loc8_26.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @InitFromStructGeneric.%T.loc8_26.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @InitFromStructGeneric.%T.loc8_26.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %InitFromStructSpecific.decl: %InitFromStructSpecific.type = fn_decl @InitFromStructSpecific [template = constants.%InitFromStructSpecific] { // CHECK:STDOUT: %x.patt: i32 = binding_pattern x @@ -128,10 +128,10 @@ fn InitFromAdaptedSpecific(x: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc13_38: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_38.1: type = value_of_initializer %int.make_type_32.loc13_38 [template = i32] // CHECK:STDOUT: %.loc13_38.2: type = converted %int.make_type_32.loc13_38, %.loc13_38.1 [template = i32] -// CHECK:STDOUT: %param.loc13_28: i32 = param runtime_param0 -// CHECK:STDOUT: %x: i32 = bind_name x, %param.loc13_28 -// CHECK:STDOUT: %param.loc13_35: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_35 +// CHECK:STDOUT: %x.param: i32 = param runtime_param0 +// CHECK:STDOUT: %x: i32 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -297,8 +297,8 @@ fn InitFromAdaptedSpecific(x: i32) -> i32 { // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %InitFromAdaptedGeneric.decl: %InitFromAdaptedGeneric.type = fn_decl @InitFromAdaptedGeneric [template = constants.%InitFromAdaptedGeneric] { // CHECK:STDOUT: %T.patt.loc8_27.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_27.2 (constants.%T.patt.2)] @@ -310,12 +310,12 @@ fn InitFromAdaptedSpecific(x: i32) -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc8_40: type = name_ref T, %T.loc8_27.1 [symbolic = %T.loc8_27.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc8_46: type = name_ref T, %T.loc8_27.1 [symbolic = %T.loc8_27.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_28: type = param runtime_param -// CHECK:STDOUT: %T.loc8_27.1: type = bind_symbolic_name T, 0, %param.loc8_28 [symbolic = %T.loc8_27.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_38: @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = bind_name x, %param.loc8_38 -// CHECK:STDOUT: %param.loc8_43: @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = return_slot %param.loc8_43 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_27.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_27.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @InitFromAdaptedGeneric.%T.loc8_27.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %InitFromAdaptedSpecific.decl: %InitFromAdaptedSpecific.type = fn_decl @InitFromAdaptedSpecific [template = constants.%InitFromAdaptedSpecific] { // CHECK:STDOUT: %x.patt: i32 = binding_pattern x @@ -329,10 +329,10 @@ fn InitFromAdaptedSpecific(x: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12_39: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_39.1: type = value_of_initializer %int.make_type_32.loc12_39 [template = i32] // CHECK:STDOUT: %.loc12_39.2: type = converted %int.make_type_32.loc12_39, %.loc12_39.1 [template = i32] -// CHECK:STDOUT: %param.loc12_29: i32 = param runtime_param0 -// CHECK:STDOUT: %x: i32 = bind_name x, %param.loc12_29 -// CHECK:STDOUT: %param.loc12_36: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc12_36 +// CHECK:STDOUT: %x.param: i32 = param runtime_param0 +// CHECK:STDOUT: %x: i32 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/member_access.carbon b/toolchain/check/testdata/class/generic/member_access.carbon index a1e88cc141ae5..87f7c98013095 100644 --- a/toolchain/check/testdata/class/generic/member_access.carbon +++ b/toolchain/check/testdata/class/generic/member_access.carbon @@ -116,8 +116,8 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %T.patt.loc2_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc2_13.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc2_13.1, runtime_param [symbolic = %T.patt.loc2_13.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc2_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc2_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc2_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc2_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %DirectFieldAccess.decl: %DirectFieldAccess.type = fn_decl @DirectFieldAccess [template = constants.%DirectFieldAccess] { // CHECK:STDOUT: %x.patt: %Class.3 = binding_pattern x @@ -133,10 +133,10 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %int.make_type_32.loc10_40: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_40.1: type = value_of_initializer %int.make_type_32.loc10_40 [template = i32] // CHECK:STDOUT: %.loc10_40.2: type = converted %int.make_type_32.loc10_40, %.loc10_40.1 [template = i32] -// CHECK:STDOUT: %param.loc10_23: %Class.3 = param runtime_param0 -// CHECK:STDOUT: %x: %Class.3 = bind_name x, %param.loc10_23 -// CHECK:STDOUT: %param.loc10_37: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc10_37 +// CHECK:STDOUT: %x.param: %Class.3 = param runtime_param0 +// CHECK:STDOUT: %x: %Class.3 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MethodCall.decl: %MethodCall.type = fn_decl @MethodCall [template = constants.%MethodCall] { // CHECK:STDOUT: %x.patt: %Class.3 = binding_pattern x @@ -152,10 +152,10 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %int.make_type_32.loc14_33: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_33.1: type = value_of_initializer %int.make_type_32.loc14_33 [template = i32] // CHECK:STDOUT: %.loc14_33.2: type = converted %int.make_type_32.loc14_33, %.loc14_33.1 [template = i32] -// CHECK:STDOUT: %param.loc14_16: %Class.3 = param runtime_param0 -// CHECK:STDOUT: %x: %Class.3 = bind_name x, %param.loc14_16 -// CHECK:STDOUT: %param.loc14_30: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc14_30 +// CHECK:STDOUT: %x.param: %Class.3 = param runtime_param0 +// CHECK:STDOUT: %x: %Class.3 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AddrMethodCall.decl: %AddrMethodCall.type = fn_decl @AddrMethodCall [template = constants.%AddrMethodCall] { // CHECK:STDOUT: %p.patt: %.12 = binding_pattern p @@ -172,10 +172,10 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %int.make_type_32.loc18_38: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_38.1: type = value_of_initializer %int.make_type_32.loc18_38 [template = i32] // CHECK:STDOUT: %.loc18_38.2: type = converted %int.make_type_32.loc18_38, %.loc18_38.1 [template = i32] -// CHECK:STDOUT: %param.loc18_20: %.12 = param runtime_param0 -// CHECK:STDOUT: %p: %.12 = bind_name p, %param.loc18_20 -// CHECK:STDOUT: %param.loc18_35: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc18_35 +// CHECK:STDOUT: %p.param: %.12 = param runtime_param0 +// CHECK:STDOUT: %p: %.12 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -205,10 +205,10 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %.loc5_16: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc5_16 [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc2_13.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param.loc5_14: @Get.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %self: @Get.%Class (%Class.2) = bind_name self, %param.loc5_14 -// CHECK:STDOUT: %param.loc5_24: @Get.%T (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Get.%T (%T) = return_slot %param.loc5_24 +// CHECK:STDOUT: %self.param: @Get.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %self: @Get.%Class (%Class.2) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @Get.%T (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Get.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %GetAddr.decl: @Class.%GetAddr.type (%GetAddr.type.1) = fn_decl @GetAddr [symbolic = @Class.%GetAddr (constants.%GetAddr.1)] { // CHECK:STDOUT: %self.patt: @GetAddr.%.loc7_29.1 (%.3) = binding_pattern self @@ -222,10 +222,10 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %.loc7_29.2: type = ptr_type %Class.2 [symbolic = %.loc7_29.1 (constants.%.3)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc2_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %.loc7_38.2: type = ptr_type %T [symbolic = %.loc7_38.1 (constants.%.4)] -// CHECK:STDOUT: %param.loc7_23: @GetAddr.%.loc7_29.1 (%.3) = param runtime_param0 -// CHECK:STDOUT: %self: @GetAddr.%.loc7_29.1 (%.3) = bind_name self, %param.loc7_23 -// CHECK:STDOUT: %param.loc7_34: @GetAddr.%.loc7_38.1 (%.4) = param runtime_param1 -// CHECK:STDOUT: %return: ref @GetAddr.%.loc7_38.1 (%.4) = return_slot %param.loc7_34 +// CHECK:STDOUT: %self.param: @GetAddr.%.loc7_29.1 (%.3) = param runtime_param0 +// CHECK:STDOUT: %self: @GetAddr.%.loc7_29.1 (%.3) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @GetAddr.%.loc7_38.1 (%.4) = param runtime_param1 +// CHECK:STDOUT: %return: ref @GetAddr.%.loc7_38.1 (%.4) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_1.1: = complete_type_witness %.5 [symbolic = %.loc8_1.3 (constants.%.6)] // CHECK:STDOUT: @@ -459,8 +459,8 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %StaticMemberFunctionCall.decl: %StaticMemberFunctionCall.type = fn_decl @StaticMemberFunctionCall [template = constants.%StaticMemberFunctionCall] { // CHECK:STDOUT: %T.patt.loc8_29.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_29.2 (constants.%T.patt.2)] @@ -471,10 +471,10 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %Class.ref.loc8: %Class.type = name_ref Class, file.%Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %T.ref.loc8: type = name_ref T, %T.loc8_29.1 [symbolic = %T.loc8_29.2 (constants.%T)] // CHECK:STDOUT: %Class.loc8_47.1: type = class_type @Class, @Class(constants.%T) [symbolic = %Class.loc8_47.2 (constants.%Class.2)] -// CHECK:STDOUT: %param.loc8_30: type = param runtime_param -// CHECK:STDOUT: %T.loc8_29.1: type = bind_symbolic_name T, 0, %param.loc8_30 [symbolic = %T.loc8_29.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_39: @StaticMemberFunctionCall.%Class.loc8_47.2 (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %return: ref @StaticMemberFunctionCall.%Class.loc8_47.2 (%Class.2) = return_slot %param.loc8_39 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_29.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_29.2 (constants.%T)] +// CHECK:STDOUT: %return.param: @StaticMemberFunctionCall.%Class.loc8_47.2 (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %return: ref @StaticMemberFunctionCall.%Class.loc8_47.2 (%Class.2) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -514,8 +514,8 @@ fn StaticMemberFunctionCall(T:! type) -> Class(T) { // CHECK:STDOUT: %Class.ref: %Class.type = name_ref Class, file.%Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %Class.loc5_21.2: type = class_type @Class, @Class(constants.%T) [symbolic = %Class.loc5_21.1 (constants.%Class.2)] -// CHECK:STDOUT: %param: @Make.%Class.loc5_21.1 (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %return: ref @Make.%Class.loc5_21.1 (%Class.2) = return_slot %param +// CHECK:STDOUT: %return.param: @Make.%Class.loc5_21.1 (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %return: ref @Make.%Class.loc5_21.1 (%Class.2) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/member_inline.carbon b/toolchain/check/testdata/class/generic/member_inline.carbon index 68d09200daf22..39f748c6d412b 100644 --- a/toolchain/check/testdata/class/generic/member_inline.carbon +++ b/toolchain/check/testdata/class/generic/member_inline.carbon @@ -80,8 +80,8 @@ class C(T:! type) { // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -108,10 +108,10 @@ class C(T:! type) { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc5_11: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %T.ref.loc5_17: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param.loc5_9: @F.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %n: @F.%T (%T) = bind_name n, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_14: @F.%T (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T (%T) = return_slot %param.loc5_14 +// CHECK:STDOUT: %n.param: @F.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %n: @F.%T (%T) = bind_name n, %n.param +// CHECK:STDOUT: %return.param: @F.%T (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: @Class.%G.type (%G.type) = fn_decl @G [symbolic = @Class.%G (constants.%G)] { // CHECK:STDOUT: %self.patt: @G.%Class (%Class.2) = binding_pattern self @@ -122,10 +122,10 @@ class C(T:! type) { // CHECK:STDOUT: %.loc9: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc9 [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param.loc9_12: @G.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %self: @G.%Class (%Class.2) = bind_name self, %param.loc9_12 -// CHECK:STDOUT: %param.loc9_22: @G.%T (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @G.%T (%T) = return_slot %param.loc9_22 +// CHECK:STDOUT: %self.param: @G.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %self: @G.%Class (%Class.2) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @G.%T (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @G.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc4_13.1 [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: %.loc13_8.1: @Class.%.loc13_8.2 (%.2) = field_decl n, element0 [template] @@ -242,8 +242,8 @@ class C(T:! type) { // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/member_out_of_line.carbon b/toolchain/check/testdata/class/generic/member_out_of_line.carbon index 4f8a8f2509370..bed959c33fe58 100644 --- a/toolchain/check/testdata/class/generic/member_out_of_line.carbon +++ b/toolchain/check/testdata/class/generic/member_out_of_line.carbon @@ -149,8 +149,8 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [symbolic = constants.%F] { // CHECK:STDOUT: %n.patt: %T = binding_pattern n @@ -158,14 +158,14 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %return.patt: %T = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %T = param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc10_11: type = param runtime_param -// CHECK:STDOUT: %T.loc10: type = bind_symbolic_name T, 0, %param.loc10_11 [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc10: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: %T.ref.loc10_25: type = name_ref T, %T.loc10 [symbolic = constants.%T] // CHECK:STDOUT: %T.ref.loc10_31: type = name_ref T, %T.loc10 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc10_23: %T = param runtime_param0 -// CHECK:STDOUT: %n.loc10: %T = bind_name n, %param.loc10_23 -// CHECK:STDOUT: %param.loc10_28: %T = param runtime_param1 -// CHECK:STDOUT: %return: ref %T = return_slot %param.loc10_28 +// CHECK:STDOUT: %n.param.loc10: %T = param runtime_param0 +// CHECK:STDOUT: %n.loc10: %T = bind_name n, %n.param.loc10 +// CHECK:STDOUT: %return.param.loc10: %T = param runtime_param1 +// CHECK:STDOUT: %return: ref %T = return_slot %return.param.loc10 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [symbolic = constants.%G] { // CHECK:STDOUT: %self.patt: %Class.2 = binding_pattern self @@ -173,15 +173,15 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %return.patt: %T = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %T = param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc14_11: type = param runtime_param -// CHECK:STDOUT: %T.loc14: type = bind_symbolic_name T, 0, %param.loc14_11 [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc14: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: %.loc14_28: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = constants.%Class.2] // CHECK:STDOUT: %Self.ref.loc14: type = name_ref Self, %.loc14_28 [symbolic = constants.%Class.2] // CHECK:STDOUT: %T.ref.loc14: type = name_ref T, %T.loc14 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc14_26: %Class.2 = param runtime_param0 -// CHECK:STDOUT: %self.loc14: %Class.2 = bind_name self, %param.loc14_26 -// CHECK:STDOUT: %param.loc14_36: %T = param runtime_param1 -// CHECK:STDOUT: %return: ref %T = return_slot %param.loc14_36 +// CHECK:STDOUT: %self.param.loc14: %Class.2 = param runtime_param0 +// CHECK:STDOUT: %self.loc14: %Class.2 = bind_name self, %self.param.loc14 +// CHECK:STDOUT: %return.param.loc14: %T = param runtime_param1 +// CHECK:STDOUT: %return: ref %T = return_slot %return.param.loc14 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -208,10 +208,10 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc5_11: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T.loc5 (constants.%T)] // CHECK:STDOUT: %T.ref.loc5_17: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T.loc5 (constants.%T)] -// CHECK:STDOUT: %param.loc5_9: @F.%T.loc5 (%T) = param runtime_param0 -// CHECK:STDOUT: %n.loc5: @F.%T.loc5 (%T) = bind_name n, %param.loc5_9 -// CHECK:STDOUT: %param.loc5_14: @F.%T.loc5 (%T) = param runtime_param1 -// CHECK:STDOUT: %.loc5: ref @F.%T.loc5 (%T) = return_slot %param.loc5_14 +// CHECK:STDOUT: %n.param.loc5: @F.%T.loc5 (%T) = param runtime_param0 +// CHECK:STDOUT: %n.loc5: @F.%T.loc5 (%T) = bind_name n, %n.param.loc5 +// CHECK:STDOUT: %return.param.loc5: @F.%T.loc5 (%T) = param runtime_param1 +// CHECK:STDOUT: %.loc5: ref @F.%T.loc5 (%T) = return_slot %return.param.loc5 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: @Class.%G.type (%G.type) = fn_decl @G [symbolic = @Class.%G (constants.%G)] { // CHECK:STDOUT: %self.patt: %Class.2 = binding_pattern self @@ -222,10 +222,10 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %.loc6_14: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref.loc6: type = name_ref Self, %.loc6_14 [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %T.ref.loc6: type = name_ref T, @Class.%T.loc4_13.1 [symbolic = %T.loc6 (constants.%T)] -// CHECK:STDOUT: %param.loc6_12: @G.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %self.loc6: @G.%Class (%Class.2) = bind_name self, %param.loc6_12 -// CHECK:STDOUT: %param.loc6_22: @G.%T.loc6 (%T) = param runtime_param1 -// CHECK:STDOUT: %.loc6_22: ref @G.%T.loc6 (%T) = return_slot %param.loc6_22 +// CHECK:STDOUT: %self.param.loc6: @G.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %self.loc6: @G.%Class (%Class.2) = bind_name self, %self.param.loc6 +// CHECK:STDOUT: %return.param.loc6: @G.%T.loc6 (%T) = param runtime_param1 +// CHECK:STDOUT: %.loc6_22: ref @G.%T.loc6 (%T) = return_slot %return.param.loc6 // CHECK:STDOUT: } // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc4_13.1 [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: %.loc7_8.1: @Class.%.loc7_8.2 (%.2) = field_decl n, element0 [template] @@ -348,8 +348,8 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [symbolic = constants.%F] { // CHECK:STDOUT: %self.patt: %B.2 = binding_pattern self @@ -357,18 +357,18 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %a.patt: %T = binding_pattern a // CHECK:STDOUT: %a.param_patt: %T = param_pattern %a.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc10_7: type = param runtime_param -// CHECK:STDOUT: %T.loc10: type = bind_symbolic_name T, 0, %param.loc10_7 [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc10: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: %T.ref.loc10_22: type = name_ref T, %T.loc10 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc10_19: %T = param runtime_param -// CHECK:STDOUT: %N.loc10: %T = bind_symbolic_name N, 1, %param.loc10_19 [symbolic = constants.%N] +// CHECK:STDOUT: %N.param: %T = param runtime_param +// CHECK:STDOUT: %N.loc10: %T = bind_symbolic_name N, 1, %N.param [symbolic = constants.%N] // CHECK:STDOUT: %.loc10: type = specific_constant constants.%B.2, @B(constants.%T, constants.%N) [symbolic = constants.%B.2] // CHECK:STDOUT: %Self.ref.loc10: type = name_ref Self, %.loc10 [symbolic = constants.%B.2] // CHECK:STDOUT: %T.ref.loc10_42: type = name_ref T, %T.loc10 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc10_31: %B.2 = param runtime_param0 -// CHECK:STDOUT: %self.loc10: %B.2 = bind_name self, %param.loc10_31 -// CHECK:STDOUT: %param.loc10_40: %T = param runtime_param1 -// CHECK:STDOUT: %a.loc10: %T = bind_name a, %param.loc10_40 +// CHECK:STDOUT: %self.param.loc10: %B.2 = param runtime_param0 +// CHECK:STDOUT: %self.loc10: %B.2 = bind_name self, %self.param.loc10 +// CHECK:STDOUT: %a.param.loc10: %T = param runtime_param1 +// CHECK:STDOUT: %a.loc10: %T = bind_name a, %a.param.loc10 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -386,8 +386,8 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %N.param_patt: @B.%T (%T) = param_pattern %N.patt.loc5_11.1, runtime_param [symbolic = %N.patt.loc5_11.2 (constants.%N.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @A.%T.loc4_9.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param: @B.%T (%T) = param runtime_param -// CHECK:STDOUT: %N.loc5_11.1: @B.%T (%T) = bind_symbolic_name N, 1, %param [symbolic = %N.loc5_11.2 (constants.%N)] +// CHECK:STDOUT: %N.param: @B.%T (%T) = param runtime_param +// CHECK:STDOUT: %N.loc5_11.1: @B.%T (%T) = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc5_11.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -416,10 +416,10 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %.loc6: type = specific_constant constants.%B.2, @B(constants.%T, constants.%N) [symbolic = %B (constants.%B.2)] // CHECK:STDOUT: %Self.ref.loc6: type = name_ref Self, %.loc6 [symbolic = %B (constants.%B.2)] // CHECK:STDOUT: %T.ref.loc6: type = name_ref T, @A.%T.loc4_9.1 [symbolic = %T.loc6 (constants.%T)] -// CHECK:STDOUT: %param.loc6_14: @F.%B (%B.2) = param runtime_param0 -// CHECK:STDOUT: %self.loc6: @F.%B (%B.2) = bind_name self, %param.loc6_14 -// CHECK:STDOUT: %param.loc6_23: @F.%T.loc6 (%T) = param runtime_param1 -// CHECK:STDOUT: %a.loc6: @F.%T.loc6 (%T) = bind_name a, %param.loc6_23 +// CHECK:STDOUT: %self.param.loc6: @F.%B (%B.2) = param runtime_param0 +// CHECK:STDOUT: %self.loc6: @F.%B (%B.2) = bind_name self, %self.param.loc6 +// CHECK:STDOUT: %a.param.loc6: @F.%T.loc6 (%T) = param runtime_param1 +// CHECK:STDOUT: %a.loc6: @F.%T.loc6 (%T) = bind_name a, %a.param.loc6 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc7: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -520,8 +520,8 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %NotGeneric.decl: type = class_decl @NotGeneric [template = constants.%NotGeneric] {} {} // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] {} { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc15_15.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc15_15.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc15_15.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc15_15.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -593,8 +593,8 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %T.patt.loc4_15.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_15.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_15.1, runtime_param [symbolic = %T.patt.loc4_15.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_15.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_15.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] {} {} // CHECK:STDOUT: } @@ -682,14 +682,14 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %T.patt.loc4_15.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_15.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_15.1, runtime_param [symbolic = %T.patt.loc4_15.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_15.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_15.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] {} { -// CHECK:STDOUT: %param.loc15_13: type = param runtime_param -// CHECK:STDOUT: %T.loc15_12.1: type = bind_symbolic_name T, 0, %param.loc15_13 [symbolic = %T.loc15_12.2 (constants.%T)] -// CHECK:STDOUT: %param.loc15_23: type = param runtime_param -// CHECK:STDOUT: %U.loc15_22.1: type = bind_symbolic_name U, 1, %param.loc15_23 [symbolic = %U.loc15_22.2 (constants.%U)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc15_12.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc15_12.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc15_22.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc15_22.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -791,14 +791,14 @@ fn Generic(T:! ()).WrongType() {} // CHECK:STDOUT: %T.patt.loc4_15.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_15.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_15.1, runtime_param [symbolic = %T.patt.loc4_15.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_15.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_15.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] {} { // CHECK:STDOUT: %.loc14_17.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc14_17.2: type = converted %.loc14_17.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param -// CHECK:STDOUT: %T.loc14_12.1: %.1 = bind_symbolic_name T, 0, %param [symbolic = %T.loc14_12.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %.1 = param runtime_param +// CHECK:STDOUT: %T.loc14_12.1: %.1 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc14_12.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/method_deduce.carbon b/toolchain/check/testdata/class/generic/method_deduce.carbon index 60ef3fb11a358..85e80dc12902d 100644 --- a/toolchain/check/testdata/class/generic/method_deduce.carbon +++ b/toolchain/check/testdata/class/generic/method_deduce.carbon @@ -96,8 +96,8 @@ fn CallGenericMethodWithNonDeducedParam(c: Class(A)) -> (A, B) { // CHECK:STDOUT: %T.patt.loc14_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc14_13.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc14_13.1, runtime_param [symbolic = %T.patt.loc14_13.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc14_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc14_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc14_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc14_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %CallGenericMethod.decl: %CallGenericMethod.type = fn_decl @CallGenericMethod [template = constants.%CallGenericMethod] { // CHECK:STDOUT: %c.patt: %Class.3 = binding_pattern c @@ -112,10 +112,10 @@ fn CallGenericMethodWithNonDeducedParam(c: Class(A)) -> (A, B) { // CHECK:STDOUT: %B.ref.loc19: type = name_ref B, file.%B.decl [template = constants.%B] // CHECK:STDOUT: %.loc19_43.1: %.4 = tuple_literal (%A.ref.loc19_39, %B.ref.loc19) // CHECK:STDOUT: %.loc19_43.2: type = converted %.loc19_43.1, constants.%.9 [template = constants.%.9] -// CHECK:STDOUT: %param.loc19_23: %Class.3 = param runtime_param0 -// CHECK:STDOUT: %c: %Class.3 = bind_name c, %param.loc19_23 -// CHECK:STDOUT: %param.loc19_35: %.9 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.9 = return_slot %param.loc19_35 +// CHECK:STDOUT: %c.param: %Class.3 = param runtime_param0 +// CHECK:STDOUT: %c: %Class.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.9 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.9 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGenericMethodWithNonDeducedParam.decl: %CallGenericMethodWithNonDeducedParam.type = fn_decl @CallGenericMethodWithNonDeducedParam [template = constants.%CallGenericMethodWithNonDeducedParam] { // CHECK:STDOUT: %c.patt: %Class.3 = binding_pattern c @@ -130,10 +130,10 @@ fn CallGenericMethodWithNonDeducedParam(c: Class(A)) -> (A, B) { // CHECK:STDOUT: %B.ref.loc23: type = name_ref B, file.%B.decl [template = constants.%B] // CHECK:STDOUT: %.loc23_62.1: %.4 = tuple_literal (%A.ref.loc23_58, %B.ref.loc23) // CHECK:STDOUT: %.loc23_62.2: type = converted %.loc23_62.1, constants.%.9 [template = constants.%.9] -// CHECK:STDOUT: %param.loc23_42: %Class.3 = param runtime_param0 -// CHECK:STDOUT: %c: %Class.3 = bind_name c, %param.loc23_42 -// CHECK:STDOUT: %param.loc23_54: %.9 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.9 = return_slot %param.loc23_54 +// CHECK:STDOUT: %c.param: %Class.3 = param runtime_param0 +// CHECK:STDOUT: %c: %Class.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.9 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.9 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -172,10 +172,10 @@ fn CallGenericMethodWithNonDeducedParam(c: Class(A)) -> (A, B) { // CHECK:STDOUT: %U.ref.loc15_27: type = name_ref U, %U.loc15_10.2 [symbolic = %U.loc15_10.1 (constants.%U)] // CHECK:STDOUT: %.loc15_28.2: %.4 = tuple_literal (%T.ref, %U.ref.loc15_27) // CHECK:STDOUT: %.loc15_28.3: type = converted %.loc15_28.2, constants.%.5 [symbolic = %.loc15_28.1 (constants.%.5)] -// CHECK:STDOUT: %param.loc15_11: type = param runtime_param -// CHECK:STDOUT: %U.loc15_10.2: type = bind_symbolic_name U, 1, %param.loc15_11 [symbolic = %U.loc15_10.1 (constants.%U)] -// CHECK:STDOUT: %param.loc15_20: @Get.%.loc15_28.1 (%.5) = param runtime_param0 -// CHECK:STDOUT: %return: ref @Get.%.loc15_28.1 (%.5) = return_slot %param.loc15_20 +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc15_10.2: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc15_10.1 (constants.%U)] +// CHECK:STDOUT: %return.param: @Get.%.loc15_28.1 (%.5) = param runtime_param0 +// CHECK:STDOUT: %return: ref @Get.%.loc15_28.1 (%.5) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %GetNoDeduce.decl: @Class.%GetNoDeduce.type (%GetNoDeduce.type.1) = fn_decl @GetNoDeduce [symbolic = @Class.%GetNoDeduce (constants.%GetNoDeduce.1)] { // CHECK:STDOUT: %x.patt: @GetNoDeduce.%T (%T) = binding_pattern x @@ -190,12 +190,12 @@ fn CallGenericMethodWithNonDeducedParam(c: Class(A)) -> (A, B) { // CHECK:STDOUT: %U.ref.loc16_41: type = name_ref U, %U.loc16_24.2 [symbolic = %U.loc16_24.1 (constants.%U)] // CHECK:STDOUT: %.loc16_42.2: %.4 = tuple_literal (%T.ref.loc16_38, %U.ref.loc16_41) // CHECK:STDOUT: %.loc16_42.3: type = converted %.loc16_42.2, constants.%.5 [symbolic = %.loc16_42.1 (constants.%.5)] -// CHECK:STDOUT: %param.loc16_19: @GetNoDeduce.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @GetNoDeduce.%T (%T) = bind_name x, %param.loc16_19 -// CHECK:STDOUT: %param.loc16_25: type = param runtime_param -// CHECK:STDOUT: %U.loc16_24.2: type = bind_symbolic_name U, 1, %param.loc16_25 [symbolic = %U.loc16_24.1 (constants.%U)] -// CHECK:STDOUT: %param.loc16_34: @GetNoDeduce.%.loc16_42.1 (%.5) = param runtime_param1 -// CHECK:STDOUT: %return: ref @GetNoDeduce.%.loc16_42.1 (%.5) = return_slot %param.loc16_34 +// CHECK:STDOUT: %x.param: @GetNoDeduce.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @GetNoDeduce.%T (%T) = bind_name x, %x.param +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc16_24.2: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc16_24.1 (constants.%U)] +// CHECK:STDOUT: %return.param: @GetNoDeduce.%.loc16_42.1 (%.5) = param runtime_param1 +// CHECK:STDOUT: %return: ref @GetNoDeduce.%.loc16_42.1 (%.5) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = complete_type_witness %.1 [template = constants.%.2] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/redeclare.carbon b/toolchain/check/testdata/class/generic/redeclare.carbon index f69ab449bec18..c8332968fa884 100644 --- a/toolchain/check/testdata/class/generic/redeclare.carbon +++ b/toolchain/check/testdata/class/generic/redeclare.carbon @@ -123,15 +123,15 @@ class E(U:! type) {} // CHECK:STDOUT: %T.patt.loc6: type = symbolic_binding_pattern T, 0 [symbolic = constants.%T.patt.2] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc6, runtime_param [symbolic = constants.%T.patt.2] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc4: type = param runtime_param -// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %param.loc4 [symbolic = %T.loc4_15.2 (constants.%T)] +// CHECK:STDOUT: %T.param.loc4: type = param runtime_param +// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %T.param.loc4 [symbolic = %T.loc4_15.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %Generic.decl.loc6: %Generic.type = class_decl @Generic [template = constants.%Generic.1] { // CHECK:STDOUT: %T.patt.loc6: type = symbolic_binding_pattern T, 0 [symbolic = constants.%T.patt.2] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc6, runtime_param [symbolic = constants.%T.patt.2] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc6: type = param runtime_param -// CHECK:STDOUT: %T.loc6: type = bind_symbolic_name T, 0, %param.loc6 [symbolic = constants.%T] +// CHECK:STDOUT: %T.param.loc6: type = param runtime_param +// CHECK:STDOUT: %T.loc6: type = bind_symbolic_name T, 0, %T.param.loc6 [symbolic = constants.%T] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -192,8 +192,8 @@ class E(U:! type) {} // CHECK:STDOUT: %T.patt.loc12_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_9.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc12_9.1, runtime_param [symbolic = %T.patt.loc12_9.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc12_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc12_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -268,8 +268,8 @@ class E(U:! type) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_13.2: type = converted %int.make_type_32, %.loc4_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_9.1: i32 = bind_symbolic_name N, 0, %param [symbolic = %N.loc4_9.2 (constants.%N.1)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_9.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc4_9.2 (constants.%N.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.2] { // CHECK:STDOUT: %T.patt.loc12_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_9.2 (constants.%T.patt)] @@ -278,10 +278,10 @@ class E(U:! type) {} // CHECK:STDOUT: %N.param_patt: @.1.%T.loc12_9.2 (%T) = param_pattern %N.patt.loc12_19.1, runtime_param [symbolic = %N.patt.loc12_19.2 (constants.%N.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc12_9.1 [symbolic = %T.loc12_9.2 (constants.%T)] -// CHECK:STDOUT: %param.loc12_10: type = param runtime_param -// CHECK:STDOUT: %T.loc12_9.1: type = bind_symbolic_name T, 0, %param.loc12_10 [symbolic = %T.loc12_9.2 (constants.%T)] -// CHECK:STDOUT: %param.loc12_20: @.1.%T.loc12_9.2 (%T) = param runtime_param -// CHECK:STDOUT: %N.loc12_19.1: @.1.%T.loc12_9.2 (%T) = bind_symbolic_name N, 1, %param.loc12_20 [symbolic = %N.loc12_19.2 (constants.%N.2)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_9.2 (constants.%T)] +// CHECK:STDOUT: %N.param: @.1.%T.loc12_9.2 (%T) = param runtime_param +// CHECK:STDOUT: %N.loc12_19.1: @.1.%T.loc12_9.2 (%T) = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc12_19.2 (constants.%N.2)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -368,8 +368,8 @@ class E(U:! type) {} // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.2] { // CHECK:STDOUT: %T.patt.loc12_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_9.2 (constants.%T.patt.2)] @@ -380,10 +380,10 @@ class E(U:! type) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_23.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_23.2: type = converted %int.make_type_32, %.loc12_23.1 [template = i32] -// CHECK:STDOUT: %param.loc12_10: type = param runtime_param -// CHECK:STDOUT: %T.loc12_9.1: type = bind_symbolic_name T, 0, %param.loc12_10 [symbolic = %T.loc12_9.2 (constants.%T)] -// CHECK:STDOUT: %param.loc12_20: i32 = param runtime_param -// CHECK:STDOUT: %U.loc12_19.1: i32 = bind_symbolic_name U, 1, %param.loc12_20 [symbolic = %U.loc12_19.2 (constants.%U)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_9.2 (constants.%T)] +// CHECK:STDOUT: %U.param: i32 = param runtime_param +// CHECK:STDOUT: %U.loc12_19.1: i32 = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc12_19.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -469,8 +469,8 @@ class E(U:! type) {} // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.2] { // CHECK:STDOUT: %T.patt.loc12_9.1: i32 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_9.2 (constants.%T.patt.2)] @@ -479,8 +479,8 @@ class E(U:! type) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %T.loc12_9.1: i32 = bind_symbolic_name T, 0, %param [symbolic = %T.loc12_9.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: i32 = param runtime_param +// CHECK:STDOUT: %T.loc12_9.1: i32 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_9.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -558,15 +558,15 @@ class E(U:! type) {} // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.2] { // CHECK:STDOUT: %U.patt.loc11_9.1: type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc11_9.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc11_9.1, runtime_param [symbolic = %U.patt.loc11_9.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc11_9.1: type = bind_symbolic_name U, 0, %param [symbolic = %U.loc11_9.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc11_9.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc11_9.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/generic/self.carbon b/toolchain/check/testdata/class/generic/self.carbon index e3e3b8d541003..b873deb8093dc 100644 --- a/toolchain/check/testdata/class/generic/self.carbon +++ b/toolchain/check/testdata/class/generic/self.carbon @@ -65,8 +65,8 @@ class Class(T:! type) { // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -89,8 +89,8 @@ class Class(T:! type) { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc14_20: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc14_20 [symbolic = %Class (constants.%Class.2)] -// CHECK:STDOUT: %param: @MakeSelf.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %return: ref @MakeSelf.%Class (%Class.2) = return_slot %param +// CHECK:STDOUT: %return.param: @MakeSelf.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %return: ref @MakeSelf.%Class (%Class.2) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MakeClass.decl: @Class.%MakeClass.type (%MakeClass.type) = fn_decl @MakeClass [symbolic = @Class.%MakeClass (constants.%MakeClass)] { // CHECK:STDOUT: %return.patt: @MakeClass.%Class.loc15_26.1 (%Class.2) = return_slot_pattern @@ -99,8 +99,8 @@ class Class(T:! type) { // CHECK:STDOUT: %Class.ref: %Class.type = name_ref Class, file.%Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %T.ref: type = name_ref T, @Class.%T.loc11_13.1 [symbolic = %T (constants.%T)] // CHECK:STDOUT: %Class.loc15_26.2: type = class_type @Class, @Class(constants.%T) [symbolic = %Class.loc15_26.1 (constants.%Class.2)] -// CHECK:STDOUT: %param: @MakeClass.%Class.loc15_26.1 (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %return: ref @MakeClass.%Class.loc15_26.1 (%Class.2) = return_slot %param +// CHECK:STDOUT: %return.param: @MakeClass.%Class.loc15_26.1 (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %return: ref @MakeClass.%Class.loc15_26.1 (%Class.2) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: @Class.%F.type (%F.type) = fn_decl @F [symbolic = @Class.%F (constants.%F)] {} {} // CHECK:STDOUT: %.loc20: = complete_type_witness %.2 [template = constants.%.3] diff --git a/toolchain/check/testdata/class/generic_method.carbon b/toolchain/check/testdata/class/generic_method.carbon index 1e053a9b35eb8..2dfa90d2bf87d 100644 --- a/toolchain/check/testdata/class/generic_method.carbon +++ b/toolchain/check/testdata/class/generic_method.carbon @@ -56,8 +56,8 @@ fn Class(T:! type).F[self: Self](n: T) {} // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [symbolic = constants.%F] { // CHECK:STDOUT: %self.patt: %Class.2 = binding_pattern self @@ -65,15 +65,15 @@ fn Class(T:! type).F[self: Self](n: T) {} // CHECK:STDOUT: %n.patt: %T = binding_pattern n // CHECK:STDOUT: %n.param_patt: %T = param_pattern %n.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc16_11: type = param runtime_param -// CHECK:STDOUT: %T.loc16: type = bind_symbolic_name T, 0, %param.loc16_11 [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc16: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: %.loc16: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = constants.%Class.2] // CHECK:STDOUT: %Self.ref.loc16: type = name_ref Self, %.loc16 [symbolic = constants.%Class.2] // CHECK:STDOUT: %T.ref.loc16: type = name_ref T, %T.loc16 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc16_26: %Class.2 = param runtime_param0 -// CHECK:STDOUT: %self.loc16: %Class.2 = bind_name self, %param.loc16_26 -// CHECK:STDOUT: %param.loc16_35: %T = param runtime_param1 -// CHECK:STDOUT: %n.loc16: %T = bind_name n, %param.loc16_35 +// CHECK:STDOUT: %self.param.loc16: %Class.2 = param runtime_param0 +// CHECK:STDOUT: %self.loc16: %Class.2 = bind_name self, %self.param.loc16 +// CHECK:STDOUT: %n.param.loc16: %T = param runtime_param1 +// CHECK:STDOUT: %n.loc16: %T = bind_name n, %n.param.loc16 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -101,10 +101,10 @@ fn Class(T:! type).F[self: Self](n: T) {} // CHECK:STDOUT: %.loc13: type = specific_constant constants.%Class.2, @Class(constants.%T) [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %Self.ref.loc13: type = name_ref Self, %.loc13 [symbolic = %Class (constants.%Class.2)] // CHECK:STDOUT: %T.ref.loc13: type = name_ref T, @Class.%T.loc11_13.1 [symbolic = %T.loc13 (constants.%T)] -// CHECK:STDOUT: %param.loc13_12: @F.%Class (%Class.2) = param runtime_param0 -// CHECK:STDOUT: %self.loc13: @F.%Class (%Class.2) = bind_name self, %param.loc13_12 -// CHECK:STDOUT: %param.loc13_21: @F.%T.loc13 (%T) = param runtime_param1 -// CHECK:STDOUT: %n.loc13: @F.%T.loc13 (%T) = bind_name n, %param.loc13_21 +// CHECK:STDOUT: %self.param.loc13: @F.%Class (%Class.2) = param runtime_param0 +// CHECK:STDOUT: %self.loc13: @F.%Class (%Class.2) = bind_name self, %self.param.loc13 +// CHECK:STDOUT: %n.param.loc13: @F.%T.loc13 (%T) = param runtime_param1 +// CHECK:STDOUT: %n.loc13: @F.%T.loc13 (%T) = bind_name n, %n.param.loc13 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14_1.1: = complete_type_witness %.3 [symbolic = %.loc14_1.3 (constants.%.4)] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/import.carbon b/toolchain/check/testdata/class/import.carbon index 2dd35e1f2ba89..752a7718d8408 100644 --- a/toolchain/check/testdata/class/import.carbon +++ b/toolchain/check/testdata/class/import.carbon @@ -127,8 +127,8 @@ fn Run() { // CHECK:STDOUT: %self.param_patt: %ForwardDeclared = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%ForwardDeclared [template = constants.%ForwardDeclared] -// CHECK:STDOUT: %param: %ForwardDeclared = param runtime_param0 -// CHECK:STDOUT: %self: %ForwardDeclared = bind_name self, %param +// CHECK:STDOUT: %self.param: %ForwardDeclared = param runtime_param0 +// CHECK:STDOUT: %self: %ForwardDeclared = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt: %.7 = binding_pattern self @@ -137,8 +137,8 @@ fn Run() { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%ForwardDeclared [template = constants.%ForwardDeclared] // CHECK:STDOUT: %.loc15_23: type = ptr_type %ForwardDeclared [template = constants.%.7] -// CHECK:STDOUT: %param: %.7 = param runtime_param0 -// CHECK:STDOUT: %self: %.7 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %self: %.7 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16: = complete_type_witness %.1 [template = constants.%.2] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/import_base.carbon b/toolchain/check/testdata/class/import_base.carbon index 9e502778cc45d..0e9b291e2935c 100644 --- a/toolchain/check/testdata/class/import_base.carbon +++ b/toolchain/check/testdata/class/import_base.carbon @@ -89,16 +89,16 @@ fn Run() { // CHECK:STDOUT: %self.param_patt: %Base = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Base [template = constants.%Base] -// CHECK:STDOUT: %param: %Base = param runtime_param0 -// CHECK:STDOUT: %self: %Base = bind_name self, %param +// CHECK:STDOUT: %self.param: %Base = param runtime_param0 +// CHECK:STDOUT: %self: %Base = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %Unused.decl: %Unused.type = fn_decl @Unused [template = constants.%Unused] { // CHECK:STDOUT: %self.patt: %Base = binding_pattern self // CHECK:STDOUT: %self.param_patt: %Base = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Base [template = constants.%Base] -// CHECK:STDOUT: %param: %Base = param runtime_param0 -// CHECK:STDOUT: %self: %Base = bind_name self, %param +// CHECK:STDOUT: %self.param: %Base = param runtime_param0 +// CHECK:STDOUT: %self: %Base = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_10.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32] diff --git a/toolchain/check/testdata/class/inheritance_access.carbon b/toolchain/check/testdata/class/inheritance_access.carbon index eefa3dbedd90e..d55cfa7240322 100644 --- a/toolchain/check/testdata/class/inheritance_access.carbon +++ b/toolchain/check/testdata/class/inheritance_access.carbon @@ -311,10 +311,10 @@ class B { // CHECK:STDOUT: %.loc12_44.4: type = value_of_initializer %int.make_type_32.loc12_41 [template = i32] // CHECK:STDOUT: %.loc12_44.5: type = converted %int.make_type_32.loc12_41, %.loc12_44.4 [template = i32] // CHECK:STDOUT: %.loc12_44.6: type = converted %.loc12_44.1, constants.%.8 [template = constants.%.8] -// CHECK:STDOUT: %param.loc12_22: %Circle = param runtime_param0 -// CHECK:STDOUT: %self: %Circle = bind_name self, %param.loc12_22 -// CHECK:STDOUT: %param.loc12_32: %.8 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.8 = return_slot %param.loc12_32 +// CHECK:STDOUT: %self.param: %Circle = param runtime_param0 +// CHECK:STDOUT: %self: %Circle = bind_name self, %self.param +// CHECK:STDOUT: %return.param: %.8 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.8 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.9 [template = constants.%.10] // CHECK:STDOUT: @@ -429,8 +429,8 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_21.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc10_21.2: type = converted %int.make_type_32, %.loc10_21.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc11: = complete_type_witness %.6 [template = constants.%.7] // CHECK:STDOUT: @@ -453,10 +453,10 @@ class B { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [template = constants.%C] // CHECK:STDOUT: %.loc15_26.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc15_26.2: type = converted %.loc15_26.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc15_12: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc15_12 -// CHECK:STDOUT: %param.loc15_22: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc15_22 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16: = complete_type_witness %.11 [template = constants.%.12] // CHECK:STDOUT: @@ -547,8 +547,8 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_43.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc6_43.2: type = converted %int.make_type_32, %.loc6_43.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc9: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: @@ -568,8 +568,8 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_13.2: type = converted %int.make_type_32, %.loc14_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -578,8 +578,8 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc18_13.2: type = converted %int.make_type_32, %.loc18_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc21: = complete_type_witness %.7 [template = constants.%.8] // CHECK:STDOUT: @@ -688,10 +688,10 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_35.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_35.2: type = converted %int.make_type_32, %.loc11_35.1 [template = i32] -// CHECK:STDOUT: %param.loc11_22: %Square = param runtime_param0 -// CHECK:STDOUT: %self: %Square = bind_name self, %param.loc11_22 -// CHECK:STDOUT: %param.loc11_32: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_32 +// CHECK:STDOUT: %self.param: %Square = param runtime_param0 +// CHECK:STDOUT: %self: %Square = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc21: = complete_type_witness %.7 [template = constants.%.8] // CHECK:STDOUT: @@ -1082,8 +1082,8 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_13.2: type = converted %int.make_type_32, %.loc16_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %SomeFunc.decl: %SomeFunc.type = fn_decl @SomeFunc [template = constants.%SomeFunc] { // CHECK:STDOUT: %self.patt: %B = binding_pattern self @@ -1095,10 +1095,10 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc36_32.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc36_32.2: type = converted %int.make_type_32, %.loc36_32.1 [template = i32] -// CHECK:STDOUT: %param.loc36_19: %B = param runtime_param0 -// CHECK:STDOUT: %self: %B = bind_name self, %param.loc36_19 -// CHECK:STDOUT: %param.loc36_29: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc36_29 +// CHECK:STDOUT: %self.param: %B = param runtime_param0 +// CHECK:STDOUT: %self: %B = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc46: = complete_type_witness %.7 [template = constants.%.8] // CHECK:STDOUT: @@ -1197,8 +1197,8 @@ class B { // CHECK:STDOUT: %self.param_patt: %B = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%B [template = constants.%B] -// CHECK:STDOUT: %param: %B = param runtime_param0 -// CHECK:STDOUT: %self: %B = bind_name self, %param +// CHECK:STDOUT: %self.param: %B = param runtime_param0 +// CHECK:STDOUT: %self: %B = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = complete_type_witness %.7 [template = constants.%.8] // CHECK:STDOUT: @@ -1286,8 +1286,8 @@ class B { // CHECK:STDOUT: %self.param_patt: %B = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%B [template = constants.%B] -// CHECK:STDOUT: %param: %B = param runtime_param0 -// CHECK:STDOUT: %self: %B = bind_name self, %param +// CHECK:STDOUT: %self.param: %B = param runtime_param0 +// CHECK:STDOUT: %self: %B = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: = complete_type_witness %.7 [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/init.carbon b/toolchain/check/testdata/class/init.carbon index e85ba9002eaa2..cb538786c81df 100644 --- a/toolchain/check/testdata/class/init.carbon +++ b/toolchain/check/testdata/class/init.carbon @@ -79,12 +79,12 @@ fn MakeReorder(n: i32, next: Class*) -> Class { // CHECK:STDOUT: %Class.ref.loc16_23: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc16_28: type = ptr_type %Class [template = constants.%.3] // CHECK:STDOUT: %Class.ref.loc16_34: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param.loc16_10: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc16_10 -// CHECK:STDOUT: %param.loc16_21: %.3 = param runtime_param1 -// CHECK:STDOUT: %next: %.3 = bind_name next, %param.loc16_21 -// CHECK:STDOUT: %param.loc16_31: %Class = param runtime_param2 -// CHECK:STDOUT: %return: ref %Class = return_slot %param.loc16_31 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %next.param: %.3 = param runtime_param1 +// CHECK:STDOUT: %next: %.3 = bind_name next, %next.param +// CHECK:STDOUT: %return.param: %Class = param runtime_param2 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MakeReorder.decl: %MakeReorder.type = fn_decl @MakeReorder [template = constants.%MakeReorder] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -100,12 +100,12 @@ fn MakeReorder(n: i32, next: Class*) -> Class { // CHECK:STDOUT: %Class.ref.loc20_30: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc20_35: type = ptr_type %Class [template = constants.%.3] // CHECK:STDOUT: %Class.ref.loc20_41: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param.loc20_17: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc20_17 -// CHECK:STDOUT: %param.loc20_28: %.3 = param runtime_param1 -// CHECK:STDOUT: %next: %.3 = bind_name next, %param.loc20_28 -// CHECK:STDOUT: %param.loc20_38: %Class = param runtime_param2 -// CHECK:STDOUT: %return: ref %Class = return_slot %param.loc20_38 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %next.param: %.3 = param runtime_param1 +// CHECK:STDOUT: %next: %.3 = bind_name next, %next.param +// CHECK:STDOUT: %return.param: %Class = param runtime_param2 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/init_adapt.carbon b/toolchain/check/testdata/class/init_adapt.carbon index bd07d4fd0f319..2fbecbb69bb6d 100644 --- a/toolchain/check/testdata/class/init_adapt.carbon +++ b/toolchain/check/testdata/class/init_adapt.carbon @@ -152,16 +152,16 @@ var e: C = MakeAdaptC(); // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MakeAdaptC.decl: %MakeAdaptC.type = fn_decl @MakeAdaptC [template = constants.%MakeAdaptC] { // CHECK:STDOUT: %return.patt: %AdaptC = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %AdaptC = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %AdaptC.ref: type = name_ref AdaptC, file.%AdaptC.decl [template = constants.%AdaptC] -// CHECK:STDOUT: %param: %AdaptC = param runtime_param0 -// CHECK:STDOUT: %return: ref %AdaptC = return_slot %param +// CHECK:STDOUT: %return.param: %AdaptC = param runtime_param0 +// CHECK:STDOUT: %return: ref %AdaptC = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AdaptC.ref.loc23: type = name_ref AdaptC, %AdaptC.decl [template = constants.%AdaptC] // CHECK:STDOUT: %d.var: ref %AdaptC = var d @@ -335,16 +335,16 @@ var e: C = MakeAdaptC(); // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MakeAdaptC.decl: %MakeAdaptC.type = fn_decl @MakeAdaptC [template = constants.%MakeAdaptC] { // CHECK:STDOUT: %return.patt: %AdaptC = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %AdaptC = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %AdaptC.ref: type = name_ref AdaptC, file.%AdaptC.decl [template = constants.%AdaptC] -// CHECK:STDOUT: %param: %AdaptC = param runtime_param0 -// CHECK:STDOUT: %return: ref %AdaptC = return_slot %param +// CHECK:STDOUT: %return.param: %AdaptC = param runtime_param0 +// CHECK:STDOUT: %return: ref %AdaptC = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AdaptC.ref.loc46: type = name_ref AdaptC, %AdaptC.decl [template = constants.%AdaptC] // CHECK:STDOUT: %d.var: ref %AdaptC = var d diff --git a/toolchain/check/testdata/class/init_as.carbon b/toolchain/check/testdata/class/init_as.carbon index 6fac1aeb045df..de144e8a4ed95 100644 --- a/toolchain/check/testdata/class/init_as.carbon +++ b/toolchain/check/testdata/class/init_as.carbon @@ -65,8 +65,8 @@ fn F() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_11.2: type = converted %int.make_type_32, %.loc16_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/init_nested.carbon b/toolchain/check/testdata/class/init_nested.carbon index f3c3dda47959c..9f1a659a9f5b2 100644 --- a/toolchain/check/testdata/class/init_nested.carbon +++ b/toolchain/check/testdata/class/init_nested.carbon @@ -78,8 +78,8 @@ fn MakeOuter() -> Outer { // CHECK:STDOUT: %return.param_patt: %Inner = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Inner.ref: type = name_ref Inner, file.%Inner.decl [template = constants.%Inner] -// CHECK:STDOUT: %param: %Inner = param runtime_param0 -// CHECK:STDOUT: %return: ref %Inner = return_slot %param +// CHECK:STDOUT: %return.param: %Inner = param runtime_param0 +// CHECK:STDOUT: %return: ref %Inner = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Outer.decl: type = class_decl @Outer [template = constants.%Outer] {} {} // CHECK:STDOUT: %MakeOuter.decl: %MakeOuter.type = fn_decl @MakeOuter [template = constants.%MakeOuter] { @@ -87,8 +87,8 @@ fn MakeOuter() -> Outer { // CHECK:STDOUT: %return.param_patt: %Outer = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Outer.ref: type = name_ref Outer, file.%Outer.decl [template = constants.%Outer] -// CHECK:STDOUT: %param: %Outer = param runtime_param0 -// CHECK:STDOUT: %return: ref %Outer = return_slot %param +// CHECK:STDOUT: %return.param: %Outer = param runtime_param0 +// CHECK:STDOUT: %return: ref %Outer = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/method.carbon b/toolchain/check/testdata/class/method.carbon index e162593eb8402..c7ccf35579258 100644 --- a/toolchain/check/testdata/class/method.carbon +++ b/toolchain/check/testdata/class/method.carbon @@ -137,10 +137,10 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc20: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc20_29.1: type = value_of_initializer %int.make_type_32.loc20 [template = i32] // CHECK:STDOUT: %.loc20_29.2: type = converted %int.make_type_32.loc20, %.loc20_29.1 [template = i32] -// CHECK:STDOUT: %param.loc20_16: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc20: %Class = bind_name self, %param.loc20_16 -// CHECK:STDOUT: %param.loc20_26: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc20_26 +// CHECK:STDOUT: %self.param.loc20: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc20: %Class = bind_name self, %self.param.loc20 +// CHECK:STDOUT: %return.param.loc20: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc20 // CHECK:STDOUT: } // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [template = constants.%Call] { // CHECK:STDOUT: %c.patt: %Class = binding_pattern c @@ -152,10 +152,10 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc24_22.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc24_22.2: type = converted %int.make_type_32, %.loc24_22.1 [template = i32] -// CHECK:STDOUT: %param.loc24_10: %Class = param runtime_param0 -// CHECK:STDOUT: %c: %Class = bind_name c, %param.loc24_10 -// CHECK:STDOUT: %param.loc24_19: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc24_19 +// CHECK:STDOUT: %c.param: %Class = param runtime_param0 +// CHECK:STDOUT: %c: %Class = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallAlias.decl: %CallAlias.type = fn_decl @CallAlias [template = constants.%CallAlias] { // CHECK:STDOUT: %c.patt: %Class = binding_pattern c @@ -167,10 +167,10 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc30_27.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc30_27.2: type = converted %int.make_type_32, %.loc30_27.1 [template = i32] -// CHECK:STDOUT: %param.loc30_15: %Class = param runtime_param0 -// CHECK:STDOUT: %c: %Class = bind_name c, %param.loc30_15 -// CHECK:STDOUT: %param.loc30_24: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc30_24 +// CHECK:STDOUT: %c.param: %Class = param runtime_param0 +// CHECK:STDOUT: %c: %Class = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallOnConstBoundMethod.decl: %CallOnConstBoundMethod.type = fn_decl @CallOnConstBoundMethod [template = constants.%CallOnConstBoundMethod] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -179,8 +179,8 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc34_32.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc34_32.2: type = converted %int.make_type_32, %.loc34_32.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallWithAddr.decl: %CallWithAddr.type = fn_decl @CallWithAddr [template = constants.%CallWithAddr] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -189,8 +189,8 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc38_22.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc38_22.2: type = converted %int.make_type_32, %.loc38_22.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallFThroughPointer.decl: %CallFThroughPointer.type = fn_decl @CallFThroughPointer [template = constants.%CallFThroughPointer] { // CHECK:STDOUT: %p.patt: %.2 = binding_pattern p @@ -203,10 +203,10 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc43_38.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc43_38.2: type = converted %int.make_type_32, %.loc43_38.1 [template = i32] -// CHECK:STDOUT: %param.loc43_25: %.2 = param runtime_param0 -// CHECK:STDOUT: %p: %.2 = bind_name p, %param.loc43_25 -// CHECK:STDOUT: %param.loc43_35: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc43_35 +// CHECK:STDOUT: %p.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %p: %.2 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGThroughPointer.decl: %CallGThroughPointer.type = fn_decl @CallGThroughPointer [template = constants.%CallGThroughPointer] { // CHECK:STDOUT: %p.patt: %.2 = binding_pattern p @@ -219,18 +219,18 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc47_38.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc47_38.2: type = converted %int.make_type_32, %.loc47_38.1 [template = i32] -// CHECK:STDOUT: %param.loc47_25: %.2 = param runtime_param0 -// CHECK:STDOUT: %p: %.2 = bind_name p, %param.loc47_25 -// CHECK:STDOUT: %param.loc47_35: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc47_35 +// CHECK:STDOUT: %p.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %p: %.2 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Make.decl: %Make.type = fn_decl @Make [template = constants.%Make] { // CHECK:STDOUT: %return.patt: %Class = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %Class = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %return: ref %Class = return_slot %param +// CHECK:STDOUT: %return.param: %Class = param runtime_param0 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallFOnInitializingExpr.decl: %CallFOnInitializingExpr.type = fn_decl @CallFOnInitializingExpr [template = constants.%CallFOnInitializingExpr] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -239,8 +239,8 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc53_33.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc53_33.2: type = converted %int.make_type_32, %.loc53_33.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGOnInitializingExpr.decl: %CallGOnInitializingExpr.type = fn_decl @CallGOnInitializingExpr [template = constants.%CallGOnInitializingExpr] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -249,8 +249,8 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc57_33.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc57_33.2: type = converted %int.make_type_32, %.loc57_33.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -265,10 +265,10 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_25.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_25.2: type = converted %int.make_type_32.loc12, %.loc12_25.1 [template = i32] -// CHECK:STDOUT: %param.loc12_12: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc12: %Class = bind_name self, %param.loc12_12 -// CHECK:STDOUT: %param.loc12_22: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc12_22: ref i32 = return_slot %param.loc12_22 +// CHECK:STDOUT: %self.param.loc12: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc12: %Class = bind_name self, %self.param.loc12 +// CHECK:STDOUT: %return.param.loc12: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc12_22: ref i32 = return_slot %return.param.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt: %.2 = binding_pattern self @@ -282,10 +282,10 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_31.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_31.2: type = converted %int.make_type_32, %.loc13_31.1 [template = i32] -// CHECK:STDOUT: %param.loc13_17: %.2 = param runtime_param0 -// CHECK:STDOUT: %self: %.2 = bind_name self, %param.loc13_17 -// CHECK:STDOUT: %param.loc13_28: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_28 +// CHECK:STDOUT: %self.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %self: %.2 = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.ref: %F.type = name_ref F, %F.decl [template = constants.%F] // CHECK:STDOUT: %A: %F.type = bind_alias A, %F.decl [template = constants.%F] diff --git a/toolchain/check/testdata/class/nested.carbon b/toolchain/check/testdata/class/nested.carbon index c19706f39cf9f..aa1f4edc3fa19 100644 --- a/toolchain/check/testdata/class/nested.carbon +++ b/toolchain/check/testdata/class/nested.carbon @@ -104,8 +104,8 @@ fn F(a: Outer*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Outer.ref.loc41: type = name_ref Outer, file.%Outer.decl [template = constants.%Outer] // CHECK:STDOUT: %.loc41: type = ptr_type %Outer [template = constants.%.4] -// CHECK:STDOUT: %param: %.4 = param runtime_param0 -// CHECK:STDOUT: %a: %.4 = bind_name a, %param +// CHECK:STDOUT: %a.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %a: %.4 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/nested_name.carbon b/toolchain/check/testdata/class/nested_name.carbon index a182a08fb14fd..79cb2391389ce 100644 --- a/toolchain/check/testdata/class/nested_name.carbon +++ b/toolchain/check/testdata/class/nested_name.carbon @@ -78,18 +78,18 @@ fn G(o: Outer) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc17_26.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc17_26.2: type = converted %int.make_type_32, %.loc17_26.1 [template = i32] -// CHECK:STDOUT: %param.loc17_8: %Inner = param runtime_param0 -// CHECK:STDOUT: %oi: %Inner = bind_name oi, %param.loc17_8 -// CHECK:STDOUT: %param.loc17_23: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc17_23 +// CHECK:STDOUT: %oi.param: %Inner = param runtime_param0 +// CHECK:STDOUT: %oi: %Inner = bind_name oi, %oi.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %o.patt: %Outer = binding_pattern o // CHECK:STDOUT: %o.param_patt: %Outer = param_pattern %o.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Outer.ref: type = name_ref Outer, file.%Outer.decl [template = constants.%Outer] -// CHECK:STDOUT: %param: %Outer = param runtime_param0 -// CHECK:STDOUT: %o: %Outer = bind_name o, %param +// CHECK:STDOUT: %o.param: %Outer = param runtime_param0 +// CHECK:STDOUT: %o: %Outer = bind_name o, %o.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/no_prelude/generic_vs_params.carbon b/toolchain/check/testdata/class/no_prelude/generic_vs_params.carbon index 4a035dcbec145..264cc973db081 100644 --- a/toolchain/check/testdata/class/no_prelude/generic_vs_params.carbon +++ b/toolchain/check/testdata/class/no_prelude/generic_vs_params.carbon @@ -112,15 +112,15 @@ fn F(T:! type) { // CHECK:STDOUT: %T.patt.loc6_24.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc6_24.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc6_24.1, runtime_param [symbolic = %T.patt.loc6_24.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc6_24.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc6_24.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_24.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_24.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = class_decl @C [template = constants.%C.1] { // CHECK:STDOUT: %T.patt.loc8_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_9.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc8_9.1, runtime_param [symbolic = %T.patt.loc8_9.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %X.decl: type = class_decl @X [template = constants.%X] {} {} // CHECK:STDOUT: %NotGenericNoParams.ref: type = name_ref NotGenericNoParams, %NotGenericNoParams.decl [template = constants.%NotGenericNoParams] @@ -194,8 +194,8 @@ fn F(T:! type) { // CHECK:STDOUT: %U.patt.loc10_26.1: type = symbolic_binding_pattern U, 1 [symbolic = %U.patt.loc10_26.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc10_26.1, runtime_param [symbolic = %U.patt.loc10_26.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc10_26.1: type = bind_symbolic_name U, 1, %param [symbolic = %U.loc10_26.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc10_26.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc10_26.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc11: = complete_type_witness %.1 [template = constants.%.2] // CHECK:STDOUT: @@ -358,8 +358,8 @@ fn F(T:! type) { // CHECK:STDOUT: %T.patt.loc10_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc10_6.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc10_6.1, runtime_param [symbolic = %T.patt.loc10_6.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc10_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc10_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc10_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc10_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/no_prelude/import_access.carbon b/toolchain/check/testdata/class/no_prelude/import_access.carbon index 20106a448a1a6..22307034033d6 100644 --- a/toolchain/check/testdata/class/no_prelude/import_access.carbon +++ b/toolchain/check/testdata/class/no_prelude/import_access.carbon @@ -416,8 +416,8 @@ private class Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Forward.ref: type = name_ref Forward, imports.%import_ref [template = constants.%Forward] // CHECK:STDOUT: %.loc4: type = ptr_type %Forward [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %c: %.1 = bind_name c, %param +// CHECK:STDOUT: %c.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %c: %.1 = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: %Forward.decl: type = class_decl @Forward [template = constants.%Forward] {} {} // CHECK:STDOUT: } @@ -453,8 +453,8 @@ private class Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Forward.ref: = name_ref Forward, [template = ] // CHECK:STDOUT: %.loc10: type = ptr_type [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %c: = bind_name c, %param +// CHECK:STDOUT: %c.param: = param runtime_param0 +// CHECK:STDOUT: %c: = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -490,8 +490,8 @@ private class Redecl {} // CHECK:STDOUT: %Test.ref: = name_ref Test, imports.%Test [template = imports.%Test] // CHECK:STDOUT: %Forward.ref: = name_ref Forward, [template = ] // CHECK:STDOUT: %.loc9: type = ptr_type [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %c: = bind_name c, %param +// CHECK:STDOUT: %c.param: = param runtime_param0 +// CHECK:STDOUT: %c: = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/no_prelude/syntactic_merge.carbon b/toolchain/check/testdata/class/no_prelude/syntactic_merge.carbon index f50c0b3b0dc11..0896dff56c48a 100644 --- a/toolchain/check/testdata/class/no_prelude/syntactic_merge.carbon +++ b/toolchain/check/testdata/class/no_prelude/syntactic_merge.carbon @@ -214,32 +214,32 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc8, runtime_param [symbolic = constants.%a.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %param.loc7 [symbolic = %a.loc7_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %a.param.loc7 [symbolic = %a.loc7_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc8: %Foo.type = class_decl @Foo [template = constants.%Foo.1] { // CHECK:STDOUT: %a.patt.loc8: %C = symbolic_binding_pattern a, 0 [symbolic = constants.%a.patt.2] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc8, runtime_param [symbolic = constants.%a.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc8: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc8: %C = param runtime_param -// CHECK:STDOUT: %a.loc8: %C = bind_symbolic_name a, 0, %param.loc8 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc8: %C = param runtime_param +// CHECK:STDOUT: %a.loc8: %C = bind_symbolic_name a, 0, %a.param.loc8 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl.loc10: %Bar.type = class_decl @Bar [template = constants.%Bar.1] { // CHECK:STDOUT: %a.patt.loc11: %C = symbolic_binding_pattern a, 0 [symbolic = constants.%a.patt.4] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc11, runtime_param [symbolic = constants.%a.patt.4] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref.loc10: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc10: %C = param runtime_param -// CHECK:STDOUT: %a.loc10_11.1: %C = bind_symbolic_name a, 0, %param.loc10 [symbolic = %a.loc10_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc10: %C = param runtime_param +// CHECK:STDOUT: %a.loc10_11.1: %C = bind_symbolic_name a, 0, %a.param.loc10 [symbolic = %a.loc10_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl.loc11: %Bar.type = class_decl @Bar [template = constants.%Bar.1] { // CHECK:STDOUT: %a.patt.loc11: %C = symbolic_binding_pattern a, 0 [symbolic = constants.%a.patt.4] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc11, runtime_param [symbolic = constants.%a.patt.4] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref.loc11: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc11: %C = param runtime_param -// CHECK:STDOUT: %a.loc11: %C = bind_symbolic_name a, 0, %param.loc11 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc11: %C = param runtime_param +// CHECK:STDOUT: %a.loc11: %C = bind_symbolic_name a, 0, %a.param.loc11 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -314,16 +314,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7, runtime_param [symbolic = constants.%a.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_17.1: %C = bind_symbolic_name a, 0, %param.loc6 [symbolic = %a.loc6_17.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc6: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_17.1: %C = bind_symbolic_name a, 0, %a.param.loc6 [symbolic = %a.loc6_17.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = class_decl @Foo [template = constants.%Foo.1] { // CHECK:STDOUT: %a.patt.loc7: %C = symbolic_binding_pattern a, 0 [symbolic = constants.%a.patt.2] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7, runtime_param [symbolic = constants.%a.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param -// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %param.loc7 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param +// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %a.param.loc7 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -382,16 +382,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_11.1, runtime_param [symbolic = %a.patt.loc6_11.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc6_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc6_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc14_11.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc14_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc14_11.1, runtime_param [symbolic = %a.patt.loc14_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc14_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc14_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc14_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc14_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -459,16 +459,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7, runtime_param [symbolic = constants.%a.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_11.1: %C = bind_symbolic_name a, 0, %param.loc6 [symbolic = %a.loc6_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc6: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_11.1: %C = bind_symbolic_name a, 0, %a.param.loc6 [symbolic = %a.loc6_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = class_decl @Foo [template = constants.%Foo.1] { // CHECK:STDOUT: %a.patt.loc7: %C = symbolic_binding_pattern a, 0 [symbolic = constants.%a.patt.2] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7, runtime_param [symbolic = constants.%a.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param -// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %param.loc7 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param +// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %a.param.loc7 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -531,16 +531,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_11.1, runtime_param [symbolic = %a.patt.loc7_11.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl: %Bar.type = class_decl @Bar [template = constants.%Bar.1] { // CHECK:STDOUT: %a.patt.loc8_11.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc8_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc8_11.1, runtime_param [symbolic = %a.patt.loc8_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc8_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc8_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc8_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc8_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -616,16 +616,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc4, runtime_param [symbolic = constants.%a.patt.1] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.1 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc4: %C = bind_symbolic_name a, 0, %param [symbolic = constants.%a] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc4: %C = bind_symbolic_name a, 0, %a.param [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl: %Bar.type = class_decl @Bar [template = constants.%Bar.1] { // CHECK:STDOUT: %a.patt.loc5: %C = symbolic_binding_pattern a, 0 [symbolic = constants.%a.patt.3] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc5, runtime_param [symbolic = constants.%a.patt.3] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, imports.%import_ref.2 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc5: %C = bind_symbolic_name a, 0, %param [symbolic = constants.%a] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc5: %C = bind_symbolic_name a, 0, %a.param [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -705,16 +705,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_11.1, runtime_param [symbolic = %a.patt.loc7_11.2 (constants.%a.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %b.patt.loc15_11.1: %C = symbolic_binding_pattern b, 0 [symbolic = %b.patt.loc15_11.2 (constants.%b.patt)] // CHECK:STDOUT: %b.param_patt: %C = param_pattern %b.patt.loc15_11.1, runtime_param [symbolic = %b.patt.loc15_11.2 (constants.%b.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %b.loc15_11.1: %C = bind_symbolic_name b, 0, %param [symbolic = %b.loc15_11.2 (constants.%b)] +// CHECK:STDOUT: %b.param: %C = param runtime_param +// CHECK:STDOUT: %b.loc15_11.1: %C = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc15_11.2 (constants.%b)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -788,16 +788,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_11.1, runtime_param [symbolic = %a.patt.loc7_11.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc15_11.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc15_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc15_11.1, runtime_param [symbolic = %a.patt.loc15_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc15_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc15_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc15_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc15_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -871,16 +871,16 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_11.1, runtime_param [symbolic = %a.patt.loc7_11.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc15_11.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc15_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc15_11.1, runtime_param [symbolic = %a.patt.loc15_11.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc15_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc15_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc15_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc15_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -947,8 +947,8 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_11.1, runtime_param [symbolic = %a.patt.loc6_11.2 (constants.%a.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_11.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc6_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_11.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc6_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1007,8 +1007,8 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6, runtime_param [symbolic = constants.%a.patt.1] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc6: %C = bind_symbolic_name a, 0, %param [symbolic = constants.%a] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc6: %C = bind_symbolic_name a, 0, %a.param [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1067,8 +1067,8 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc6: type = const_type %C [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param -// CHECK:STDOUT: %a.loc6_11.1: %.3 = bind_symbolic_name a, 0, %param [symbolic = %a.loc6_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %.3 = param runtime_param +// CHECK:STDOUT: %a.loc6_11.1: %.3 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc6_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.5] { // CHECK:STDOUT: %a.patt.loc18_11.1: %.3 = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc18_11.2 (constants.%a.patt.2)] @@ -1077,8 +1077,8 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc18_22: type = const_type %C [template = constants.%.3] // CHECK:STDOUT: %.loc18_15: type = const_type %.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param -// CHECK:STDOUT: %a.loc18_11.1: %.3 = bind_symbolic_name a, 0, %param [symbolic = %a.loc18_11.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %.3 = param runtime_param +// CHECK:STDOUT: %a.loc18_11.1: %.3 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc18_11.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1149,8 +1149,8 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: } { // CHECK:STDOUT: %Base.ref: type = name_ref Base, file.%Base.decl [template = constants.%Base] // CHECK:STDOUT: %.loc16_26: type = ptr_type %Base [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %self: %.3 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %self: %.3 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1165,8 +1165,8 @@ fn Base.F[addr self: Base*]() { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Base [template = constants.%Base] // CHECK:STDOUT: %.loc7_23: type = ptr_type %Base [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %self: %.3 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %self: %.3 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8: = complete_type_witness %.4 [template = constants.%.5] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/raw_self.carbon b/toolchain/check/testdata/class/raw_self.carbon index eec88bfb98dcf..4d9a42d7889eb 100644 --- a/toolchain/check/testdata/class/raw_self.carbon +++ b/toolchain/check/testdata/class/raw_self.carbon @@ -77,10 +77,10 @@ fn Class.G[self: Self](r#self: i32) -> (i32, i32) { // CHECK:STDOUT: %int.make_type_32.loc17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc17_38.1: type = value_of_initializer %int.make_type_32.loc17 [template = i32] // CHECK:STDOUT: %.loc17_38.2: type = converted %int.make_type_32.loc17, %.loc17_38.1 [template = i32] -// CHECK:STDOUT: %param.loc17_21: %.1 = param runtime_param0 -// CHECK:STDOUT: %self.loc17_17: %.1 = bind_name self, %param.loc17_21 -// CHECK:STDOUT: %param.loc17_36: i32 = param runtime_param1 -// CHECK:STDOUT: %self.loc17_30: i32 = bind_name r#self, %param.loc17_36 +// CHECK:STDOUT: %self.param.loc17_21: %.1 = param runtime_param0 +// CHECK:STDOUT: %self.loc17_17: %.1 = bind_name self, %self.param.loc17_21 +// CHECK:STDOUT: %self.param.loc17_36: i32 = param runtime_param1 +// CHECK:STDOUT: %self.loc17_30: i32 = bind_name r#self, %self.param.loc17_36 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt.loc21_12: %Class = binding_pattern self @@ -102,12 +102,12 @@ fn Class.G[self: Self](r#self: i32) -> (i32, i32) { // CHECK:STDOUT: %.loc21_49.4: type = value_of_initializer %int.make_type_32.loc21_46 [template = i32] // CHECK:STDOUT: %.loc21_49.5: type = converted %int.make_type_32.loc21_46, %.loc21_49.4 [template = i32] // CHECK:STDOUT: %.loc21_49.6: type = converted %.loc21_49.1, constants.%.4 [template = constants.%.4] -// CHECK:STDOUT: %param.loc21_16: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc21_12: %Class = bind_name self, %param.loc21_16 -// CHECK:STDOUT: %param.loc21_30: i32 = param runtime_param1 -// CHECK:STDOUT: %self.loc21_24: i32 = bind_name r#self, %param.loc21_30 -// CHECK:STDOUT: %param.loc21_37: %.4 = param runtime_param2 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc21_37 +// CHECK:STDOUT: %self.param.loc21_16: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc21_12: %Class = bind_name self, %self.param.loc21_16 +// CHECK:STDOUT: %self.param.loc21_30: i32 = param runtime_param1 +// CHECK:STDOUT: %self.loc21_24: i32 = bind_name r#self, %self.param.loc21_30 +// CHECK:STDOUT: %return.param.loc21: %.4 = param runtime_param2 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param.loc21 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -124,10 +124,10 @@ fn Class.G[self: Self](r#self: i32) -> (i32, i32) { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_34.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_34.2: type = converted %int.make_type_32.loc12, %.loc12_34.1 [template = i32] -// CHECK:STDOUT: %param.loc12_17: %.1 = param runtime_param0 -// CHECK:STDOUT: %self.loc12_13: %.1 = bind_name self, %param.loc12_17 -// CHECK:STDOUT: %param.loc12_32: i32 = param runtime_param1 -// CHECK:STDOUT: %self.loc12_26: i32 = bind_name r#self, %param.loc12_32 +// CHECK:STDOUT: %self.param.loc12_17: %.1 = param runtime_param0 +// CHECK:STDOUT: %self.loc12_13: %.1 = bind_name self, %self.param.loc12_17 +// CHECK:STDOUT: %self.param.loc12_32: i32 = param runtime_param1 +// CHECK:STDOUT: %self.loc12_26: i32 = bind_name r#self, %self.param.loc12_32 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt.loc21_12: %Class = binding_pattern self @@ -149,12 +149,12 @@ fn Class.G[self: Self](r#self: i32) -> (i32, i32) { // CHECK:STDOUT: %.loc13_45.4: type = value_of_initializer %int.make_type_32.loc13_42 [template = i32] // CHECK:STDOUT: %.loc13_45.5: type = converted %int.make_type_32.loc13_42, %.loc13_45.4 [template = i32] // CHECK:STDOUT: %.loc13_45.6: type = converted %.loc13_45.1, constants.%.4 [template = constants.%.4] -// CHECK:STDOUT: %param.loc13_12: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc13_8: %Class = bind_name self, %param.loc13_12 -// CHECK:STDOUT: %param.loc13_26: i32 = param runtime_param1 -// CHECK:STDOUT: %self.loc13_20: i32 = bind_name r#self, %param.loc13_26 -// CHECK:STDOUT: %param.loc13_33: %.4 = param runtime_param2 -// CHECK:STDOUT: %.loc13_33: ref %.4 = return_slot %param.loc13_33 +// CHECK:STDOUT: %self.param.loc13_12: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc13_8: %Class = bind_name self, %self.param.loc13_12 +// CHECK:STDOUT: %self.param.loc13_26: i32 = param runtime_param1 +// CHECK:STDOUT: %self.loc13_20: i32 = bind_name r#self, %self.param.loc13_26 +// CHECK:STDOUT: %return.param.loc13: %.4 = param runtime_param2 +// CHECK:STDOUT: %.loc13_33: ref %.4 = return_slot %return.param.loc13 // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_10.1: type = value_of_initializer %int.make_type_32 [template = i32] diff --git a/toolchain/check/testdata/class/raw_self_type.carbon b/toolchain/check/testdata/class/raw_self_type.carbon index 1171909a52048..3a9c25ef9c517 100644 --- a/toolchain/check/testdata/class/raw_self_type.carbon +++ b/toolchain/check/testdata/class/raw_self_type.carbon @@ -70,10 +70,10 @@ fn MemberNamedSelf.F(x: Self, y: r#Self) {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc24_25: type = name_ref Self, constants.%MemberNamedSelf [template = constants.%MemberNamedSelf] // CHECK:STDOUT: %Self.ref.loc24_34: type = name_ref r#Self, @MemberNamedSelf.%Self.decl [template = constants.%Self] -// CHECK:STDOUT: %param.loc24_23: %MemberNamedSelf = param runtime_param0 -// CHECK:STDOUT: %x.loc24: %MemberNamedSelf = bind_name x, %param.loc24_23 -// CHECK:STDOUT: %param.loc24_32: %Self = param runtime_param1 -// CHECK:STDOUT: %y.loc24: %Self = bind_name y, %param.loc24_32 +// CHECK:STDOUT: %x.param.loc24: %MemberNamedSelf = param runtime_param0 +// CHECK:STDOUT: %x.loc24: %MemberNamedSelf = bind_name x, %x.param.loc24 +// CHECK:STDOUT: %y.param.loc24: %Self = param runtime_param1 +// CHECK:STDOUT: %y.loc24: %Self = bind_name y, %y.param.loc24 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -96,10 +96,10 @@ fn MemberNamedSelf.F(x: Self, y: r#Self) {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc21_11: type = name_ref Self, constants.%MemberNamedSelf [template = constants.%MemberNamedSelf] // CHECK:STDOUT: %Self.ref.loc21_20: type = name_ref r#Self, @MemberNamedSelf.%Self.decl [template = constants.%Self] -// CHECK:STDOUT: %param.loc21_9: %MemberNamedSelf = param runtime_param0 -// CHECK:STDOUT: %x.loc21: %MemberNamedSelf = bind_name x, %param.loc21_9 -// CHECK:STDOUT: %param.loc21_18: %Self = param runtime_param1 -// CHECK:STDOUT: %y.loc21: %Self = bind_name y, %param.loc21_18 +// CHECK:STDOUT: %x.param.loc21: %MemberNamedSelf = param runtime_param0 +// CHECK:STDOUT: %x.loc21: %MemberNamedSelf = bind_name x, %x.param.loc21 +// CHECK:STDOUT: %y.param.loc21: %Self = param runtime_param1 +// CHECK:STDOUT: %y.loc21: %Self = bind_name y, %y.param.loc21 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/redeclaration.carbon b/toolchain/check/testdata/class/redeclaration.carbon index 153ac39cdb7b9..03748468de9e2 100644 --- a/toolchain/check/testdata/class/redeclaration.carbon +++ b/toolchain/check/testdata/class/redeclaration.carbon @@ -63,10 +63,10 @@ fn Class.F[self: Self](b: bool) {} // CHECK:STDOUT: %bool.make_type.loc17: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_27.1: type = value_of_initializer %bool.make_type.loc17 [template = bool] // CHECK:STDOUT: %.loc17_27.2: type = converted %bool.make_type.loc17, %.loc17_27.1 [template = bool] -// CHECK:STDOUT: %param.loc17_16: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc17: %Class = bind_name self, %param.loc17_16 -// CHECK:STDOUT: %param.loc17_25: bool = param runtime_param1 -// CHECK:STDOUT: %b.loc17: bool = bind_name b, %param.loc17_25 +// CHECK:STDOUT: %self.param.loc17: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc17: %Class = bind_name self, %self.param.loc17 +// CHECK:STDOUT: %b.param.loc17: bool = param runtime_param1 +// CHECK:STDOUT: %b.loc17: bool = bind_name b, %b.param.loc17 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -81,10 +81,10 @@ fn Class.F[self: Self](b: bool) {} // CHECK:STDOUT: %bool.make_type.loc14: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_23.1: type = value_of_initializer %bool.make_type.loc14 [template = bool] // CHECK:STDOUT: %.loc14_23.2: type = converted %bool.make_type.loc14, %.loc14_23.1 [template = bool] -// CHECK:STDOUT: %param.loc14_12: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc14: %Class = bind_name self, %param.loc14_12 -// CHECK:STDOUT: %param.loc14_21: bool = param runtime_param1 -// CHECK:STDOUT: %b.loc14: bool = bind_name b, %param.loc14_21 +// CHECK:STDOUT: %self.param.loc14: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc14: %Class = bind_name self, %self.param.loc14 +// CHECK:STDOUT: %b.param.loc14: bool = param runtime_param1 +// CHECK:STDOUT: %b.loc14: bool = bind_name b, %b.param.loc14 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/reenter_scope.carbon b/toolchain/check/testdata/class/reenter_scope.carbon index ebf6a3d1fdd81..8364c446afaab 100644 --- a/toolchain/check/testdata/class/reenter_scope.carbon +++ b/toolchain/check/testdata/class/reenter_scope.carbon @@ -63,8 +63,8 @@ fn Class.F() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc16: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_17.1: type = value_of_initializer %int.make_type_32.loc16 [template = i32] // CHECK:STDOUT: %.loc16_17.2: type = converted %int.make_type_32.loc16, %.loc16_17.1 [template = i32] -// CHECK:STDOUT: %param.loc16: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc16 +// CHECK:STDOUT: %return.param.loc16: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc16 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -76,8 +76,8 @@ fn Class.F() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32.loc12, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param.loc12: i32 = param runtime_param0 -// CHECK:STDOUT: %.loc12_10: ref i32 = return_slot %param.loc12 +// CHECK:STDOUT: %return.param.loc12: i32 = param runtime_param0 +// CHECK:STDOUT: %.loc12_10: ref i32 = return_slot %return.param.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -86,8 +86,8 @@ fn Class.F() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_13.2: type = converted %int.make_type_32, %.loc13_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/reorder.carbon b/toolchain/check/testdata/class/reorder.carbon index 76bf77437050e..ee88ab3fc7898 100644 --- a/toolchain/check/testdata/class/reorder.carbon +++ b/toolchain/check/testdata/class/reorder.carbon @@ -67,8 +67,8 @@ class Class { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -77,8 +77,8 @@ class Class { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_13.2: type = converted %int.make_type_32, %.loc16_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/scope.carbon b/toolchain/check/testdata/class/scope.carbon index 6758e106e55ce..2f0aba1911ba5 100644 --- a/toolchain/check/testdata/class/scope.carbon +++ b/toolchain/check/testdata/class/scope.carbon @@ -80,8 +80,8 @@ fn Run() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc21_11.2: type = converted %int.make_type_32, %.loc21_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Run.decl: %Run.type = fn_decl @Run [template = constants.%Run] {} {} // CHECK:STDOUT: } @@ -94,8 +94,8 @@ fn Run() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -104,8 +104,8 @@ fn Run() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_13.2: type = converted %int.make_type_32, %.loc16_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/self.carbon b/toolchain/check/testdata/class/self.carbon index b490c7f5a4cdf..63efd720bc5df 100644 --- a/toolchain/check/testdata/class/self.carbon +++ b/toolchain/check/testdata/class/self.carbon @@ -98,10 +98,10 @@ class Class { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_29.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_29.2: type = converted %int.make_type_32.loc11, %.loc11_29.1 [template = i32] -// CHECK:STDOUT: %param.loc11_16: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc11: %Class = bind_name self, %param.loc11_16 -// CHECK:STDOUT: %param.loc11_26: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_26 +// CHECK:STDOUT: %self.param.loc11: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc11: %Class = bind_name self, %self.param.loc11 +// CHECK:STDOUT: %return.param.loc11: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc11 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt: %.2 = binding_pattern self @@ -115,10 +115,10 @@ class Class { // CHECK:STDOUT: %int.make_type_32.loc15: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_35.1: type = value_of_initializer %int.make_type_32.loc15 [template = i32] // CHECK:STDOUT: %.loc15_35.2: type = converted %int.make_type_32.loc15, %.loc15_35.1 [template = i32] -// CHECK:STDOUT: %param.loc15_21: %.2 = param runtime_param0 -// CHECK:STDOUT: %self.loc15: %.2 = bind_name self, %param.loc15_21 -// CHECK:STDOUT: %param.loc15_32: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc15_32 +// CHECK:STDOUT: %self.param.loc15: %.2 = param runtime_param0 +// CHECK:STDOUT: %self.loc15: %.2 = bind_name self, %self.param.loc15 +// CHECK:STDOUT: %return.param.loc15: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc15 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -133,10 +133,10 @@ class Class { // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_25.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_25.2: type = converted %int.make_type_32.loc5, %.loc5_25.1 [template = i32] -// CHECK:STDOUT: %param.loc5_12: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc5: %Class = bind_name self, %param.loc5_12 -// CHECK:STDOUT: %param.loc5_22: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc5_22: ref i32 = return_slot %param.loc5_22 +// CHECK:STDOUT: %self.param.loc5: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc5: %Class = bind_name self, %self.param.loc5 +// CHECK:STDOUT: %return.param.loc5: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc5_22: ref i32 = return_slot %return.param.loc5 // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %self.patt: %.2 = binding_pattern self @@ -150,10 +150,10 @@ class Class { // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_31.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_31.2: type = converted %int.make_type_32.loc6, %.loc6_31.1 [template = i32] -// CHECK:STDOUT: %param.loc6_17: %.2 = param runtime_param0 -// CHECK:STDOUT: %self.loc6: %.2 = bind_name self, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_28: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc6_28: ref i32 = return_slot %param.loc6_28 +// CHECK:STDOUT: %self.param.loc6: %.2 = param runtime_param0 +// CHECK:STDOUT: %self.loc6: %.2 = bind_name self, %self.param.loc6 +// CHECK:STDOUT: %return.param.loc6: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc6_28: ref i32 = return_slot %return.param.loc6 // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_10.1: type = value_of_initializer %int.make_type_32 [template = i32] @@ -279,10 +279,10 @@ class Class { // CHECK:STDOUT: %.loc18_25.1: %.4 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.5] // CHECK:STDOUT: %Convert.ref: %.4 = name_ref Convert, %.loc18_25.1 [template = constants.%.5] // CHECK:STDOUT: %.loc18_25.2: type = converted %self.ref, [template = ] -// CHECK:STDOUT: %param.loc18_12: %Class = param runtime_param0 -// CHECK:STDOUT: %self: %Class = bind_name self, %param.loc18_12 -// CHECK:STDOUT: %param.loc18_22: = param runtime_param1 -// CHECK:STDOUT: %return: ref = return_slot %param.loc18_22 +// CHECK:STDOUT: %self.param: %Class = param runtime_param0 +// CHECK:STDOUT: %self: %Class = bind_name self, %self.param +// CHECK:STDOUT: %return.param: = param runtime_param1 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = complete_type_witness %.7 [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/self_conversion.carbon b/toolchain/check/testdata/class/self_conversion.carbon index 1f14f5180f92c..92ae04335a8ac 100644 --- a/toolchain/check/testdata/class/self_conversion.carbon +++ b/toolchain/check/testdata/class/self_conversion.carbon @@ -95,10 +95,10 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc22_38.1: type = value_of_initializer %int.make_type_32.loc22 [template = i32] // CHECK:STDOUT: %.loc22_38.2: type = converted %int.make_type_32.loc22, %.loc22_38.1 [template = i32] -// CHECK:STDOUT: %param.loc22_25: %Base = param runtime_param0 -// CHECK:STDOUT: %self.loc22: %Base = bind_name self, %param.loc22_25 -// CHECK:STDOUT: %param.loc22_35: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc22_35 +// CHECK:STDOUT: %self.param.loc22: %Base = param runtime_param0 +// CHECK:STDOUT: %self.loc22: %Base = bind_name self, %self.param.loc22 +// CHECK:STDOUT: %return.param.loc22: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc22 // CHECK:STDOUT: } // CHECK:STDOUT: %AddrSelfBase.decl: %AddrSelfBase.type = fn_decl @AddrSelfBase [template = constants.%AddrSelfBase] { // CHECK:STDOUT: %self.patt: %.7 = binding_pattern self @@ -107,8 +107,8 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %Base.ref.loc26: type = name_ref Base, file.%Base.decl [template = constants.%Base] // CHECK:STDOUT: %.loc26_40: type = ptr_type %Base [template = constants.%.7] -// CHECK:STDOUT: %param.loc26: %.7 = param runtime_param0 -// CHECK:STDOUT: %self.loc26: %.7 = bind_name self, %param.loc26 +// CHECK:STDOUT: %self.param.loc26: %.7 = param runtime_param0 +// CHECK:STDOUT: %self.loc26: %.7 = bind_name self, %self.param.loc26 // CHECK:STDOUT: } // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [template = constants.%Call] { // CHECK:STDOUT: %p.patt: %.11 = binding_pattern p @@ -121,10 +121,10 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc30_25.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc30_25.2: type = converted %int.make_type_32, %.loc30_25.1 [template = i32] -// CHECK:STDOUT: %param.loc30_10: %.11 = param runtime_param0 -// CHECK:STDOUT: %p: %.11 = bind_name p, %param.loc30_10 -// CHECK:STDOUT: %param.loc30_22: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc30_22 +// CHECK:STDOUT: %p.param: %.11 = param runtime_param0 +// CHECK:STDOUT: %p: %.11 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -153,10 +153,10 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc18: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_32.1: type = value_of_initializer %int.make_type_32.loc18 [template = i32] // CHECK:STDOUT: %.loc18_32.2: type = converted %int.make_type_32.loc18, %.loc18_32.1 [template = i32] -// CHECK:STDOUT: %param.loc18_19: %Base = param runtime_param0 -// CHECK:STDOUT: %self.loc18: %Base = bind_name self, %param.loc18_19 -// CHECK:STDOUT: %param.loc18_29: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc18_29: ref i32 = return_slot %param.loc18_29 +// CHECK:STDOUT: %self.param.loc18: %Base = param runtime_param0 +// CHECK:STDOUT: %self.loc18: %Base = bind_name self, %self.param.loc18 +// CHECK:STDOUT: %return.param.loc18: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc18_29: ref i32 = return_slot %return.param.loc18 // CHECK:STDOUT: } // CHECK:STDOUT: %AddrSelfBase.decl: %AddrSelfBase.type = fn_decl @AddrSelfBase [template = constants.%AddrSelfBase] { // CHECK:STDOUT: %self.patt: %.7 = binding_pattern self @@ -165,8 +165,8 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %Base.ref.loc19: type = name_ref Base, file.%Base.decl [template = constants.%Base] // CHECK:STDOUT: %.loc19: type = ptr_type %Base [template = constants.%.7] -// CHECK:STDOUT: %param.loc19: %.7 = param runtime_param0 -// CHECK:STDOUT: %self.loc19: %.7 = bind_name self, %param.loc19 +// CHECK:STDOUT: %self.param.loc19: %.7 = param runtime_param0 +// CHECK:STDOUT: %self.loc19: %.7 = bind_name self, %self.param.loc19 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc20: = complete_type_witness %.8 [template = constants.%.9] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/self_type.carbon b/toolchain/check/testdata/class/self_type.carbon index b09bd87408364..7b7898db0fa3c 100644 --- a/toolchain/check/testdata/class/self_type.carbon +++ b/toolchain/check/testdata/class/self_type.carbon @@ -72,10 +72,10 @@ fn Class.F[self: Self]() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc21: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_29.1: type = value_of_initializer %int.make_type_32.loc21 [template = i32] // CHECK:STDOUT: %.loc21_29.2: type = converted %int.make_type_32.loc21, %.loc21_29.1 [template = i32] -// CHECK:STDOUT: %param.loc21_16: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc21: %Class = bind_name self, %param.loc21_16 -// CHECK:STDOUT: %param.loc21_26: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc21_26 +// CHECK:STDOUT: %self.param.loc21: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc21: %Class = bind_name self, %self.param.loc21 +// CHECK:STDOUT: %return.param.loc21: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc21 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -90,18 +90,18 @@ fn Class.F[self: Self]() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_25.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_25.2: type = converted %int.make_type_32.loc12, %.loc12_25.1 [template = i32] -// CHECK:STDOUT: %param.loc12_12: %Class = param runtime_param0 -// CHECK:STDOUT: %self.loc12: %Class = bind_name self, %param.loc12_12 -// CHECK:STDOUT: %param.loc12_22: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc12_22: ref i32 = return_slot %param.loc12_22 +// CHECK:STDOUT: %self.param.loc12: %Class = param runtime_param0 +// CHECK:STDOUT: %self.loc12: %Class = bind_name self, %self.param.loc12 +// CHECK:STDOUT: %return.param.loc12: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc12_22: ref i32 = return_slot %return.param.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: %Make.decl: %Make.type = fn_decl @Make [template = constants.%Make] { // CHECK:STDOUT: %return.patt: %Class = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %Class = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref.loc13: type = name_ref Self, constants.%Class [template = constants.%Class] -// CHECK:STDOUT: %param: %Class = param runtime_param0 -// CHECK:STDOUT: %return: ref %Class = return_slot %param +// CHECK:STDOUT: %return.param: %Class = param runtime_param0 +// CHECK:STDOUT: %return: ref %Class = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Class [template = constants.%Class] // CHECK:STDOUT: %.loc18_14: type = ptr_type %Class [template = constants.%.2] diff --git a/toolchain/check/testdata/class/static_method.carbon b/toolchain/check/testdata/class/static_method.carbon index 3f47d2bd900ee..bf4eaa346c257 100644 --- a/toolchain/check/testdata/class/static_method.carbon +++ b/toolchain/check/testdata/class/static_method.carbon @@ -63,8 +63,8 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_13.2: type = converted %int.make_type_32, %.loc15_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -76,8 +76,8 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_13.2: type = converted %int.make_type_32, %.loc12_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/syntactic_merge_literal.carbon b/toolchain/check/testdata/class/syntactic_merge_literal.carbon index 7f2873d7429a2..daf4b97456c64 100644 --- a/toolchain/check/testdata/class/syntactic_merge_literal.carbon +++ b/toolchain/check/testdata/class/syntactic_merge_literal.carbon @@ -80,8 +80,8 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc2_13.2: type = converted %int.make_type_32, %.loc2_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %a.loc2_9.1: i32 = bind_symbolic_name a, 0, %param [symbolic = %a.loc2_9.2 (constants.%a)] +// CHECK:STDOUT: %a.param: i32 = param runtime_param +// CHECK:STDOUT: %a.loc2_9.1: i32 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc2_9.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl.loc3: %D.type = class_decl @D [template = constants.%D.1] { // CHECK:STDOUT: %b.patt.loc4: %C.3 = symbolic_binding_pattern b, 0 [symbolic = constants.%b.patt.2] @@ -90,8 +90,8 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %C.ref.loc3: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] // CHECK:STDOUT: %.loc3: i32 = int_literal 1000 [template = constants.%.4] // CHECK:STDOUT: %C.loc3: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] -// CHECK:STDOUT: %param.loc3: %C.3 = param runtime_param -// CHECK:STDOUT: %b.loc3_9.1: %C.3 = bind_symbolic_name b, 0, %param.loc3 [symbolic = %b.loc3_9.2 (constants.%b)] +// CHECK:STDOUT: %b.param.loc3: %C.3 = param runtime_param +// CHECK:STDOUT: %b.loc3_9.1: %C.3 = bind_symbolic_name b, 0, %b.param.loc3 [symbolic = %b.loc3_9.2 (constants.%b)] // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl.loc4: %D.type = class_decl @D [template = constants.%D.1] { // CHECK:STDOUT: %b.patt.loc4: %C.3 = symbolic_binding_pattern b, 0 [symbolic = constants.%b.patt.2] @@ -100,8 +100,8 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %C.ref.loc4: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] // CHECK:STDOUT: %.loc4_15: i32 = int_literal 1000 [template = constants.%.4] // CHECK:STDOUT: %C.loc4: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] -// CHECK:STDOUT: %param.loc4: %C.3 = param runtime_param -// CHECK:STDOUT: %b.loc4: %C.3 = bind_symbolic_name b, 0, %param.loc4 [symbolic = constants.%b] +// CHECK:STDOUT: %b.param.loc4: %C.3 = param runtime_param +// CHECK:STDOUT: %b.loc4: %C.3 = bind_symbolic_name b, 0, %b.param.loc4 [symbolic = constants.%b] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -205,8 +205,8 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc2_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc2_13.2: type = converted %int.make_type_32, %.loc2_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %a.loc2_9.1: i32 = bind_symbolic_name a, 0, %param [symbolic = %a.loc2_9.2 (constants.%a)] +// CHECK:STDOUT: %a.param: i32 = param runtime_param +// CHECK:STDOUT: %a.loc2_9.1: i32 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc2_9.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = class_decl @D [template = constants.%D.1] { // CHECK:STDOUT: %b.patt.loc3_9.1: %C.3 = symbolic_binding_pattern b, 0 [symbolic = %b.patt.loc3_9.2 (constants.%b.patt.1)] @@ -215,8 +215,8 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] // CHECK:STDOUT: %.loc3: i32 = int_literal 1000 [template = constants.%.4] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] -// CHECK:STDOUT: %param: %C.3 = param runtime_param -// CHECK:STDOUT: %b.loc3_9.1: %C.3 = bind_symbolic_name b, 0, %param [symbolic = %b.loc3_9.2 (constants.%b)] +// CHECK:STDOUT: %b.param: %C.3 = param runtime_param +// CHECK:STDOUT: %b.loc3_9.1: %C.3 = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc3_9.2 (constants.%b)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = class_decl @.1 [template = constants.%.5] { // CHECK:STDOUT: %b.patt.loc10_9.1: %C.3 = symbolic_binding_pattern b, 0 [symbolic = %b.patt.loc10_9.2 (constants.%b.patt.2)] @@ -225,8 +225,8 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] // CHECK:STDOUT: %.loc10_15: i32 = int_literal 1000 [template = constants.%.4] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] -// CHECK:STDOUT: %param: %C.3 = param runtime_param -// CHECK:STDOUT: %b.loc10_9.1: %C.3 = bind_symbolic_name b, 0, %param [symbolic = %b.loc10_9.2 (constants.%b)] +// CHECK:STDOUT: %b.param: %C.3 = param runtime_param +// CHECK:STDOUT: %b.loc10_9.1: %C.3 = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc10_9.2 (constants.%b)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/const/basic.carbon b/toolchain/check/testdata/const/basic.carbon index edcdcc93afdaa..d8c91071f3069 100644 --- a/toolchain/check/testdata/const/basic.carbon +++ b/toolchain/check/testdata/const/basic.carbon @@ -73,10 +73,10 @@ fn B(p: const (i32*)) -> const (i32*) { // CHECK:STDOUT: %.loc11_25.3: type = const_type i32 [template = constants.%.2] // CHECK:STDOUT: %.loc11_34: type = ptr_type %.2 [template = constants.%.3] // CHECK:STDOUT: %.loc11_35: type = ptr_type %.3 [template = constants.%.4] -// CHECK:STDOUT: %param.loc11_7: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_22: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc11_22 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %p.patt: %.6 = binding_pattern p @@ -94,10 +94,10 @@ fn B(p: const (i32*)) -> const (i32*) { // CHECK:STDOUT: %.loc15_36.2: type = converted %int.make_type_32.loc15_33, %.loc15_36.1 [template = i32] // CHECK:STDOUT: %.loc15_36.3: type = ptr_type i32 [template = constants.%.5] // CHECK:STDOUT: %.loc15_26: type = const_type %.5 [template = constants.%.6] -// CHECK:STDOUT: %param.loc15_7: %.6 = param runtime_param0 -// CHECK:STDOUT: %p: %.6 = bind_name p, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_23: %.6 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.6 = return_slot %param.loc15_23 +// CHECK:STDOUT: %p.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %p: %.6 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.6 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.6 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/const/collapse.carbon b/toolchain/check/testdata/const/collapse.carbon index 63a7afd3ff058..f4693d82a7440 100644 --- a/toolchain/check/testdata/const/collapse.carbon +++ b/toolchain/check/testdata/const/collapse.carbon @@ -69,10 +69,10 @@ fn F(p: const i32**) -> const (const i32)** { // CHECK:STDOUT: %.loc15_25: type = const_type %.2 [template = constants.%.2] // CHECK:STDOUT: %.loc15_42: type = ptr_type %.2 [template = constants.%.3] // CHECK:STDOUT: %.loc15_43: type = ptr_type %.3 [template = constants.%.4] -// CHECK:STDOUT: %param.loc15_7: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_22: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc15_22 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/const/fail_collapse.carbon b/toolchain/check/testdata/const/fail_collapse.carbon index 9b9c2f733650b..78118fe9f7aa8 100644 --- a/toolchain/check/testdata/const/fail_collapse.carbon +++ b/toolchain/check/testdata/const/fail_collapse.carbon @@ -100,10 +100,10 @@ fn G(p: const (const i32)**) -> i32** { // CHECK:STDOUT: %.loc15_36.2: type = converted %int.make_type_32.loc15_33, %.loc15_36.1 [template = i32] // CHECK:STDOUT: %.loc15_36.3: type = ptr_type i32 [template = constants.%.5] // CHECK:STDOUT: %.loc15_37: type = ptr_type %.5 [template = constants.%.6] -// CHECK:STDOUT: %param.loc15_7: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_30: %.6 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.6 = return_slot %param.loc15_30 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.6 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.6 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/const/import.carbon b/toolchain/check/testdata/const/import.carbon index 8b999e9623488..27d0c3c2d294f 100644 --- a/toolchain/check/testdata/const/import.carbon +++ b/toolchain/check/testdata/const/import.carbon @@ -69,8 +69,8 @@ var a_ptr: const i32* = a_ptr_ref; // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32, %.loc4_11.1 [template = i32] // CHECK:STDOUT: %.loc4_11.3: type = const_type i32 [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_12.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] diff --git a/toolchain/check/testdata/deduce/array.carbon b/toolchain/check/testdata/deduce/array.carbon index 3108c7f692fa3..d7055b07fca82 100644 --- a/toolchain/check/testdata/deduce/array.carbon +++ b/toolchain/check/testdata/deduce/array.carbon @@ -159,20 +159,20 @@ fn G() -> C { // CHECK:STDOUT: %.loc6_23: i32 = int_literal 3 [template = constants.%.3] // CHECK:STDOUT: %.loc6_24.1: type = array_type %.loc6_23, %T [symbolic = %.loc6_24.2 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc6_30: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_17: @F.%.loc6_24.2 (%.4) = param runtime_param0 -// CHECK:STDOUT: %a: @F.%.loc6_24.2 (%.4) = bind_name a, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_27: @F.%T.loc6_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %param.loc6_27 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_6.2 (constants.%T)] +// CHECK:STDOUT: %a.param: @F.%.loc6_24.2 (%.4) = param runtime_param0 +// CHECK:STDOUT: %a: @F.%.loc6_24.2 (%.4) = bind_name a, %a.param +// CHECK:STDOUT: %return.param: @F.%T.loc6_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc8: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -318,20 +318,20 @@ fn G() -> C { // CHECK:STDOUT: %int.make_type_32.loc10_29: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_29.1: type = value_of_initializer %int.make_type_32.loc10_29 [template = i32] // CHECK:STDOUT: %.loc10_29.2: type = converted %int.make_type_32.loc10_29, %.loc10_29.1 [template = i32] -// CHECK:STDOUT: %param.loc10_7: i32 = param runtime_param -// CHECK:STDOUT: %N.loc10_6.1: i32 = bind_symbolic_name N, 0, %param.loc10_7 [symbolic = %N.loc10_6.2 (constants.%N)] -// CHECK:STDOUT: %param.loc10_16: = param runtime_param0 -// CHECK:STDOUT: %a: = bind_name a, %param.loc10_16 -// CHECK:STDOUT: %param.loc10_26: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc10_26 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc10_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc10_6.2 (constants.%N)] +// CHECK:STDOUT: %a.param: = param runtime_param0 +// CHECK:STDOUT: %a: = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc12: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -463,22 +463,22 @@ fn G() -> C { // CHECK:STDOUT: %N.ref: i32 = name_ref N, %N.loc10_16.1 [symbolic = %N.loc10_16.2 (constants.%N)] // CHECK:STDOUT: %.loc10_33: type = array_type %N.ref, %T [template = ] // CHECK:STDOUT: %T.ref.loc10_39: type = name_ref T, %T.loc10_6.1 [symbolic = %T.loc10_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc10_7: type = param runtime_param -// CHECK:STDOUT: %T.loc10_6.1: type = bind_symbolic_name T, 0, %param.loc10_7 [symbolic = %T.loc10_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc10_17: i32 = param runtime_param -// CHECK:STDOUT: %N.loc10_16.1: i32 = bind_symbolic_name N, 1, %param.loc10_17 [symbolic = %N.loc10_16.2 (constants.%N)] -// CHECK:STDOUT: %param.loc10_26: = param runtime_param0 -// CHECK:STDOUT: %a: = bind_name a, %param.loc10_26 -// CHECK:STDOUT: %param.loc10_36: @F.%T.loc10_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc10_6.2 (%T) = return_slot %param.loc10_36 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc10_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc10_6.2 (constants.%T)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc10_16.1: i32 = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc10_16.2 (constants.%N)] +// CHECK:STDOUT: %a.param: = param runtime_param0 +// CHECK:STDOUT: %a: = bind_name a, %a.param +// CHECK:STDOUT: %return.param: @F.%T.loc10_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc10_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc12: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -626,20 +626,20 @@ fn G() -> C { // CHECK:STDOUT: %.loc6_23: i32 = int_literal 2 [template = constants.%.3] // CHECK:STDOUT: %.loc6_24.1: type = array_type %.loc6_23, %T [symbolic = %.loc6_24.2 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc6_30: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_17: @F.%.loc6_24.2 (%.4) = param runtime_param0 -// CHECK:STDOUT: %a: @F.%.loc6_24.2 (%.4) = bind_name a, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_27: @F.%T.loc6_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %param.loc6_27 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_6.2 (constants.%T)] +// CHECK:STDOUT: %a.param: @F.%.loc6_24.2 (%.4) = param runtime_param0 +// CHECK:STDOUT: %a: @F.%.loc6_24.2 (%.4) = bind_name a, %a.param +// CHECK:STDOUT: %return.param: @F.%T.loc6_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc8: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -853,20 +853,20 @@ fn G() -> C { // CHECK:STDOUT: %int.make_type_32.loc10_29: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_29.1: type = value_of_initializer %int.make_type_32.loc10_29 [template = i32] // CHECK:STDOUT: %.loc10_29.2: type = converted %int.make_type_32.loc10_29, %.loc10_29.1 [template = i32] -// CHECK:STDOUT: %param.loc10_7: i32 = param runtime_param -// CHECK:STDOUT: %N.loc10_6.1: i32 = bind_symbolic_name N, 0, %param.loc10_7 [symbolic = %N.loc10_6.2 (constants.%N)] -// CHECK:STDOUT: %param.loc10_16: = param runtime_param0 -// CHECK:STDOUT: %a: = bind_name a, %param.loc10_16 -// CHECK:STDOUT: %param.loc10_26: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc10_26 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc10_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc10_6.2 (constants.%N)] +// CHECK:STDOUT: %a.param: = param runtime_param0 +// CHECK:STDOUT: %a: = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/deduce/generic_type.carbon b/toolchain/check/testdata/deduce/generic_type.carbon index 7d1d150b51c53..bcbb3c89c5182 100644 --- a/toolchain/check/testdata/deduce/generic_type.carbon +++ b/toolchain/check/testdata/deduce/generic_type.carbon @@ -114,8 +114,8 @@ fn G() -> i32 { // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: type = class_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { @@ -130,12 +130,12 @@ fn G() -> i32 { // CHECK:STDOUT: %T.ref.loc7_21: type = name_ref T, %T.loc7_6.1 [symbolic = %T.loc7_6.2 (constants.%T)] // CHECK:STDOUT: %C.loc7_20.1: type = class_type @C, @C(constants.%T) [symbolic = %C.loc7_20.2 (constants.%C.2)] // CHECK:STDOUT: %T.ref.loc7_28: type = name_ref T, %T.loc7_6.1 [symbolic = %T.loc7_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc7_7: type = param runtime_param -// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %param.loc7_7 [symbolic = %T.loc7_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc7_17: @F.%C.loc7_20.2 (%C.2) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%C.loc7_20.2 (%C.2) = bind_name p, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: @F.%T.loc7_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc7_6.2 (%T) = return_slot %param.loc7_25 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc7_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%C.loc7_20.2 (%C.2) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%C.loc7_20.2 (%C.2) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%T.loc7_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc7_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %C.3 = binding_pattern p @@ -147,10 +147,10 @@ fn G() -> i32 { // CHECK:STDOUT: %D.ref.loc9_11: type = name_ref D, file.%D.decl [template = constants.%D] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%D) [template = constants.%C.3] // CHECK:STDOUT: %D.ref.loc9_18: type = name_ref D, file.%D.decl [template = constants.%D] -// CHECK:STDOUT: %param.loc9_7: %C.3 = param runtime_param0 -// CHECK:STDOUT: %p: %C.3 = bind_name p, %param.loc9_7 -// CHECK:STDOUT: %param.loc9_15: %D = param runtime_param1 -// CHECK:STDOUT: %return: ref %D = return_slot %param.loc9_15 +// CHECK:STDOUT: %p.param: %C.3 = param runtime_param0 +// CHECK:STDOUT: %p: %C.3 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %D = param runtime_param1 +// CHECK:STDOUT: %return: ref %D = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -297,8 +297,8 @@ fn G() -> i32 { // CHECK:STDOUT: %T.patt.loc4_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_9.1, runtime_param [symbolic = %T.patt.loc4_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { @@ -313,12 +313,12 @@ fn G() -> i32 { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc7_6.1 [symbolic = %T.loc7_6.2 (constants.%T)] // CHECK:STDOUT: %I.loc7_20.1: type = class_type @I, @I(constants.%T) [symbolic = %I.loc7_20.2 (constants.%I.2)] // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7_7: type = param runtime_param -// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %param.loc7_7 [symbolic = %T.loc7_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc7_17: @F.%I.loc7_20.2 (%I.2) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%I.loc7_20.2 (%I.2) = bind_name p, %param.loc7_17 -// CHECK:STDOUT: %param.loc7_25: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc7_25 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc7_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%I.loc7_20.2 (%I.2) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%I.loc7_20.2 (%I.2) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %I.3 = binding_pattern p @@ -330,10 +330,10 @@ fn G() -> i32 { // CHECK:STDOUT: %C.ref.loc9_11: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %I: type = class_type @I, @I(constants.%C) [template = constants.%I.3] // CHECK:STDOUT: %C.ref.loc9_18: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc9_7: %I.3 = param runtime_param0 -// CHECK:STDOUT: %p: %I.3 = bind_name p, %param.loc9_7 -// CHECK:STDOUT: %param.loc9_15: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc9_15 +// CHECK:STDOUT: %p.param: %I.3 = param runtime_param0 +// CHECK:STDOUT: %p: %I.3 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -496,8 +496,8 @@ fn G() -> i32 { // CHECK:STDOUT: %T.patt.loc4_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_13.1, runtime_param [symbolic = %T.patt.loc4_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %D.decl: type = class_decl @D [template = constants.%D] {} {} @@ -522,14 +522,14 @@ fn G() -> i32 { // CHECK:STDOUT: %U.ref.loc13_55: type = name_ref U, %U.loc13_16.1 [symbolic = %U.loc13_16.2 (constants.%U)] // CHECK:STDOUT: %.loc13_56.1: %.5 = tuple_literal (%T.ref.loc13_52, %U.ref.loc13_55) // CHECK:STDOUT: %.loc13_56.2: type = converted %.loc13_56.1, constants.%.6 [symbolic = %.loc13_56.3 (constants.%.6)] -// CHECK:STDOUT: %param.loc13_7: type = param runtime_param -// CHECK:STDOUT: %T.loc13_6.1: type = bind_symbolic_name T, 0, %param.loc13_7 [symbolic = %T.loc13_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc13_17: type = param runtime_param -// CHECK:STDOUT: %U.loc13_16.1: type = bind_symbolic_name U, 1, %param.loc13_17 [symbolic = %U.loc13_16.2 (constants.%U)] -// CHECK:STDOUT: %param.loc13_27: @F.%Inner.loc13_43.2 (%Inner.2) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%Inner.loc13_43.2 (%Inner.2) = bind_name p, %param.loc13_27 -// CHECK:STDOUT: %param.loc13_48: @F.%.loc13_56.3 (%.6) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%.loc13_56.3 (%.6) = return_slot %param.loc13_48 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc13_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc13_6.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc13_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc13_16.2 (constants.%U)] +// CHECK:STDOUT: %p.param: @F.%Inner.loc13_43.2 (%Inner.2) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%Inner.loc13_43.2 (%Inner.2) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%.loc13_56.3 (%.6) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%.loc13_56.3 (%.6) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %Inner.4 = binding_pattern p @@ -548,10 +548,10 @@ fn G() -> i32 { // CHECK:STDOUT: %D.ref.loc15_35: type = name_ref D, file.%D.decl [template = constants.%D] // CHECK:STDOUT: %.loc15_36.1: %.5 = tuple_literal (%C.ref.loc15_32, %D.ref.loc15_35) // CHECK:STDOUT: %.loc15_36.2: type = converted %.loc15_36.1, constants.%.9 [template = constants.%.9] -// CHECK:STDOUT: %param.loc15_7: %Inner.4 = param runtime_param0 -// CHECK:STDOUT: %p: %Inner.4 = bind_name p, %param.loc15_7 -// CHECK:STDOUT: %param.loc15_28: %.9 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.9 = return_slot %param.loc15_28 +// CHECK:STDOUT: %p.param: %Inner.4 = param runtime_param0 +// CHECK:STDOUT: %p: %Inner.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.9 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.9 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -568,8 +568,8 @@ fn G() -> i32 { // CHECK:STDOUT: %U.patt.loc5_15.1: type = symbolic_binding_pattern U, 1 [symbolic = %U.patt.loc5_15.2 (constants.%U.patt.1)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc5_15.1, runtime_param [symbolic = %U.patt.loc5_15.2 (constants.%U.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc5_15.1: type = bind_symbolic_name U, 1, %param [symbolic = %U.loc5_15.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc5_15.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc5_15.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -797,8 +797,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_23.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_23.2: type = converted %int.make_type_32, %.loc4_23.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_19.1: i32 = bind_symbolic_name N, 0, %param [symbolic = %N.loc4_19.2 (constants.%N)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_19.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc4_19.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %N.patt.loc6_6.1: i32 = symbolic_binding_pattern N, 0 [symbolic = %N.patt.loc6_6.2 (constants.%N.patt.2)] @@ -817,12 +817,12 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc6_37: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_37.1: type = value_of_initializer %int.make_type_32.loc6_37 [template = i32] // CHECK:STDOUT: %.loc6_37.2: type = converted %int.make_type_32.loc6_37, %.loc6_37.1 [template = i32] -// CHECK:STDOUT: %param.loc6_7: i32 = param runtime_param -// CHECK:STDOUT: %N.loc6_6.1: i32 = bind_symbolic_name N, 0, %param.loc6_7 [symbolic = %N.loc6_6.2 (constants.%N)] -// CHECK:STDOUT: %param.loc6_16: @F.%WithNontype.loc6_29.2 (%WithNontype.2) = param runtime_param0 -// CHECK:STDOUT: %x: @F.%WithNontype.loc6_29.2 (%WithNontype.2) = bind_name x, %param.loc6_16 -// CHECK:STDOUT: %param.loc6_34: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_34 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc6_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc6_6.2 (constants.%N)] +// CHECK:STDOUT: %x.param: @F.%WithNontype.loc6_29.2 (%WithNontype.2) = param runtime_param0 +// CHECK:STDOUT: %x: @F.%WithNontype.loc6_29.2 (%WithNontype.2) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -831,8 +831,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_11.2: type = converted %int.make_type_32, %.loc8_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/deduce/int_float.carbon b/toolchain/check/testdata/deduce/int_float.carbon index f1e2a9633da37..a66b3bfbf25b3 100644 --- a/toolchain/check/testdata/deduce/int_float.carbon +++ b/toolchain/check/testdata/deduce/int_float.carbon @@ -100,12 +100,12 @@ fn G(a: f64) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc4_34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_34.1: type = value_of_initializer %int.make_type_32.loc4_34 [template = i32] // CHECK:STDOUT: %.loc4_34.2: type = converted %int.make_type_32.loc4_34, %.loc4_34.1 [template = i32] -// CHECK:STDOUT: %param.loc4_7: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_6.1: i32 = bind_symbolic_name N, 0, %param.loc4_7 [symbolic = %N.loc4_6.2 (constants.%N)] -// CHECK:STDOUT: %param.loc4_16: @F.%.loc4_26 (%.2) = param runtime_param0 -// CHECK:STDOUT: %n: @F.%.loc4_26 (%.2) = bind_name n, %param.loc4_16 -// CHECK:STDOUT: %param.loc4_31: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc4_31 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc4_6.2 (constants.%N)] +// CHECK:STDOUT: %n.param: @F.%.loc4_26 (%.2) = param runtime_param0 +// CHECK:STDOUT: %n: @F.%.loc4_26 (%.2) = bind_name n, %n.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %a.patt: %.4 = binding_pattern a @@ -120,10 +120,10 @@ fn G(a: f64) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_17.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_17.2: type = converted %int.make_type_32, %.loc8_17.1 [template = i32] -// CHECK:STDOUT: %param.loc8_7: %.4 = param runtime_param0 -// CHECK:STDOUT: %a: %.4 = bind_name a, %param.loc8_7 -// CHECK:STDOUT: %param.loc8_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc8_14 +// CHECK:STDOUT: %a.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %a: %.4 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -231,12 +231,12 @@ fn G(a: f64) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc8_36: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_36.1: type = value_of_initializer %int.make_type_32.loc8_36 [template = i32] // CHECK:STDOUT: %.loc8_36.2: type = converted %int.make_type_32.loc8_36, %.loc8_36.1 [template = i32] -// CHECK:STDOUT: %param.loc8_7: i32 = param runtime_param -// CHECK:STDOUT: %N.loc8_6.1: i32 = bind_symbolic_name N, 0, %param.loc8_7 [symbolic = %N.loc8_6.2 (constants.%N)] -// CHECK:STDOUT: %param.loc8_16: = param runtime_param0 -// CHECK:STDOUT: %n: = bind_name n, %param.loc8_16 -// CHECK:STDOUT: %param.loc8_33: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc8_33 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc8_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc8_6.2 (constants.%N)] +// CHECK:STDOUT: %n.param: = param runtime_param0 +// CHECK:STDOUT: %n: = bind_name n, %n.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %a.patt: f64 = binding_pattern a @@ -251,10 +251,10 @@ fn G(a: f64) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_17.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_17.2: type = converted %int.make_type_32, %.loc12_17.1 [template = i32] -// CHECK:STDOUT: %param.loc12_7: f64 = param runtime_param0 -// CHECK:STDOUT: %a: f64 = bind_name a, %param.loc12_7 -// CHECK:STDOUT: %param.loc12_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc12_14 +// CHECK:STDOUT: %a.param: f64 = param runtime_param0 +// CHECK:STDOUT: %a: f64 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/deduce/tuple.carbon b/toolchain/check/testdata/deduce/tuple.carbon index 781ac38f6e5af..737a7f2497b35 100644 --- a/toolchain/check/testdata/deduce/tuple.carbon +++ b/toolchain/check/testdata/deduce/tuple.carbon @@ -118,14 +118,14 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %.loc7_37.1: %.3 = tuple_literal (%T.ref, %U.ref.loc7_36) // CHECK:STDOUT: %.loc7_37.2: type = converted %.loc7_37.1, constants.%.4 [symbolic = %.loc7_37.3 (constants.%.4)] // CHECK:STDOUT: %U.ref.loc7_43: type = name_ref U, %U.loc7_16.1 [symbolic = %U.loc7_16.2 (constants.%U)] -// CHECK:STDOUT: %param.loc7_7: type = param runtime_param -// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %param.loc7_7 [symbolic = %T.loc7_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc7_17: type = param runtime_param -// CHECK:STDOUT: %U.loc7_16.1: type = bind_symbolic_name U, 1, %param.loc7_17 [symbolic = %U.loc7_16.2 (constants.%U)] -// CHECK:STDOUT: %param.loc7_30: @F.%.loc7_37.3 (%.4) = param runtime_param0 -// CHECK:STDOUT: %pair: @F.%.loc7_37.3 (%.4) = bind_name pair, %param.loc7_30 -// CHECK:STDOUT: %param.loc7_40: @F.%U.loc7_16.2 (%U) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%U.loc7_16.2 (%U) = return_slot %param.loc7_40 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc7_6.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc7_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc7_16.2 (constants.%U)] +// CHECK:STDOUT: %pair.param: @F.%.loc7_37.3 (%.4) = param runtime_param0 +// CHECK:STDOUT: %pair: @F.%.loc7_37.3 (%.4) = bind_name pair, %pair.param +// CHECK:STDOUT: %return.param: @F.%U.loc7_16.2 (%U) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%U.loc7_16.2 (%U) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %pair.patt: %.8 = binding_pattern pair @@ -138,10 +138,10 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %.loc9_17.1: %.3 = tuple_literal (%C.ref, %D.ref.loc9_16) // CHECK:STDOUT: %.loc9_17.2: type = converted %.loc9_17.1, constants.%.8 [template = constants.%.8] // CHECK:STDOUT: %D.ref.loc9_23: type = name_ref D, file.%D.decl [template = constants.%D] -// CHECK:STDOUT: %param.loc9_10: %.8 = param runtime_param0 -// CHECK:STDOUT: %pair: %.8 = bind_name pair, %param.loc9_10 -// CHECK:STDOUT: %param.loc9_20: %D = param runtime_param1 -// CHECK:STDOUT: %return: ref %D = return_slot %param.loc9_20 +// CHECK:STDOUT: %pair.param: %.8 = param runtime_param0 +// CHECK:STDOUT: %pair: %.8 = bind_name pair, %pair.param +// CHECK:STDOUT: %return.param: %D = param runtime_param1 +// CHECK:STDOUT: %return: ref %D = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -290,8 +290,8 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %.loc4_31.4: type = value_of_initializer %int.make_type_32.loc4_28 [template = i32] // CHECK:STDOUT: %.loc4_31.5: type = converted %int.make_type_32.loc4_28, %.loc4_31.4 [template = i32] // CHECK:STDOUT: %.loc4_31.6: type = converted %.loc4_31.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param -// CHECK:STDOUT: %Pair.loc4_15.1: %.3 = bind_symbolic_name Pair, 0, %param [symbolic = %Pair.loc4_15.2 (constants.%Pair)] +// CHECK:STDOUT: %Pair.param: %.3 = param runtime_param +// CHECK:STDOUT: %Pair.loc4_15.1: %.3 = bind_symbolic_name Pair, 0, %Pair.param [symbolic = %Pair.loc4_15.2 (constants.%Pair)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %A.patt.loc6_6.1: i32 = symbolic_binding_pattern A, 0 [symbolic = %A.patt.loc6_6.2 (constants.%A.patt)] @@ -319,14 +319,14 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %int.make_type_32.loc6_47: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_47.1: type = value_of_initializer %int.make_type_32.loc6_47 [template = i32] // CHECK:STDOUT: %.loc6_47.2: type = converted %int.make_type_32.loc6_47, %.loc6_47.1 [template = i32] -// CHECK:STDOUT: %param.loc6_7: i32 = param runtime_param -// CHECK:STDOUT: %A.loc6_6.1: i32 = bind_symbolic_name A, 0, %param.loc6_7 [symbolic = %A.loc6_6.2 (constants.%A)] -// CHECK:STDOUT: %param.loc6_16: i32 = param runtime_param -// CHECK:STDOUT: %B.loc6_15.1: i32 = bind_symbolic_name B, 1, %param.loc6_16 [symbolic = %B.loc6_15.2 (constants.%B)] -// CHECK:STDOUT: %param.loc6_25: @F.%HasPair.loc6_34.2 (%HasPair.3) = param runtime_param0 -// CHECK:STDOUT: %h: @F.%HasPair.loc6_34.2 (%HasPair.3) = bind_name h, %param.loc6_25 -// CHECK:STDOUT: %param.loc6_44: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc6_44 +// CHECK:STDOUT: %A.param: i32 = param runtime_param +// CHECK:STDOUT: %A.loc6_6.1: i32 = bind_symbolic_name A, 0, %A.param [symbolic = %A.loc6_6.2 (constants.%A)] +// CHECK:STDOUT: %B.param: i32 = param runtime_param +// CHECK:STDOUT: %B.loc6_15.1: i32 = bind_symbolic_name B, 1, %B.param [symbolic = %B.loc6_15.2 (constants.%B)] +// CHECK:STDOUT: %h.param: @F.%HasPair.loc6_34.2 (%HasPair.3) = param runtime_param0 +// CHECK:STDOUT: %h: @F.%HasPair.loc6_34.2 (%HasPair.3) = bind_name h, %h.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %h.patt: %HasPair.4 = binding_pattern h @@ -344,10 +344,10 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_29.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_29.2: type = converted %int.make_type_32, %.loc8_29.1 [template = i32] -// CHECK:STDOUT: %param.loc8_7: %HasPair.4 = param runtime_param0 -// CHECK:STDOUT: %h: %HasPair.4 = bind_name h, %param.loc8_7 -// CHECK:STDOUT: %param.loc8_26: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc8_26 +// CHECK:STDOUT: %h.param: %HasPair.4 = param runtime_param0 +// CHECK:STDOUT: %h: %HasPair.4 = bind_name h, %h.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -498,12 +498,12 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %.loc7_27.1: %.3 = tuple_literal (%T.ref.loc7_23, %T.ref.loc7_26) // CHECK:STDOUT: %.loc7_27.2: type = converted %.loc7_27.1, constants.%.4 [symbolic = %.loc7_27.3 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc7_33: type = name_ref T, %T.loc7_6.1 [symbolic = %T.loc7_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc7_7: type = param runtime_param -// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %param.loc7_7 [symbolic = %T.loc7_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc7_20: @F.%.loc7_27.3 (%.4) = param runtime_param0 -// CHECK:STDOUT: %pair: @F.%.loc7_27.3 (%.4) = bind_name pair, %param.loc7_20 -// CHECK:STDOUT: %param.loc7_30: @F.%T.loc7_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc7_6.2 (%T) = return_slot %param.loc7_30 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc7_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc7_6.2 (constants.%T)] +// CHECK:STDOUT: %pair.param: @F.%.loc7_27.3 (%.4) = param runtime_param0 +// CHECK:STDOUT: %pair: @F.%.loc7_27.3 (%.4) = bind_name pair, %pair.param +// CHECK:STDOUT: %return.param: @F.%T.loc7_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc7_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %pair.patt: %.6 = binding_pattern pair @@ -516,10 +516,10 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %.loc9_17.1: %.3 = tuple_literal (%C.ref, %D.ref.loc9_16) // CHECK:STDOUT: %.loc9_17.2: type = converted %.loc9_17.1, constants.%.6 [template = constants.%.6] // CHECK:STDOUT: %D.ref.loc9_23: type = name_ref D, file.%D.decl [template = constants.%D] -// CHECK:STDOUT: %param.loc9_10: %.6 = param runtime_param0 -// CHECK:STDOUT: %pair: %.6 = bind_name pair, %param.loc9_10 -// CHECK:STDOUT: %param.loc9_20: %D = param runtime_param1 -// CHECK:STDOUT: %return: ref %D = return_slot %param.loc9_20 +// CHECK:STDOUT: %pair.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %pair: %.6 = bind_name pair, %pair.param +// CHECK:STDOUT: %return.param: %D = param runtime_param1 +// CHECK:STDOUT: %return: ref %D = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/deduce/type_operator.carbon b/toolchain/check/testdata/deduce/type_operator.carbon index 07edcd93de963..eb160887f5309 100644 --- a/toolchain/check/testdata/deduce/type_operator.carbon +++ b/toolchain/check/testdata/deduce/type_operator.carbon @@ -115,12 +115,12 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %T.ref.loc6_19: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] // CHECK:STDOUT: %.loc6_20.1: type = ptr_type %T [symbolic = %.loc6_20.2 (constants.%.3)] // CHECK:STDOUT: %T.ref.loc6_26: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_17: @F.%.loc6_20.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%.loc6_20.2 (%.3) = bind_name p, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_23: @F.%T.loc6_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %param.loc6_23 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%.loc6_20.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%.loc6_20.2 (%.3) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%T.loc6_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %.6 = binding_pattern p @@ -131,10 +131,10 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %C.ref.loc8_9: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc8_10: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc8_16: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc8_7: %.6 = param runtime_param0 -// CHECK:STDOUT: %p: %.6 = bind_name p, %param.loc8_7 -// CHECK:STDOUT: %param.loc8_13: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc8_13 +// CHECK:STDOUT: %p.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %p: %.6 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -255,12 +255,12 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %.loc6_19.1: type = const_type %T [symbolic = %.loc6_19.2 (constants.%.3)] // CHECK:STDOUT: %.loc6_26.1: type = ptr_type %.3 [symbolic = %.loc6_26.2 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc6_32: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_17: @F.%.loc6_26.2 (%.4) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%.loc6_26.2 (%.4) = bind_name p, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_29: @F.%T.loc6_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %param.loc6_29 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%.loc6_26.2 (%.4) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%.loc6_26.2 (%.4) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%T.loc6_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %.8 = binding_pattern p @@ -272,10 +272,10 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %.loc8_9: type = const_type %C [template = constants.%.7] // CHECK:STDOUT: %.loc8_16: type = ptr_type %.7 [template = constants.%.8] // CHECK:STDOUT: %C.ref.loc8_22: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc8_7: %.8 = param runtime_param0 -// CHECK:STDOUT: %p: %.8 = bind_name p, %param.loc8_7 -// CHECK:STDOUT: %param.loc8_19: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc8_19 +// CHECK:STDOUT: %p.param: %.8 = param runtime_param0 +// CHECK:STDOUT: %p: %.8 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -398,12 +398,12 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %T.ref.loc6_19: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] // CHECK:STDOUT: %.loc6_20.1: type = ptr_type %T [symbolic = %.loc6_20.2 (constants.%.3)] // CHECK:STDOUT: %T.ref.loc6_26: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_17: @F.%.loc6_20.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%.loc6_20.2 (%.3) = bind_name p, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_23: @F.%T.loc6_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %param.loc6_23 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%.loc6_20.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%.loc6_20.2 (%.3) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%T.loc6_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %.7 = binding_pattern p @@ -416,10 +416,10 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %.loc8_16: type = ptr_type %.6 [template = constants.%.7] // CHECK:STDOUT: %C.ref.loc8_28: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc8_22: type = const_type %C [template = constants.%.6] -// CHECK:STDOUT: %param.loc8_7: %.7 = param runtime_param0 -// CHECK:STDOUT: %p: %.7 = bind_name p, %param.loc8_7 -// CHECK:STDOUT: %param.loc8_19: %.6 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.6 = return_slot %param.loc8_19 +// CHECK:STDOUT: %p.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %p: %.7 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.6 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.6 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -539,12 +539,12 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %.loc6_19.1: type = const_type %T [symbolic = %.loc6_19.2 (constants.%.3)] // CHECK:STDOUT: %.loc6_26.1: type = ptr_type %.3 [symbolic = %.loc6_26.2 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc6_32: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_17: @F.%.loc6_26.2 (%.4) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%.loc6_26.2 (%.4) = bind_name p, %param.loc6_17 -// CHECK:STDOUT: %param.loc6_29: @F.%T.loc6_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %param.loc6_29 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%.loc6_26.2 (%.4) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%.loc6_26.2 (%.4) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%T.loc6_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc6_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %p.patt: %.7 = binding_pattern p @@ -556,10 +556,10 @@ fn G(p: C*) -> const C { // CHECK:STDOUT: %.loc8_10: type = ptr_type %C [template = constants.%.7] // CHECK:STDOUT: %C.ref.loc8_22: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc8_16: type = const_type %C [template = constants.%.8] -// CHECK:STDOUT: %param.loc8_7: %.7 = param runtime_param0 -// CHECK:STDOUT: %p: %.7 = bind_name p, %param.loc8_7 -// CHECK:STDOUT: %param.loc8_13: %.8 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.8 = return_slot %param.loc8_13 +// CHECK:STDOUT: %p.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %p: %.7 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.8 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.8 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/eval/fail_symbolic.carbon b/toolchain/check/testdata/eval/fail_symbolic.carbon index 7d44f5cd8debd..0b8c983a0bfbe 100644 --- a/toolchain/check/testdata/eval/fail_symbolic.carbon +++ b/toolchain/check/testdata/eval/fail_symbolic.carbon @@ -56,8 +56,8 @@ fn G(N:! i32) { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_10.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32.loc12, %.loc12_10.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %N.loc12_6.1: i32 = bind_symbolic_name N, 0, %param [symbolic = %N.loc12_6.2 (constants.%N)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc12_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc12_6.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/eval/symbolic.carbon b/toolchain/check/testdata/eval/symbolic.carbon index 5e29f3f78dfff..0541c1316fa48 100644 --- a/toolchain/check/testdata/eval/symbolic.carbon +++ b/toolchain/check/testdata/eval/symbolic.carbon @@ -58,8 +58,8 @@ fn F(T:! type) { // CHECK:STDOUT: %T.patt.loc12_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_6.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc12_6.1, runtime_param [symbolic = %T.patt.loc12_6.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc12_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc12_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon b/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon index c83bc5dfe09bd..59cdebf993566 100644 --- a/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon +++ b/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon @@ -73,8 +73,8 @@ fn H() -> i32 { // CHECK:STDOUT: %.loc11_20.4: type = value_of_initializer %int.make_type_32.loc11_17 [template = i32] // CHECK:STDOUT: %.loc11_20.5: type = converted %int.make_type_32.loc11_17, %.loc11_20.4 [template = i32] // CHECK:STDOUT: %.loc11_20.6: type = converted %.loc11_20.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: %.3 = return_slot_pattern @@ -88,8 +88,8 @@ fn H() -> i32 { // CHECK:STDOUT: %.loc13_20.4: type = value_of_initializer %int.make_type_32.loc13_17 [template = i32] // CHECK:STDOUT: %.loc13_20.5: type = converted %int.make_type_32.loc13_17, %.loc13_20.4 [template = i32] // CHECK:STDOUT: %.loc13_20.6: type = converted %.loc13_20.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -98,8 +98,8 @@ fn H() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc19_11.2: type = converted %int.make_type_32, %.loc19_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/builtin/call.carbon b/toolchain/check/testdata/function/builtin/call.carbon index b6026607aa889..25146cb9db021 100644 --- a/toolchain/check/testdata/function/builtin/call.carbon +++ b/toolchain/check/testdata/function/builtin/call.carbon @@ -66,12 +66,12 @@ var arr: [i32; Add(1, 2)]; // CHECK:STDOUT: %int.make_type_32.loc11_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_27.1: type = value_of_initializer %int.make_type_32.loc11_27 [template = i32] // CHECK:STDOUT: %.loc11_27.2: type = converted %int.make_type_32.loc11_27, %.loc11_27.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 -// CHECK:STDOUT: %param.loc11_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] diff --git a/toolchain/check/testdata/function/builtin/definition.carbon b/toolchain/check/testdata/function/builtin/definition.carbon index cc73b285864e3..a23e7eb5773d0 100644 --- a/toolchain/check/testdata/function/builtin/definition.carbon +++ b/toolchain/check/testdata/function/builtin/definition.carbon @@ -58,12 +58,12 @@ fn Add(a: i32, b: i32) -> i32 = "int.sadd"; // CHECK:STDOUT: %int.make_type_32.loc11_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_27.1: type = value_of_initializer %int.make_type_32.loc11_27 [template = i32] // CHECK:STDOUT: %.loc11_27.2: type = converted %int.make_type_32.loc11_27, %.loc11_27.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 -// CHECK:STDOUT: %param.loc11_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/builtin/fail_redefined.carbon b/toolchain/check/testdata/function/builtin/fail_redefined.carbon index 44bcbba6b1733..6456fb389ec9e 100644 --- a/toolchain/check/testdata/function/builtin/fail_redefined.carbon +++ b/toolchain/check/testdata/function/builtin/fail_redefined.carbon @@ -91,12 +91,12 @@ fn C(n: i32, m: i32) -> i32 = "int.sadd"; // CHECK:STDOUT: %int.make_type_32.loc11_25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_25.1: type = value_of_initializer %int.make_type_32.loc11_25 [template = i32] // CHECK:STDOUT: %.loc11_25.2: type = converted %int.make_type_32.loc11_25, %.loc11_25.1 [template = i32] -// CHECK:STDOUT: %param.loc11_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc11: i32 = bind_name n, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_15: i32 = param runtime_param1 -// CHECK:STDOUT: %m.loc11: i32 = bind_name m, %param.loc11_15 -// CHECK:STDOUT: %param.loc11_22: i32 = param runtime_param2 -// CHECK:STDOUT: %.loc11_22: ref i32 = return_slot %param.loc11_22 +// CHECK:STDOUT: %n.param.loc11: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc11: i32 = bind_name n, %n.param.loc11 +// CHECK:STDOUT: %m.param.loc11: i32 = param runtime_param1 +// CHECK:STDOUT: %m.loc11: i32 = bind_name m, %m.param.loc11 +// CHECK:STDOUT: %return.param.loc11: i32 = param runtime_param2 +// CHECK:STDOUT: %.loc11_22: ref i32 = return_slot %return.param.loc11 // CHECK:STDOUT: } // CHECK:STDOUT: %A.decl.loc19: %A.type = fn_decl @A [template = constants.%A] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -115,12 +115,12 @@ fn C(n: i32, m: i32) -> i32 = "int.sadd"; // 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.2: type = converted %int.make_type_32.loc19_25, %.loc19_25.1 [template = i32] -// CHECK:STDOUT: %param.loc19_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc19: i32 = bind_name n, %param.loc19_7 -// CHECK:STDOUT: %param.loc19_15: i32 = param runtime_param1 -// CHECK:STDOUT: %m.loc19: i32 = bind_name m, %param.loc19_15 -// CHECK:STDOUT: %param.loc19_22: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_22 +// CHECK:STDOUT: %n.param.loc19: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc19: i32 = bind_name n, %n.param.loc19 +// CHECK:STDOUT: %m.param.loc19: i32 = param runtime_param1 +// CHECK:STDOUT: %m.loc19: i32 = bind_name m, %m.param.loc19 +// CHECK:STDOUT: %return.param.loc19: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc19 // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl.loc21: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -139,12 +139,12 @@ fn C(n: i32, m: i32) -> i32 = "int.sadd"; // CHECK:STDOUT: %int.make_type_32.loc21_25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_25.1: type = value_of_initializer %int.make_type_32.loc21_25 [template = i32] // CHECK:STDOUT: %.loc21_25.2: type = converted %int.make_type_32.loc21_25, %.loc21_25.1 [template = i32] -// CHECK:STDOUT: %param.loc21_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc21: i32 = bind_name n, %param.loc21_7 -// CHECK:STDOUT: %param.loc21_15: i32 = param runtime_param1 -// CHECK:STDOUT: %m.loc21: i32 = bind_name m, %param.loc21_15 -// CHECK:STDOUT: %param.loc21_22: i32 = param runtime_param2 -// CHECK:STDOUT: %.loc21_22: ref i32 = return_slot %param.loc21_22 +// CHECK:STDOUT: %n.param.loc21: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc21: i32 = bind_name n, %n.param.loc21 +// CHECK:STDOUT: %m.param.loc21: i32 = param runtime_param1 +// CHECK:STDOUT: %m.loc21: i32 = bind_name m, %m.param.loc21 +// CHECK:STDOUT: %return.param.loc21: i32 = param runtime_param2 +// CHECK:STDOUT: %.loc21_22: ref i32 = return_slot %return.param.loc21 // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl.loc29: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -163,12 +163,12 @@ fn C(n: i32, m: i32) -> i32 = "int.sadd"; // CHECK:STDOUT: %int.make_type_32.loc29_25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc29_25.1: type = value_of_initializer %int.make_type_32.loc29_25 [template = i32] // CHECK:STDOUT: %.loc29_25.2: type = converted %int.make_type_32.loc29_25, %.loc29_25.1 [template = i32] -// CHECK:STDOUT: %param.loc29_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc29: i32 = bind_name n, %param.loc29_7 -// CHECK:STDOUT: %param.loc29_15: i32 = param runtime_param1 -// CHECK:STDOUT: %m.loc29: i32 = bind_name m, %param.loc29_15 -// CHECK:STDOUT: %param.loc29_22: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc29_22 +// CHECK:STDOUT: %n.param.loc29: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc29: i32 = bind_name n, %n.param.loc29 +// CHECK:STDOUT: %m.param.loc29: i32 = param runtime_param1 +// CHECK:STDOUT: %m.loc29: i32 = bind_name m, %m.param.loc29 +// CHECK:STDOUT: %return.param.loc29: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc29 // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl.loc31: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -187,12 +187,12 @@ fn C(n: i32, m: i32) -> i32 = "int.sadd"; // CHECK:STDOUT: %int.make_type_32.loc31_25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc31_25.1: type = value_of_initializer %int.make_type_32.loc31_25 [template = i32] // CHECK:STDOUT: %.loc31_25.2: type = converted %int.make_type_32.loc31_25, %.loc31_25.1 [template = i32] -// CHECK:STDOUT: %param.loc31_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc31: i32 = bind_name n, %param.loc31_7 -// CHECK:STDOUT: %param.loc31_15: i32 = param runtime_param1 -// CHECK:STDOUT: %m.loc31: i32 = bind_name m, %param.loc31_15 -// CHECK:STDOUT: %param.loc31_22: i32 = param runtime_param2 -// CHECK:STDOUT: %.loc31_22: ref i32 = return_slot %param.loc31_22 +// CHECK:STDOUT: %n.param.loc31: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc31: i32 = bind_name n, %n.param.loc31 +// CHECK:STDOUT: %m.param.loc31: i32 = param runtime_param1 +// CHECK:STDOUT: %m.loc31: i32 = bind_name m, %m.param.loc31 +// CHECK:STDOUT: %return.param.loc31: i32 = param runtime_param2 +// CHECK:STDOUT: %.loc31_22: ref i32 = return_slot %return.param.loc31 // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl.loc38: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -211,12 +211,12 @@ fn C(n: i32, m: i32) -> i32 = "int.sadd"; // CHECK:STDOUT: %int.make_type_32.loc38_25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc38_25.1: type = value_of_initializer %int.make_type_32.loc38_25 [template = i32] // CHECK:STDOUT: %.loc38_25.2: type = converted %int.make_type_32.loc38_25, %.loc38_25.1 [template = i32] -// CHECK:STDOUT: %param.loc38_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc38: i32 = bind_name n, %param.loc38_7 -// CHECK:STDOUT: %param.loc38_15: i32 = param runtime_param1 -// CHECK:STDOUT: %m.loc38: i32 = bind_name m, %param.loc38_15 -// CHECK:STDOUT: %param.loc38_22: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc38_22 +// CHECK:STDOUT: %n.param.loc38: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc38: i32 = bind_name n, %n.param.loc38 +// CHECK:STDOUT: %m.param.loc38: i32 = param runtime_param1 +// CHECK:STDOUT: %m.loc38: i32 = bind_name m, %m.param.loc38 +// CHECK:STDOUT: %return.param.loc38: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param.loc38 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/builtin/method.carbon b/toolchain/check/testdata/function/builtin/method.carbon index 12d7b4e89e1de..94f44454a6d95 100644 --- a/toolchain/check/testdata/function/builtin/method.carbon +++ b/toolchain/check/testdata/function/builtin/method.carbon @@ -104,12 +104,12 @@ var arr: [i32; 1.(I.F)(2)]; // CHECK:STDOUT: %Self.ref.loc12_36: %I.type = name_ref Self, @I.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_36.1: type = facet_type_access %Self.ref.loc12_36 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_36.2: type = converted %Self.ref.loc12_36, %.loc12_36.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc12_12: @F.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %param.loc12_12 -// CHECK:STDOUT: %param.loc12_25: @F.1.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %other: @F.1.%Self (%Self) = bind_name other, %param.loc12_25 -// CHECK:STDOUT: %param.loc12_33: @F.1.%Self (%Self) = param runtime_param2 -// CHECK:STDOUT: %return: ref @F.1.%Self (%Self) = return_slot %param.loc12_33 +// CHECK:STDOUT: %self.param: @F.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %other.param: @F.1.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %other: @F.1.%Self (%Self) = bind_name other, %other.param +// CHECK:STDOUT: %return.param: @F.1.%Self (%Self) = param runtime_param2 +// CHECK:STDOUT: %return: ref @F.1.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: @@ -137,12 +137,12 @@ var arr: [i32; 1.(I.F)(2)]; // CHECK:STDOUT: %int.make_type_32.loc16_34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc16_34.1: type = value_of_initializer %int.make_type_32.loc16_34 [template = i32] // CHECK:STDOUT: %.loc16_34.2: type = converted %int.make_type_32.loc16_34, %.loc16_34.1 [template = i32] -// CHECK:STDOUT: %param.loc16_12: i32 = param runtime_param0 -// CHECK:STDOUT: %self: i32 = bind_name self, %param.loc16_12 -// CHECK:STDOUT: %param.loc16_24: i32 = param runtime_param1 -// CHECK:STDOUT: %other: i32 = bind_name other, %param.loc16_24 -// CHECK:STDOUT: %param.loc16_31: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc16_31 +// CHECK:STDOUT: %self.param: i32 = param runtime_param0 +// CHECK:STDOUT: %self: i32 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: i32 = param runtime_param1 +// CHECK:STDOUT: %other: i32 = bind_name other, %other.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15_15: = interface_witness (%F.decl) [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon b/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon index 512ffb4e78655..4346f09a023c3 100644 --- a/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon +++ b/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon @@ -53,8 +53,8 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4); // CHECK:STDOUT: %return.patt: type = return_slot_pattern // CHECK:STDOUT: %return.param_patt: type = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %return: ref type = return_slot %param +// CHECK:STDOUT: %return.param: type = param runtime_param0 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Add.decl: type = interface_decl @Add [template = constants.%Add.type] {} {} // CHECK:STDOUT: } @@ -78,12 +78,12 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4); // CHECK:STDOUT: %Self.ref.loc7_37: %Add.type = name_ref Self, @Add.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc7_37.1: type = facet_type_access %Self.ref.loc7_37 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc7_37.2: type = converted %Self.ref.loc7_37, %.loc7_37.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc7_13: @Op.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @Op.%Self (%Self) = bind_name self, %param.loc7_13 -// CHECK:STDOUT: %param.loc7_26: @Op.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %other: @Op.%Self (%Self) = bind_name other, %param.loc7_26 -// CHECK:STDOUT: %param.loc7_34: @Op.%Self (%Self) = param runtime_param2 -// CHECK:STDOUT: %return: ref @Op.%Self (%Self) = return_slot %param.loc7_34 +// CHECK:STDOUT: %self.param: @Op.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @Op.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %other.param: @Op.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %other: @Op.%Self (%Self) = bind_name other, %other.param +// CHECK:STDOUT: %return.param: @Op.%Self (%Self) = param runtime_param2 +// CHECK:STDOUT: %return: ref @Op.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc7: %.2 = assoc_entity element0, %Op.decl [template = constants.%.3] // CHECK:STDOUT: @@ -194,12 +194,12 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4); // CHECK:STDOUT: %Self.ref.loc7_15: type = name_ref Self, @impl.%.loc6_6.2 [template = i32] // CHECK:STDOUT: %Self.ref.loc7_28: type = name_ref Self, @impl.%.loc6_6.2 [template = i32] // CHECK:STDOUT: %Self.ref.loc7_37: type = name_ref Self, @impl.%.loc6_6.2 [template = i32] -// CHECK:STDOUT: %param.loc7_13: i32 = param runtime_param0 -// CHECK:STDOUT: %self: i32 = bind_name self, %param.loc7_13 -// CHECK:STDOUT: %param.loc7_26: i32 = param runtime_param1 -// CHECK:STDOUT: %other: i32 = bind_name other, %param.loc7_26 -// CHECK:STDOUT: %param.loc7_34: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc7_34 +// CHECK:STDOUT: %self.param: i32 = param runtime_param0 +// CHECK:STDOUT: %self: i32 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: i32 = param runtime_param1 +// CHECK:STDOUT: %other: i32 = bind_name other, %other.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6_22: = interface_witness (%Op.decl) [template = constants.%.2] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/builtin/no_prelude/import.carbon b/toolchain/check/testdata/function/builtin/no_prelude/import.carbon index 713e575239f16..eb126fd282a25 100644 --- a/toolchain/check/testdata/function/builtin/no_prelude/import.carbon +++ b/toolchain/check/testdata/function/builtin/no_prelude/import.carbon @@ -40,8 +40,8 @@ var arr: [i32; Core.TestAdd(1, 2)] = (1, 2, 3); // CHECK:STDOUT: %return.patt: type = return_slot_pattern // CHECK:STDOUT: %return.param_patt: type = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %return: ref type = return_slot %param +// CHECK:STDOUT: %return.param: type = param runtime_param0 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAdd.decl: %TestAdd.type = fn_decl @TestAdd [template = constants.%TestAdd] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -60,12 +60,12 @@ var arr: [i32; Core.TestAdd(1, 2)] = (1, 2, 3); // CHECK:STDOUT: %int.make_type_32.loc5_31: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_31.1: type = value_of_initializer %int.make_type_32.loc5_31 [template = i32] // CHECK:STDOUT: %.loc5_31.2: type = converted %int.make_type_32.loc5_31, %.loc5_31.1 [template = i32] -// CHECK:STDOUT: %param.loc5_13: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc5_13 -// CHECK:STDOUT: %param.loc5_21: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_21 -// CHECK:STDOUT: %param.loc5_28: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_28 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/call/fail_param_count.carbon b/toolchain/check/testdata/function/call/fail_param_count.carbon index a3d3481e8500d..6500a8b1d469f 100644 --- a/toolchain/check/testdata/function/call/fail_param_count.carbon +++ b/toolchain/check/testdata/function/call/fail_param_count.carbon @@ -114,8 +114,8 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_12.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_12.2: type = converted %int.make_type_32, %.loc12_12.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Run2.decl: %Run2.type = fn_decl @Run2 [template = constants.%Run2] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -129,10 +129,10 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32.loc13_20: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_20.1: type = value_of_initializer %int.make_type_32.loc13_20 [template = i32] // CHECK:STDOUT: %.loc13_20.2: type = converted %int.make_type_32.loc13_20, %.loc13_20.1 [template = i32] -// CHECK:STDOUT: %param.loc13_10: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_10 -// CHECK:STDOUT: %param.loc13_18: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_18 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/fail_param_type.carbon b/toolchain/check/testdata/function/call/fail_param_type.carbon index 426b4b8c35f01..18978be554fc8 100644 --- a/toolchain/check/testdata/function/call/fail_param_type.carbon +++ b/toolchain/check/testdata/function/call/fail_param_type.carbon @@ -89,8 +89,8 @@ fn F() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // 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: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon b/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon index 56ed5451465f7..a8e025343e980 100644 --- a/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon +++ b/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon @@ -92,8 +92,8 @@ fn Run() { // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc11_13.1) [template = f64] // CHECK:STDOUT: %.loc11_13.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc11_13.3: type = converted %float.make_type, %.loc11_13.2 [template = f64] -// CHECK:STDOUT: %param: f64 = param runtime_param0 -// CHECK:STDOUT: %return: ref f64 = return_slot %param +// CHECK:STDOUT: %return.param: f64 = param runtime_param0 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Run.decl: %Run.type = fn_decl @Run [template = constants.%Run] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/i32.carbon b/toolchain/check/testdata/function/call/i32.carbon index 49ffb2c8d3831..fce09927621ca 100644 --- a/toolchain/check/testdata/function/call/i32.carbon +++ b/toolchain/check/testdata/function/call/i32.carbon @@ -63,10 +63,10 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32.loc11_20: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_20.1: type = value_of_initializer %int.make_type_32.loc11_20 [template = i32] // CHECK:STDOUT: %.loc11_20.2: type = converted %int.make_type_32.loc11_20, %.loc11_20.1 [template = i32] -// CHECK:STDOUT: %param.loc11_10: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_10 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_17 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/more_param_ir.carbon b/toolchain/check/testdata/function/call/more_param_ir.carbon index 7b35f9709e22b..d022ed53507a6 100644 --- a/toolchain/check/testdata/function/call/more_param_ir.carbon +++ b/toolchain/check/testdata/function/call/more_param_ir.carbon @@ -68,10 +68,10 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32.loc11_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32.loc11_19 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32.loc11_19, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/no_prelude/alias.carbon b/toolchain/check/testdata/function/call/no_prelude/alias.carbon index b845b20c38c82..ce349432d04b9 100644 --- a/toolchain/check/testdata/function/call/no_prelude/alias.carbon +++ b/toolchain/check/testdata/function/call/no_prelude/alias.carbon @@ -39,8 +39,8 @@ fn Main() { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc11_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc11_12.2: type = converted %.loc11_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %A.ref: %A.type = name_ref A, %A.decl [template = constants.%A] // CHECK:STDOUT: %B: %A.type = bind_alias B, %A.decl [template = constants.%A] diff --git a/toolchain/check/testdata/function/call/no_prelude/empty_struct.carbon b/toolchain/check/testdata/function/call/no_prelude/empty_struct.carbon index e27c7218daf19..0fd831a552298 100644 --- a/toolchain/check/testdata/function/call/no_prelude/empty_struct.carbon +++ b/toolchain/check/testdata/function/call/no_prelude/empty_struct.carbon @@ -43,10 +43,10 @@ fn Main() { // CHECK:STDOUT: %.loc11_13.2: type = converted %.loc11_13.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc11_20.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc11_20.2: type = converted %.loc11_20.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc11_10: %.1 = param runtime_param0 -// CHECK:STDOUT: %a: %.1 = bind_name a, %param.loc11_10 -// CHECK:STDOUT: %param.loc11_16: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc11_16 +// CHECK:STDOUT: %a.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %a: %.1 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/no_prelude/empty_tuple.carbon b/toolchain/check/testdata/function/call/no_prelude/empty_tuple.carbon index 57213087ce0b5..e60cb24e775de 100644 --- a/toolchain/check/testdata/function/call/no_prelude/empty_tuple.carbon +++ b/toolchain/check/testdata/function/call/no_prelude/empty_tuple.carbon @@ -42,10 +42,10 @@ fn Main() { // CHECK:STDOUT: %.loc11_13.2: type = converted %.loc11_13.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc11_20.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc11_20.2: type = converted %.loc11_20.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc11_10: %.1 = param runtime_param0 -// CHECK:STDOUT: %a: %.1 = bind_name a, %param.loc11_10 -// CHECK:STDOUT: %param.loc11_16: %.1 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc11_16 +// CHECK:STDOUT: %a.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %a: %.1 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/no_prelude/fail_explicit_self_param.carbon b/toolchain/check/testdata/function/call/no_prelude/fail_explicit_self_param.carbon index 5b317aa2764d1..a96fa59e83a03 100644 --- a/toolchain/check/testdata/function/call/no_prelude/fail_explicit_self_param.carbon +++ b/toolchain/check/testdata/function/call/no_prelude/fail_explicit_self_param.carbon @@ -39,8 +39,8 @@ fn Run() { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc14_13.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc14_13.2: type = converted %.loc14_13.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %self: %.1 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %self: %.1 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %Run.decl: %Run.type = fn_decl @Run [template = constants.%Run] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_one.carbon b/toolchain/check/testdata/function/call/params_one.carbon index 00f6cdc38d24b..a484fc8e91fa9 100644 --- a/toolchain/check/testdata/function/call/params_one.carbon +++ b/toolchain/check/testdata/function/call/params_one.carbon @@ -56,8 +56,8 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_one_comma.carbon b/toolchain/check/testdata/function/call/params_one_comma.carbon index 1be15c0fb212d..0eba5be9367e2 100644 --- a/toolchain/check/testdata/function/call/params_one_comma.carbon +++ b/toolchain/check/testdata/function/call/params_one_comma.carbon @@ -57,8 +57,8 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_two.carbon b/toolchain/check/testdata/function/call/params_two.carbon index 9caeac9069bf3..d6f4dff2616fb 100644 --- a/toolchain/check/testdata/function/call/params_two.carbon +++ b/toolchain/check/testdata/function/call/params_two.carbon @@ -62,10 +62,10 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32.loc11_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32.loc11_19 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32.loc11_19, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_two_comma.carbon b/toolchain/check/testdata/function/call/params_two_comma.carbon index ded340232d6ff..288e6765434d5 100644 --- a/toolchain/check/testdata/function/call/params_two_comma.carbon +++ b/toolchain/check/testdata/function/call/params_two_comma.carbon @@ -63,10 +63,10 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32.loc11_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32.loc11_19 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32.loc11_19, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/declaration/fail_param_in_type.carbon b/toolchain/check/testdata/function/declaration/fail_param_in_type.carbon index 31c3ad357a6a7..c92f355cac410 100644 --- a/toolchain/check/testdata/function/declaration/fail_param_in_type.carbon +++ b/toolchain/check/testdata/function/declaration/fail_param_in_type.carbon @@ -56,10 +56,10 @@ fn F(n: i32, a: [i32; n]*); // CHECK:STDOUT: %int.make_type_32.loc14_18: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %n.ref: i32 = name_ref n, %n // CHECK:STDOUT: %.loc14_25: type = ptr_type [template = ] -// CHECK:STDOUT: %param.loc14_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc14_7 -// CHECK:STDOUT: %param.loc14_15: = param runtime_param1 -// CHECK:STDOUT: %a: = bind_name a, %param.loc14_15 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %a.param: = param runtime_param1 +// CHECK:STDOUT: %a: = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/declaration/fail_param_redecl.carbon b/toolchain/check/testdata/function/declaration/fail_param_redecl.carbon index 44d5dc1138cff..0f3af03e49dd9 100644 --- a/toolchain/check/testdata/function/declaration/fail_param_redecl.carbon +++ b/toolchain/check/testdata/function/declaration/fail_param_redecl.carbon @@ -59,10 +59,10 @@ fn F(n: i32, n: i32); // CHECK:STDOUT: %int.make_type_32.loc17_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc17_17.1: type = value_of_initializer %int.make_type_32.loc17_17 [template = i32] // CHECK:STDOUT: %.loc17_17.2: type = converted %int.make_type_32.loc17_17, %.loc17_17.1 [template = i32] -// CHECK:STDOUT: %param.loc17_7: i32 = param runtime_param0 -// CHECK:STDOUT: %n.loc17_6: i32 = bind_name n, %param.loc17_7 -// CHECK:STDOUT: %param.loc17_15: i32 = param runtime_param1 -// CHECK:STDOUT: %n.loc17_14: i32 = bind_name n, %param.loc17_15 +// CHECK:STDOUT: %n.param.loc17_7: i32 = param runtime_param0 +// CHECK:STDOUT: %n.loc17_6: i32 = bind_name n, %n.param.loc17_7 +// CHECK:STDOUT: %n.param.loc17_15: i32 = param runtime_param1 +// CHECK:STDOUT: %n.loc17_14: i32 = bind_name n, %n.param.loc17_15 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/declaration/import.carbon b/toolchain/check/testdata/function/declaration/import.carbon index 5147055a71dff..b77f106d1eacf 100644 --- a/toolchain/check/testdata/function/declaration/import.carbon +++ b/toolchain/check/testdata/function/declaration/import.carbon @@ -314,10 +314,10 @@ import library "extern_api"; // CHECK:STDOUT: %int.make_type_32.loc5_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_17.1: type = value_of_initializer %int.make_type_32.loc5_17 [template = i32] // CHECK:STDOUT: %.loc5_17.2: type = converted %int.make_type_32.loc5_17, %.loc5_17.1 [template = i32] -// CHECK:STDOUT: %param.loc5_7: i32 = param runtime_param0 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_7 -// CHECK:STDOUT: %param.loc5_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_14 +// CHECK:STDOUT: %b.param: i32 = param runtime_param0 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %c.patt: %.3 = binding_pattern c @@ -334,10 +334,10 @@ import library "extern_api"; // CHECK:STDOUT: %.loc6_25.1: type = value_of_initializer %int.make_type_32.loc6_25 [template = i32] // CHECK:STDOUT: %.loc6_25.2: type = converted %int.make_type_32.loc6_25, %.loc6_25.1 [template = i32] // CHECK:STDOUT: %.loc6_28: type = struct_type {.c: i32} [template = constants.%.4] -// CHECK:STDOUT: %param.loc6_7: %.3 = param runtime_param0 -// CHECK:STDOUT: %c: %.3 = bind_name c, %param.loc6_7 -// CHECK:STDOUT: %param.loc6_17: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc6_17 +// CHECK:STDOUT: %c.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %c: %.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: %NS: = namespace [template] { @@ -417,10 +417,10 @@ import library "extern_api"; // CHECK:STDOUT: %int.make_type_32.loc5_52: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_52.1: type = value_of_initializer %int.make_type_32.loc5_52 [template = i32] // CHECK:STDOUT: %.loc5_52.2: type = converted %int.make_type_32.loc5_52, %.loc5_52.1 [template = i32] -// CHECK:STDOUT: %param.loc5_42: i32 = param runtime_param0 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_42 -// CHECK:STDOUT: %param.loc5_49: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_49 +// CHECK:STDOUT: %b.param: i32 = param runtime_param0 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %c.patt: %.3 = binding_pattern c @@ -437,10 +437,10 @@ import library "extern_api"; // CHECK:STDOUT: %.loc6_60.1: type = value_of_initializer %int.make_type_32.loc6_60 [template = i32] // CHECK:STDOUT: %.loc6_60.2: type = converted %int.make_type_32.loc6_60, %.loc6_60.1 [template = i32] // CHECK:STDOUT: %.loc6_63: type = struct_type {.c: i32} [template = constants.%.4] -// CHECK:STDOUT: %param.loc6_42: %.3 = param runtime_param0 -// CHECK:STDOUT: %c: %.3 = bind_name c, %param.loc6_42 -// CHECK:STDOUT: %param.loc6_52: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc6_52 +// CHECK:STDOUT: %c.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %c: %.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: %NS: = namespace [template] { @@ -657,10 +657,10 @@ import library "extern_api"; // CHECK:STDOUT: %int.make_type_32.loc23_24: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_24.1: type = value_of_initializer %int.make_type_32.loc23_24 [template = i32] // CHECK:STDOUT: %.loc23_24.2: type = converted %int.make_type_32.loc23_24, %.loc23_24.1 [template = i32] -// CHECK:STDOUT: %param.loc23_14: i32 = param runtime_param0 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc23_14 -// CHECK:STDOUT: %param.loc23_21: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc23_21: ref i32 = return_slot %param.loc23_21 +// CHECK:STDOUT: %b.param: i32 = param runtime_param0 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc23_21: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] {} { // CHECK:STDOUT: %int.make_type_32.loc32_17: init type = call constants.%Int32() [template = i32] @@ -672,10 +672,10 @@ import library "extern_api"; // CHECK:STDOUT: %.loc32_32.1: type = value_of_initializer %int.make_type_32.loc32_32 [template = i32] // CHECK:STDOUT: %.loc32_32.2: type = converted %int.make_type_32.loc32_32, %.loc32_32.1 [template = i32] // CHECK:STDOUT: %.loc32_35: type = struct_type {.c: i32} [template = constants.%.4] -// CHECK:STDOUT: %param.loc32_14: %.3 = param runtime_param0 -// CHECK:STDOUT: %c: %.3 = bind_name c, %param.loc32_14 -// CHECK:STDOUT: %param.loc32_24: %.4 = param runtime_param1 -// CHECK:STDOUT: %.loc32_24: ref %.4 = return_slot %param.loc32_24 +// CHECK:STDOUT: %c.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %c: %.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %.loc32_24: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: %E.decl: %E.type = fn_decl @E [template = constants.%E] {} {} @@ -813,10 +813,10 @@ import library "extern_api"; // CHECK:STDOUT: %int.make_type_32.loc7_24: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc7_24.1: type = value_of_initializer %int.make_type_32.loc7_24 [template = i32] // CHECK:STDOUT: %.loc7_24.2: type = converted %int.make_type_32.loc7_24, %.loc7_24.1 [template = i32] -// CHECK:STDOUT: %param.loc7_14: i32 = param runtime_param0 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc7_14 -// CHECK:STDOUT: %param.loc7_21: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc7_21: ref i32 = return_slot %param.loc7_21 +// CHECK:STDOUT: %b.param: i32 = param runtime_param0 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc7_21: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] {} { // CHECK:STDOUT: %int.make_type_32.loc8_17: init type = call constants.%Int32() [template = i32] @@ -828,10 +828,10 @@ import library "extern_api"; // CHECK:STDOUT: %.loc8_32.1: type = value_of_initializer %int.make_type_32.loc8_32 [template = i32] // CHECK:STDOUT: %.loc8_32.2: type = converted %int.make_type_32.loc8_32, %.loc8_32.1 [template = i32] // CHECK:STDOUT: %.loc8_35: type = struct_type {.c: i32} [template = constants.%.4] -// CHECK:STDOUT: %param.loc8_14: %.3 = param runtime_param0 -// CHECK:STDOUT: %c: %.3 = bind_name c, %param.loc8_14 -// CHECK:STDOUT: %param.loc8_24: %.4 = param runtime_param1 -// CHECK:STDOUT: %.loc8_24: ref %.4 = return_slot %param.loc8_24 +// CHECK:STDOUT: %c.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %c: %.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %.loc8_24: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: %E.decl: %E.type = fn_decl @E [template = constants.%E] {} {} diff --git a/toolchain/check/testdata/function/declaration/no_prelude/extern.carbon b/toolchain/check/testdata/function/declaration/no_prelude/extern.carbon index b48f334be449d..9fd48050ddb30 100644 --- a/toolchain/check/testdata/function/declaration/no_prelude/extern.carbon +++ b/toolchain/check/testdata/function/declaration/no_prelude/extern.carbon @@ -178,8 +178,8 @@ class C { // CHECK:STDOUT: %self.param_patt: %C = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/declaration/no_prelude/fail_import_incomplete_return.carbon b/toolchain/check/testdata/function/declaration/no_prelude/fail_import_incomplete_return.carbon index 1b69b1a23f826..9b863c9784fec 100644 --- a/toolchain/check/testdata/function/declaration/no_prelude/fail_import_incomplete_return.carbon +++ b/toolchain/check/testdata/function/declaration/no_prelude/fail_import_incomplete_return.carbon @@ -120,32 +120,32 @@ fn CallFAndGIncomplete() { // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ReturnCUsed.decl: %ReturnCUsed.type = fn_decl @ReturnCUsed [template = constants.%ReturnCUsed] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ReturnDUnused.decl: %ReturnDUnused.type = fn_decl @ReturnDUnused [template = constants.%ReturnDUnused] { // CHECK:STDOUT: %return.patt: %D = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %D = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D.decl.loc5 [template = constants.%D] -// CHECK:STDOUT: %param: %D = param runtime_param0 -// CHECK:STDOUT: %return: ref %D = return_slot %param +// CHECK:STDOUT: %return.param: %D = param runtime_param0 +// CHECK:STDOUT: %return: ref %D = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ReturnDUsed.decl: %ReturnDUsed.type = fn_decl @ReturnDUsed [template = constants.%ReturnDUsed] { // CHECK:STDOUT: %return.patt: %D = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %D = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D.decl.loc5 [template = constants.%D] -// CHECK:STDOUT: %param: %D = param runtime_param0 -// CHECK:STDOUT: %return: ref %D = return_slot %param +// CHECK:STDOUT: %return.param: %D = param runtime_param0 +// CHECK:STDOUT: %return: ref %D = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [template = constants.%Call] {} {} // CHECK:STDOUT: %D.decl.loc37: type = class_decl @D [template = constants.%D] {} {} diff --git a/toolchain/check/testdata/function/declaration/no_prelude/fail_redecl.carbon b/toolchain/check/testdata/function/declaration/no_prelude/fail_redecl.carbon index 548e6832ca974..7c3be24c6c131 100644 --- a/toolchain/check/testdata/function/declaration/no_prelude/fail_redecl.carbon +++ b/toolchain/check/testdata/function/declaration/no_prelude/fail_redecl.carbon @@ -91,8 +91,8 @@ fn E() {} // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc21_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc21_10.2: type = converted %.loc21_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc21: %.1 = param runtime_param0 -// CHECK:STDOUT: %x.loc21: %.1 = bind_name x, %param.loc21 +// CHECK:STDOUT: %x.param.loc21: %.1 = param runtime_param0 +// CHECK:STDOUT: %x.loc21: %.1 = bind_name x, %x.param.loc21 // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl.loc29: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %x.patt: %.1 = binding_pattern x @@ -100,8 +100,8 @@ fn E() {} // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc29_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc29_10.2: type = converted %.loc29_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc29: %.1 = param runtime_param0 -// CHECK:STDOUT: %x.loc29: %.1 = bind_name x, %param.loc29 +// CHECK:STDOUT: %x.param.loc29: %.1 = param runtime_param0 +// CHECK:STDOUT: %x.loc29: %.1 = bind_name x, %x.param.loc29 // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.2] { @@ -110,8 +110,8 @@ fn E() {} // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc39_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc39_10.2: type = converted %.loc39_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %x: %.1 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %x: %.1 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl.loc41: %D.type = fn_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: %D.decl.loc49: %D.type = fn_decl @D [template = constants.%D] {} {} diff --git a/toolchain/check/testdata/function/declaration/param_same_name.carbon b/toolchain/check/testdata/function/declaration/param_same_name.carbon index 547a62ade00d9..9a41bb181dcf9 100644 --- a/toolchain/check/testdata/function/declaration/param_same_name.carbon +++ b/toolchain/check/testdata/function/declaration/param_same_name.carbon @@ -53,8 +53,8 @@ fn G(a: i32); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // 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: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %a.patt: i32 = binding_pattern a @@ -63,8 +63,8 @@ fn G(a: i32); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_9.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_9.2: type = converted %int.make_type_32, %.loc13_9.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/import.carbon b/toolchain/check/testdata/function/definition/import.carbon index c0a7affbfc2f7..5ec1105bc88fa 100644 --- a/toolchain/check/testdata/function/definition/import.carbon +++ b/toolchain/check/testdata/function/definition/import.carbon @@ -166,10 +166,10 @@ fn D() {} // CHECK:STDOUT: %int.make_type_32.loc5_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_17.1: type = value_of_initializer %int.make_type_32.loc5_17 [template = i32] // CHECK:STDOUT: %.loc5_17.2: type = converted %int.make_type_32.loc5_17, %.loc5_17.1 [template = i32] -// CHECK:STDOUT: %param.loc5_7: i32 = param runtime_param0 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc5_7 -// CHECK:STDOUT: %param.loc5_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc5_14 +// CHECK:STDOUT: %b.param: i32 = param runtime_param0 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %c.patt: %.3 = binding_pattern c @@ -186,10 +186,10 @@ fn D() {} // CHECK:STDOUT: %.loc6_25.1: type = value_of_initializer %int.make_type_32.loc6_25 [template = i32] // CHECK:STDOUT: %.loc6_25.2: type = converted %int.make_type_32.loc6_25, %.loc6_25.1 [template = i32] // CHECK:STDOUT: %.loc6_28: type = struct_type {.c: i32} [template = constants.%.4] -// CHECK:STDOUT: %param.loc6_7: %.3 = param runtime_param0 -// CHECK:STDOUT: %c: %.3 = bind_name c, %param.loc6_7 -// CHECK:STDOUT: %param.loc6_17: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc6_17 +// CHECK:STDOUT: %c.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %c: %.3 = bind_name c, %c.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {} {} // CHECK:STDOUT: } @@ -395,10 +395,10 @@ fn D() {} // CHECK:STDOUT: %int.make_type_32.loc23_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_17.1: type = value_of_initializer %int.make_type_32.loc23_17 [template = i32] // CHECK:STDOUT: %.loc23_17.2: type = converted %int.make_type_32.loc23_17, %.loc23_17.1 [template = i32] -// CHECK:STDOUT: %param.loc23_7: i32 = param runtime_param0 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc23_7 -// CHECK:STDOUT: %param.loc23_14: i32 = param runtime_param1 -// CHECK:STDOUT: %.loc23_14: ref i32 = return_slot %param.loc23_14 +// CHECK:STDOUT: %b.param: i32 = param runtime_param0 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %.loc23_14: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/no_prelude/fail_decl_param_mismatch.carbon b/toolchain/check/testdata/function/definition/no_prelude/fail_decl_param_mismatch.carbon index 70a981e1bf10c..df9f787376845 100644 --- a/toolchain/check/testdata/function/definition/no_prelude/fail_decl_param_mismatch.carbon +++ b/toolchain/check/testdata/function/definition/no_prelude/fail_decl_param_mismatch.carbon @@ -113,8 +113,8 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc19_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc19_10.2: type = converted %.loc19_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %x: %.1 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %x: %.1 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %x.patt: %.1 = binding_pattern x @@ -122,8 +122,8 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc21_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc21_10.2: type = converted %.loc21_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %x: %.1 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %x: %.1 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc29: %.type.2 = fn_decl @.2 [template = constants.%.3] {} {} // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] { @@ -132,15 +132,15 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc31_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc31_10.2: type = converted %.loc31_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %x: %.1 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %x: %.1 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc36: %.type.3 = fn_decl @.3 [template = constants.%.4] { // CHECK:STDOUT: %x.patt: = binding_pattern x // CHECK:STDOUT: %x.param_patt: = param_pattern %x.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %x: = bind_name x, %param +// CHECK:STDOUT: %x.param: = param runtime_param0 +// CHECK:STDOUT: %x: = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %I.decl: %I.type = fn_decl @I [template = constants.%I] {} {} // CHECK:STDOUT: %.decl.loc46: %.type.4 = fn_decl @.4 [template = constants.%.5] { @@ -149,8 +149,8 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc46_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc46_12.2: type = converted %.loc46_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %J.decl: %J.type = fn_decl @J [template = constants.%J] { // CHECK:STDOUT: %return.patt: %.1 = return_slot_pattern @@ -158,8 +158,8 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc48_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc48_12.2: type = converted %.loc48_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc56: %.type.5 = fn_decl @.5 [template = constants.%.6] {} {} // CHECK:STDOUT: %K.decl: %K.type = fn_decl @K [template = constants.%K] { @@ -168,8 +168,8 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc58_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc58_12.2: type = converted %.loc58_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc65: %.type.6 = fn_decl @.6 [template = constants.%.8] { // CHECK:STDOUT: %return.patt: %.7 = return_slot_pattern @@ -177,8 +177,8 @@ fn K() -> {} { return {}; } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc65_12.1: %.7 = struct_literal () // CHECK:STDOUT: %.loc65_12.2: type = converted %.loc65_12.1, constants.%.7 [template = constants.%.7] -// CHECK:STDOUT: %param: %.7 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.7 = return_slot %param +// CHECK:STDOUT: %return.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.7 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/no_prelude/syntactic_merge.carbon b/toolchain/check/testdata/function/definition/no_prelude/syntactic_merge.carbon index 4092665bc8106..07891a9a0daf2 100644 --- a/toolchain/check/testdata/function/definition/no_prelude/syntactic_merge.carbon +++ b/toolchain/check/testdata/function/definition/no_prelude/syntactic_merge.carbon @@ -197,32 +197,32 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc7: %C = bind_name a, %param.loc7 +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc7: %C = bind_name a, %a.param.loc7 // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc8: %Foo.type = fn_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc8: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc8: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc8: %C = bind_name a, %param.loc8 +// CHECK:STDOUT: %a.param.loc8: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc8: %C = bind_name a, %a.param.loc8 // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl.loc10: %Bar.type = fn_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref.loc10: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc10: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc10: %C = bind_name a, %param.loc10 +// CHECK:STDOUT: %a.param.loc10: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc10: %C = bind_name a, %a.param.loc10 // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl.loc11: %Bar.type = fn_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref.loc11: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc11: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc11: %C = bind_name a, %param.loc11 +// CHECK:STDOUT: %a.param.loc11: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc11: %C = bind_name a, %a.param.loc11 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -266,16 +266,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc6: %C = bind_name a, %param.loc6 +// CHECK:STDOUT: %a.param.loc6: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc6: %C = bind_name a, %a.param.loc6 // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = fn_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc7: %C = bind_name a, %param.loc7 +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc7: %C = bind_name a, %a.param.loc7 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -316,16 +316,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -366,16 +366,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc6: %C = bind_name a, %param.loc6 +// CHECK:STDOUT: %a.param.loc6: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc6: %C = bind_name a, %a.param.loc6 // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = fn_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param0 -// CHECK:STDOUT: %a.loc7: %C = bind_name a, %param.loc7 +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param0 +// CHECK:STDOUT: %a.loc7: %C = bind_name a, %a.param.loc7 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -419,16 +419,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl: %Bar.type = fn_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -479,16 +479,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.1 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl: %Bar.type = fn_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, imports.%import_ref.2 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -535,16 +535,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %b.patt: %C = binding_pattern b // CHECK:STDOUT: %b.param_patt: %C = param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %b: %C = bind_name b, %param +// CHECK:STDOUT: %b.param: %C = param runtime_param0 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -590,16 +590,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -648,16 +648,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_8.1, runtime_param [symbolic = %a.patt.loc7_8.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_8.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_8.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_8.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_8.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc15_8.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc15_8.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc15_8.1, runtime_param [symbolic = %a.patt.loc15_8.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc15_8.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc15_8.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc15_8.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc15_8.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -724,16 +724,16 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param0 -// CHECK:STDOUT: %.loc7: ref %C = return_slot %param.loc7 +// CHECK:STDOUT: %return.param.loc7: %C = param runtime_param0 +// CHECK:STDOUT: %.loc7: ref %C = return_slot %return.param.loc7 // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc8: %Foo.type = fn_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %return.patt: %C = return_slot_pattern // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc8: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc8 +// CHECK:STDOUT: %return.param.loc8: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param.loc8 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -774,8 +774,8 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -821,8 +821,8 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -863,8 +863,8 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc6: type = const_type %C [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %a: %.3 = bind_name a, %param +// CHECK:STDOUT: %a.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %a: %.3 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.5] { // CHECK:STDOUT: %a.patt: %.3 = binding_pattern a @@ -873,8 +873,8 @@ fn Foo(a: const (const C)) {} // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc17_18: type = const_type %C [template = constants.%.3] // CHECK:STDOUT: %.loc17_11: type = const_type %.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %a: %.3 = bind_name a, %param +// CHECK:STDOUT: %a.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %a: %.3 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/params_one.carbon b/toolchain/check/testdata/function/definition/params_one.carbon index d3338af9f8ad9..98a708c1d4aba 100644 --- a/toolchain/check/testdata/function/definition/params_one.carbon +++ b/toolchain/check/testdata/function/definition/params_one.carbon @@ -48,8 +48,8 @@ fn Foo(a: i32) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/params_one_comma.carbon b/toolchain/check/testdata/function/definition/params_one_comma.carbon index 1fdb538a85554..0e0639df86ecc 100644 --- a/toolchain/check/testdata/function/definition/params_one_comma.carbon +++ b/toolchain/check/testdata/function/definition/params_one_comma.carbon @@ -48,8 +48,8 @@ fn Foo(a: i32,) {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/params_two.carbon b/toolchain/check/testdata/function/definition/params_two.carbon index a0eb7ea0d3228..a00c88e4c35a1 100644 --- a/toolchain/check/testdata/function/definition/params_two.carbon +++ b/toolchain/check/testdata/function/definition/params_two.carbon @@ -53,10 +53,10 @@ fn Foo(a: i32, b: i32) {} // CHECK:STDOUT: %int.make_type_32.loc11_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32.loc11_19 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32.loc11_19, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/definition/params_two_comma.carbon b/toolchain/check/testdata/function/definition/params_two_comma.carbon index fcf50be494b44..d53b8111f868b 100644 --- a/toolchain/check/testdata/function/definition/params_two_comma.carbon +++ b/toolchain/check/testdata/function/definition/params_two_comma.carbon @@ -53,10 +53,10 @@ fn Foo(a: i32, b: i32,) {} // CHECK:STDOUT: %int.make_type_32.loc11_19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32.loc11_19 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32.loc11_19, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc11_17 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/deduce.carbon b/toolchain/check/testdata/function/generic/deduce.carbon index e7ded74525e2a..9736d50804861 100644 --- a/toolchain/check/testdata/function/generic/deduce.carbon +++ b/toolchain/check/testdata/function/generic/deduce.carbon @@ -184,10 +184,10 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_38: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] // CHECK:STDOUT: %.loc4_39.1: type = ptr_type %T [symbolic = %.loc4_39.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_26: type = param runtime_param -// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %param.loc4_26 [symbolic = %T.loc4_25.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_35: @ExplicitGenericParam.%.loc4_39.2 (%.1) = param runtime_param0 -// CHECK:STDOUT: %return: ref @ExplicitGenericParam.%.loc4_39.2 (%.1) = return_slot %param.loc4_35 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_25.2 (constants.%T)] +// CHECK:STDOUT: %return.param: @ExplicitGenericParam.%.loc4_39.2 (%.1) = param runtime_param0 +// CHECK:STDOUT: %return: ref @ExplicitGenericParam.%.loc4_39.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallExplicitGenericParam.decl: %CallExplicitGenericParam.type = fn_decl @CallExplicitGenericParam [template = constants.%CallExplicitGenericParam] { // CHECK:STDOUT: %return.patt: %.4 = return_slot_pattern @@ -197,8 +197,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %.loc6_37.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_37.2: type = converted %int.make_type_32.loc6, %.loc6_37.1 [template = i32] // CHECK:STDOUT: %.loc6_37.3: type = ptr_type i32 [template = constants.%.4] -// CHECK:STDOUT: %param: %.4 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallExplicitGenericParamWithGenericArg.decl: %CallExplicitGenericParamWithGenericArg.type = fn_decl @CallExplicitGenericParamWithGenericArg [template = constants.%CallExplicitGenericParamWithGenericArg] { // CHECK:STDOUT: %T.patt.loc10_43.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc10_43.2 (constants.%T.patt.2)] @@ -209,10 +209,10 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %T.ref.loc10: type = name_ref T, %T.loc10_43.1 [symbolic = %T.loc10_43.2 (constants.%T)] // CHECK:STDOUT: %.loc10_62.1: type = struct_type {.a: %T} [symbolic = %.loc10_62.2 (constants.%.6)] // CHECK:STDOUT: %.loc10_63.1: type = ptr_type %.6 [symbolic = %.loc10_63.2 (constants.%.7)] -// CHECK:STDOUT: %param.loc10_44: type = param runtime_param -// CHECK:STDOUT: %T.loc10_43.1: type = bind_symbolic_name T, 0, %param.loc10_44 [symbolic = %T.loc10_43.2 (constants.%T)] -// CHECK:STDOUT: %param.loc10_53: @CallExplicitGenericParamWithGenericArg.%.loc10_63.2 (%.7) = param runtime_param0 -// CHECK:STDOUT: %return: ref @CallExplicitGenericParamWithGenericArg.%.loc10_63.2 (%.7) = return_slot %param.loc10_53 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc10_43.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc10_43.2 (constants.%T)] +// CHECK:STDOUT: %return.param: @CallExplicitGenericParamWithGenericArg.%.loc10_63.2 (%.7) = param runtime_param0 +// CHECK:STDOUT: %return: ref @CallExplicitGenericParamWithGenericArg.%.loc10_63.2 (%.7) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -365,24 +365,24 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_38: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] // CHECK:STDOUT: %.loc4_39.1: type = ptr_type %T [symbolic = %.loc4_39.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_26: type = param runtime_param -// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %param.loc4_26 [symbolic = %T.loc4_25.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_35: @ExplicitGenericParam.%.loc4_39.2 (%.1) = param runtime_param0 -// CHECK:STDOUT: %return: ref @ExplicitGenericParam.%.loc4_39.2 (%.1) = return_slot %param.loc4_35 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_25.2 (constants.%T)] +// CHECK:STDOUT: %return.param: @ExplicitGenericParam.%.loc4_39.2 (%.1) = param runtime_param0 +// CHECK:STDOUT: %return: ref @ExplicitGenericParam.%.loc4_39.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallExplicitGenericParamConst.decl: %CallExplicitGenericParamConst.type = fn_decl @CallExplicitGenericParamConst [template = constants.%CallExplicitGenericParamConst] { // CHECK:STDOUT: %T.patt.loc6_34.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc6_34.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc6_34.1, runtime_param [symbolic = %T.patt.loc6_34.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc6_34.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc6_34.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_34.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_34.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %CallExplicitGenericParamNonConst.decl: %CallExplicitGenericParamNonConst.type = fn_decl @CallExplicitGenericParamNonConst [template = constants.%CallExplicitGenericParamNonConst] { // CHECK:STDOUT: %T.patt: type = binding_pattern T // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %T: type = bind_name T, %param +// CHECK:STDOUT: %T.param: type = param runtime_param0 +// CHECK:STDOUT: %T: type = bind_name T, %T.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -511,12 +511,12 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %T.ref.loc6_40: type = name_ref T, %T.loc6_27.1 [symbolic = %T.loc6_27.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc6_46: type = name_ref T, %T.loc6_27.1 [symbolic = %T.loc6_27.2 (constants.%T)] // CHECK:STDOUT: %.loc6_47.1: type = ptr_type %T [symbolic = %.loc6_47.2 (constants.%.3)] -// CHECK:STDOUT: %param.loc6_28: type = param runtime_param -// CHECK:STDOUT: %T.loc6_27.1: type = bind_symbolic_name T, 0, %param.loc6_28 [symbolic = %T.loc6_27.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_38: @ExplicitAndAlsoDeduced.%T.loc6_27.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @ExplicitAndAlsoDeduced.%T.loc6_27.2 (%T) = bind_name x, %param.loc6_38 -// CHECK:STDOUT: %param.loc6_43: @ExplicitAndAlsoDeduced.%.loc6_47.2 (%.3) = param runtime_param1 -// CHECK:STDOUT: %return: ref @ExplicitAndAlsoDeduced.%.loc6_47.2 (%.3) = return_slot %param.loc6_43 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_27.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_27.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @ExplicitAndAlsoDeduced.%T.loc6_27.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @ExplicitAndAlsoDeduced.%T.loc6_27.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @ExplicitAndAlsoDeduced.%.loc6_47.2 (%.3) = param runtime_param1 +// CHECK:STDOUT: %return: ref @ExplicitAndAlsoDeduced.%.loc6_47.2 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallExplicitAndAlsoDeduced.decl: %CallExplicitAndAlsoDeduced.type = fn_decl @CallExplicitAndAlsoDeduced [template = constants.%CallExplicitAndAlsoDeduced] { // CHECK:STDOUT: %return.patt: %.6 = return_slot_pattern @@ -524,8 +524,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref.loc10: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc10_37: type = ptr_type %A [template = constants.%.6] -// CHECK:STDOUT: %param: %.6 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.6 = return_slot %param +// CHECK:STDOUT: %return.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.6 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -649,12 +649,12 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %T.ref.loc4_38: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_44: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] // CHECK:STDOUT: %.loc4_45.1: type = ptr_type %T [symbolic = %.loc4_45.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_26: type = param runtime_param -// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %param.loc4_26 [symbolic = %T.loc4_25.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_36: @ImplicitGenericParam.%T.loc4_25.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @ImplicitGenericParam.%T.loc4_25.2 (%T) = bind_name x, %param.loc4_36 -// CHECK:STDOUT: %param.loc4_41: @ImplicitGenericParam.%.loc4_45.2 (%.1) = param runtime_param1 -// CHECK:STDOUT: %return: ref @ImplicitGenericParam.%.loc4_45.2 (%.1) = return_slot %param.loc4_41 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_25.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @ImplicitGenericParam.%T.loc4_25.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @ImplicitGenericParam.%T.loc4_25.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @ImplicitGenericParam.%.loc4_45.2 (%.1) = param runtime_param1 +// CHECK:STDOUT: %return: ref @ImplicitGenericParam.%.loc4_45.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallImplicitGenericParam.decl: %CallImplicitGenericParam.type = fn_decl @CallImplicitGenericParam [template = constants.%CallImplicitGenericParam] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -669,10 +669,10 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %.loc6_43.1: type = value_of_initializer %int.make_type_32.loc6_40 [template = i32] // CHECK:STDOUT: %.loc6_43.2: type = converted %int.make_type_32.loc6_40, %.loc6_43.1 [template = i32] // CHECK:STDOUT: %.loc6_43.3: type = ptr_type i32 [template = constants.%.4] -// CHECK:STDOUT: %param.loc6_30: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc6_30 -// CHECK:STDOUT: %param.loc6_37: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc6_37 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -790,10 +790,10 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_35.3: type = converted %int.make_type_32, %.loc4_35.2 [template = i32] // CHECK:STDOUT: %.loc4_35.4: type = converted %.loc4_35.1, constants.%.3 [symbolic = %.loc4_35.5 (constants.%.3)] -// CHECK:STDOUT: %param.loc4_16: type = param runtime_param -// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %param.loc4_16 [symbolic = %T.loc4_15.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_26: @TupleParam.%.loc4_35.5 (%.3) = param runtime_param0 -// CHECK:STDOUT: %x: @TupleParam.%.loc4_35.5 (%.3) = bind_name x, %param.loc4_26 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_15.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @TupleParam.%.loc4_35.5 (%.3) = param runtime_param0 +// CHECK:STDOUT: %x: @TupleParam.%.loc4_35.5 (%.3) = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallTupleParam.decl: %CallTupleParam.type = fn_decl @CallTupleParam [template = constants.%CallTupleParam] {} {} // CHECK:STDOUT: } @@ -892,10 +892,10 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %.loc4_41.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_41.2: type = converted %int.make_type_32, %.loc4_41.1 [template = i32] // CHECK:STDOUT: %.loc4_44.1: type = struct_type {.a: %T, .b: i32} [symbolic = %.loc4_44.2 (constants.%.2)] -// CHECK:STDOUT: %param.loc4_17: type = param runtime_param -// CHECK:STDOUT: %T.loc4_16.1: type = bind_symbolic_name T, 0, %param.loc4_17 [symbolic = %T.loc4_16.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_27: @StructParam.%.loc4_44.2 (%.2) = param runtime_param0 -// CHECK:STDOUT: %x: @StructParam.%.loc4_44.2 (%.2) = bind_name x, %param.loc4_27 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_16.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_16.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @StructParam.%.loc4_44.2 (%.2) = param runtime_param0 +// CHECK:STDOUT: %x: @StructParam.%.loc4_44.2 (%.2) = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallStructParam.decl: %CallStructParam.type = fn_decl @CallStructParam [template = constants.%CallStructParam] {} {} // CHECK:STDOUT: } @@ -977,14 +977,14 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc6_25.1 [symbolic = %T.loc6_25.2 (constants.%T)] // CHECK:STDOUT: %U.ref: type = name_ref U, %U.loc6_35.1 [symbolic = %U.loc6_35.2 (constants.%U)] -// CHECK:STDOUT: %param.loc6_26: type = param runtime_param -// CHECK:STDOUT: %T.loc6_25.1: type = bind_symbolic_name T, 0, %param.loc6_26 [symbolic = %T.loc6_25.2 (constants.%T)] -// CHECK:STDOUT: %param.loc6_36: type = param runtime_param -// CHECK:STDOUT: %U.loc6_35.1: type = bind_symbolic_name U, 1, %param.loc6_36 [symbolic = %U.loc6_35.2 (constants.%U)] -// CHECK:STDOUT: %param.loc6_46: @ImplicitNotDeducible.%T.loc6_25.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @ImplicitNotDeducible.%T.loc6_25.2 (%T) = bind_name x, %param.loc6_46 -// CHECK:STDOUT: %param.loc6_51: @ImplicitNotDeducible.%U.loc6_35.2 (%U) = param runtime_param1 -// CHECK:STDOUT: %return: ref @ImplicitNotDeducible.%U.loc6_35.2 (%U) = return_slot %param.loc6_51 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_25.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_25.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc6_35.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc6_35.2 (constants.%U)] +// CHECK:STDOUT: %x.param: @ImplicitNotDeducible.%T.loc6_25.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @ImplicitNotDeducible.%T.loc6_25.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @ImplicitNotDeducible.%U.loc6_35.2 (%U) = param runtime_param1 +// CHECK:STDOUT: %return: ref @ImplicitNotDeducible.%U.loc6_35.2 (%U) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallImplicitNotDeducible.decl: %CallImplicitNotDeducible.type = fn_decl @CallImplicitNotDeducible [template = constants.%CallImplicitNotDeducible] {} {} // CHECK:STDOUT: } @@ -1060,14 +1060,14 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %T.ref.loc4_38: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_44: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_50: type = name_ref T, %T.loc4_25.1 [symbolic = %T.loc4_25.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_26: type = param runtime_param -// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %param.loc4_26 [symbolic = %T.loc4_25.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_36: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = bind_name x, %param.loc4_36 -// CHECK:STDOUT: %param.loc4_42: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %y: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = bind_name y, %param.loc4_42 -// CHECK:STDOUT: %param.loc4_47: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = param runtime_param2 -// CHECK:STDOUT: %return: ref @ImplicitNotDeducible.%T.loc4_25.2 (%T) = return_slot %param.loc4_47 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_25.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_25.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %y.param: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %y: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = bind_name y, %y.param +// CHECK:STDOUT: %return.param: @ImplicitNotDeducible.%T.loc4_25.2 (%T) = param runtime_param2 +// CHECK:STDOUT: %return: ref @ImplicitNotDeducible.%T.loc4_25.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallImplicitNotDeducible.decl: %CallImplicitNotDeducible.type = fn_decl @CallImplicitNotDeducible [template = constants.%CallImplicitNotDeducible] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/generic/fail_todo_param_in_type.carbon b/toolchain/check/testdata/function/generic/fail_todo_param_in_type.carbon index 96980e3aebb9f..11bf490f26c71 100644 --- a/toolchain/check/testdata/function/generic/fail_todo_param_in_type.carbon +++ b/toolchain/check/testdata/function/generic/fail_todo_param_in_type.carbon @@ -61,10 +61,10 @@ fn F(N:! i32, a: [i32; N]*); // CHECK:STDOUT: %.loc14_19.2: type = converted %int.make_type_32.loc14_19, %.loc14_19.1 [template = i32] // CHECK:STDOUT: %.loc14_25: type = array_type %N.ref, i32 [template = ] // CHECK:STDOUT: %.loc14_26: type = ptr_type [template = ] -// CHECK:STDOUT: %param.loc14_7: i32 = param runtime_param -// CHECK:STDOUT: %N.loc14_6.1: i32 = bind_symbolic_name N, 0, %param.loc14_7 [symbolic = %N.loc14_6.2 (constants.%N)] -// CHECK:STDOUT: %param.loc14_16: = param runtime_param0 -// CHECK:STDOUT: %a: = bind_name a, %param.loc14_16 +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc14_6.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc14_6.2 (constants.%N)] +// CHECK:STDOUT: %a.param: = param runtime_param0 +// CHECK:STDOUT: %a: = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/no_prelude/call.carbon b/toolchain/check/testdata/function/generic/no_prelude/call.carbon index cf2cae5d58fd0..4ce9cfec8dd6c 100644 --- a/toolchain/check/testdata/function/generic/no_prelude/call.carbon +++ b/toolchain/check/testdata/function/generic/no_prelude/call.carbon @@ -96,12 +96,12 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_26: type = name_ref T, %T.loc4_13.1 [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_32: type = name_ref T, %T.loc4_13.1 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_14: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param.loc4_14 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_24: @Function.%T.loc4_13.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @Function.%T.loc4_13.2 (%T) = bind_name x, %param.loc4_24 -// CHECK:STDOUT: %param.loc4_29: @Function.%T.loc4_13.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Function.%T.loc4_13.2 (%T) = return_slot %param.loc4_29 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @Function.%T.loc4_13.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @Function.%T.loc4_13.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @Function.%T.loc4_13.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Function.%T.loc4_13.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGeneric.decl: %CallGeneric.type = fn_decl @CallGeneric [template = constants.%CallGeneric] { // CHECK:STDOUT: %T.patt.loc8_16.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_16.2 (constants.%T.patt.2)] @@ -113,12 +113,12 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc8_29: type = name_ref T, %T.loc8_16.1 [symbolic = %T.loc8_16.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc8_35: type = name_ref T, %T.loc8_16.1 [symbolic = %T.loc8_16.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_17: type = param runtime_param -// CHECK:STDOUT: %T.loc8_16.1: type = bind_symbolic_name T, 0, %param.loc8_17 [symbolic = %T.loc8_16.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_27: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @CallGeneric.%T.loc8_16.2 (%T) = bind_name x, %param.loc8_27 -// CHECK:STDOUT: %param.loc8_32: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @CallGeneric.%T.loc8_16.2 (%T) = return_slot %param.loc8_32 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_16.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_16.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @CallGeneric.%T.loc8_16.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @CallGeneric.%T.loc8_16.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGenericPtr.decl: %CallGenericPtr.type = fn_decl @CallGenericPtr [template = constants.%CallGenericPtr] { // CHECK:STDOUT: %T.patt.loc12_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_19.2 (constants.%T.patt.3)] @@ -132,12 +132,12 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: %.loc12_33.1: type = ptr_type %T [symbolic = %.loc12_33.2 (constants.%.3)] // CHECK:STDOUT: %T.ref.loc12_39: type = name_ref T, %T.loc12_19.1 [symbolic = %T.loc12_19.2 (constants.%T)] // CHECK:STDOUT: %.loc12_40: type = ptr_type %T [symbolic = %.loc12_33.2 (constants.%.3)] -// CHECK:STDOUT: %param.loc12_20: type = param runtime_param -// CHECK:STDOUT: %T.loc12_19.1: type = bind_symbolic_name T, 0, %param.loc12_20 [symbolic = %T.loc12_19.2 (constants.%T)] -// CHECK:STDOUT: %param.loc12_30: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %x: @CallGenericPtr.%.loc12_33.2 (%.3) = bind_name x, %param.loc12_30 -// CHECK:STDOUT: %param.loc12_36: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param1 -// CHECK:STDOUT: %return: ref @CallGenericPtr.%.loc12_33.2 (%.3) = return_slot %param.loc12_36 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_19.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %x: @CallGenericPtr.%.loc12_33.2 (%.3) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param1 +// CHECK:STDOUT: %return: ref @CallGenericPtr.%.loc12_33.2 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %CallSpecific.decl: %CallSpecific.type = fn_decl @CallSpecific [template = constants.%CallSpecific] { @@ -148,10 +148,10 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc18_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_18: %C = param runtime_param0 -// CHECK:STDOUT: %x: %C = bind_name x, %param.loc18_18 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_23 +// CHECK:STDOUT: %x.param: %C = param runtime_param0 +// CHECK:STDOUT: %x: %C = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -314,12 +314,12 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_26: type = name_ref T, %T.loc4_13.1 [symbolic = %T.loc4_13.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_32: type = name_ref T, %T.loc4_13.1 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_14: type = param runtime_param -// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %param.loc4_14 [symbolic = %T.loc4_13.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_24: @Function.%T.loc4_13.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @Function.%T.loc4_13.2 (%T) = bind_name x, %param.loc4_24 -// CHECK:STDOUT: %param.loc4_29: @Function.%T.loc4_13.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Function.%T.loc4_13.2 (%T) = return_slot %param.loc4_29 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_13.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @Function.%T.loc4_13.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @Function.%T.loc4_13.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @Function.%T.loc4_13.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Function.%T.loc4_13.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGeneric.decl: %CallGeneric.type = fn_decl @CallGeneric [template = constants.%CallGeneric] { // CHECK:STDOUT: %T.patt.loc8_16.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_16.2 (constants.%T.patt.2)] @@ -331,12 +331,12 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc8_29: type = name_ref T, %T.loc8_16.1 [symbolic = %T.loc8_16.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc8_35: type = name_ref T, %T.loc8_16.1 [symbolic = %T.loc8_16.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_17: type = param runtime_param -// CHECK:STDOUT: %T.loc8_16.1: type = bind_symbolic_name T, 0, %param.loc8_17 [symbolic = %T.loc8_16.2 (constants.%T)] -// CHECK:STDOUT: %param.loc8_27: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @CallGeneric.%T.loc8_16.2 (%T) = bind_name x, %param.loc8_27 -// CHECK:STDOUT: %param.loc8_32: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @CallGeneric.%T.loc8_16.2 (%T) = return_slot %param.loc8_32 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_16.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_16.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @CallGeneric.%T.loc8_16.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @CallGeneric.%T.loc8_16.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @CallGeneric.%T.loc8_16.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallGenericPtr.decl: %CallGenericPtr.type = fn_decl @CallGenericPtr [template = constants.%CallGenericPtr] { // CHECK:STDOUT: %T.patt.loc12_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_19.2 (constants.%T.patt.3)] @@ -350,12 +350,12 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: %.loc12_33.1: type = ptr_type %T [symbolic = %.loc12_33.2 (constants.%.3)] // CHECK:STDOUT: %T.ref.loc12_39: type = name_ref T, %T.loc12_19.1 [symbolic = %T.loc12_19.2 (constants.%T)] // CHECK:STDOUT: %.loc12_40: type = ptr_type %T [symbolic = %.loc12_33.2 (constants.%.3)] -// CHECK:STDOUT: %param.loc12_20: type = param runtime_param -// CHECK:STDOUT: %T.loc12_19.1: type = bind_symbolic_name T, 0, %param.loc12_20 [symbolic = %T.loc12_19.2 (constants.%T)] -// CHECK:STDOUT: %param.loc12_30: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %x: @CallGenericPtr.%.loc12_33.2 (%.3) = bind_name x, %param.loc12_30 -// CHECK:STDOUT: %param.loc12_36: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param1 -// CHECK:STDOUT: %return: ref @CallGenericPtr.%.loc12_33.2 (%.3) = return_slot %param.loc12_36 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_19.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %x: @CallGenericPtr.%.loc12_33.2 (%.3) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @CallGenericPtr.%.loc12_33.2 (%.3) = param runtime_param1 +// CHECK:STDOUT: %return: ref @CallGenericPtr.%.loc12_33.2 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %CallSpecific.decl: %CallSpecific.type = fn_decl @CallSpecific [template = constants.%CallSpecific] { @@ -366,10 +366,10 @@ fn CallSpecific(x: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc18_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_18: %C = param runtime_param0 -// CHECK:STDOUT: %x: %C = bind_name x, %param.loc18_18 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_23 +// CHECK:STDOUT: %x.param: %C = param runtime_param0 +// CHECK:STDOUT: %x: %C = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/no_prelude/fail_type_param_mismatch.carbon b/toolchain/check/testdata/function/generic/no_prelude/fail_type_param_mismatch.carbon index 6878a9a908d5e..23d73490d4a83 100644 --- a/toolchain/check/testdata/function/generic/no_prelude/fail_type_param_mismatch.carbon +++ b/toolchain/check/testdata/function/generic/no_prelude/fail_type_param_mismatch.carbon @@ -39,10 +39,10 @@ fn F(T:! type, U:! type) { // CHECK:STDOUT: %U.patt.loc11_16.1: type = symbolic_binding_pattern U, 1 [symbolic = %U.patt.loc11_16.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc11_16.1, runtime_param [symbolic = %U.patt.loc11_16.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc11_7: type = param runtime_param -// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %param.loc11_7 [symbolic = %T.loc11_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc11_17: type = param runtime_param -// CHECK:STDOUT: %U.loc11_16.1: type = bind_symbolic_name U, 1, %param.loc11_17 [symbolic = %U.loc11_16.2 (constants.%U)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_6.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc11_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc11_16.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/no_prelude/forward_decl.carbon b/toolchain/check/testdata/function/generic/no_prelude/forward_decl.carbon index 0c7473b94cc04..a34c403513cf5 100644 --- a/toolchain/check/testdata/function/generic/no_prelude/forward_decl.carbon +++ b/toolchain/check/testdata/function/generic/no_prelude/forward_decl.carbon @@ -28,8 +28,8 @@ fn F(T:! type); // CHECK:STDOUT: %T.patt.loc11_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_6.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_6.1, runtime_param [symbolic = %T.patt.loc11_6.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/no_prelude/indirect_generic_type.carbon b/toolchain/check/testdata/function/generic/no_prelude/indirect_generic_type.carbon index 2fce401045595..80f212024a433 100644 --- a/toolchain/check/testdata/function/generic/no_prelude/indirect_generic_type.carbon +++ b/toolchain/check/testdata/function/generic/no_prelude/indirect_generic_type.carbon @@ -41,12 +41,12 @@ fn F(T:! type, p: T**) -> T* { // CHECK:STDOUT: %.loc11_21.1: type = ptr_type %.1 [symbolic = %.loc11_21.2 (constants.%.2)] // CHECK:STDOUT: %T.ref.loc11_27: type = name_ref T, %T.loc11_6.1 [symbolic = %T.loc11_6.2 (constants.%T)] // CHECK:STDOUT: %.loc11_28: type = ptr_type %T [symbolic = %.loc11_20.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc11_7: type = param runtime_param -// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %param.loc11_7 [symbolic = %T.loc11_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc11_17: @F.%.loc11_21.2 (%.2) = param runtime_param0 -// CHECK:STDOUT: %p: @F.%.loc11_21.2 (%.2) = bind_name p, %param.loc11_17 -// CHECK:STDOUT: %param.loc11_24: @F.%.loc11_20.2 (%.1) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%.loc11_20.2 (%.1) = return_slot %param.loc11_24 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_6.2 (constants.%T)] +// CHECK:STDOUT: %p.param: @F.%.loc11_21.2 (%.2) = param runtime_param0 +// CHECK:STDOUT: %p: @F.%.loc11_21.2 (%.2) = bind_name p, %p.param +// CHECK:STDOUT: %return.param: @F.%.loc11_20.2 (%.1) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%.loc11_20.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/no_prelude/type_param.carbon b/toolchain/check/testdata/function/generic/no_prelude/type_param.carbon index f9d3131d1912d..092d86bc21a33 100644 --- a/toolchain/check/testdata/function/generic/no_prelude/type_param.carbon +++ b/toolchain/check/testdata/function/generic/no_prelude/type_param.carbon @@ -32,8 +32,8 @@ fn F(T:! type) { // CHECK:STDOUT: %T.patt.loc11_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_6.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_6.1, runtime_param [symbolic = %T.patt.loc11_6.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/no_prelude/type_param_scope.carbon b/toolchain/check/testdata/function/generic/no_prelude/type_param_scope.carbon index 631a6f68d03fd..b1efd945ce292 100644 --- a/toolchain/check/testdata/function/generic/no_prelude/type_param_scope.carbon +++ b/toolchain/check/testdata/function/generic/no_prelude/type_param_scope.carbon @@ -37,12 +37,12 @@ fn F(T:! type, n: T) -> T { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc11_19: type = name_ref T, %T.loc11_6.1 [symbolic = %T.loc11_6.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc11_25: type = name_ref T, %T.loc11_6.1 [symbolic = %T.loc11_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc11_7: type = param runtime_param -// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %param.loc11_7 [symbolic = %T.loc11_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc11_17: @F.%T.loc11_6.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %n: @F.%T.loc11_6.2 (%T) = bind_name n, %param.loc11_17 -// CHECK:STDOUT: %param.loc11_22: @F.%T.loc11_6.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%T.loc11_6.2 (%T) = return_slot %param.loc11_22 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_6.2 (constants.%T)] +// CHECK:STDOUT: %n.param: @F.%T.loc11_6.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %n: @F.%T.loc11_6.2 (%T) = bind_name n, %n.param +// CHECK:STDOUT: %return.param: @F.%T.loc11_6.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%T.loc11_6.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/redeclare.carbon b/toolchain/check/testdata/function/generic/redeclare.carbon index 2207a682b33b8..66ea01ec2c7c9 100644 --- a/toolchain/check/testdata/function/generic/redeclare.carbon +++ b/toolchain/check/testdata/function/generic/redeclare.carbon @@ -129,10 +129,10 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4: type = name_ref T, %T.loc4_6.1 [symbolic = %T.loc4_6.2 (constants.%T)] // CHECK:STDOUT: %.loc4_20.1: type = ptr_type %T [symbolic = %.loc4_20.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_7: type = param runtime_param -// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %param.loc4_7 [symbolic = %T.loc4_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_16: @F.%.loc4_20.2 (%.1) = param runtime_param0 -// CHECK:STDOUT: %.loc4_16: ref @F.%.loc4_20.2 (%.1) = return_slot %param.loc4_16 +// CHECK:STDOUT: %T.param.loc4: type = param runtime_param +// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %T.param.loc4 [symbolic = %T.loc4_6.2 (constants.%T)] +// CHECK:STDOUT: %return.param.loc4: @F.%.loc4_20.2 (%.1) = param runtime_param0 +// CHECK:STDOUT: %.loc4_16: ref @F.%.loc4_20.2 (%.1) = return_slot %return.param.loc4 // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl.loc6: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %T.patt.loc6: type = symbolic_binding_pattern T, 0 [symbolic = constants.%T.patt.2] @@ -142,10 +142,10 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc6: type = name_ref T, %T.loc6 [symbolic = constants.%T] // CHECK:STDOUT: %.loc6_20: type = ptr_type %T [symbolic = constants.%.1] -// CHECK:STDOUT: %param.loc6_7: type = param runtime_param -// CHECK:STDOUT: %T.loc6: type = bind_symbolic_name T, 0, %param.loc6_7 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc6_16: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc6_16 +// CHECK:STDOUT: %T.param.loc6: type = param runtime_param +// CHECK:STDOUT: %T.loc6: type = bind_symbolic_name T, 0, %T.param.loc6 [symbolic = constants.%T] +// CHECK:STDOUT: %return.param.loc6: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param.loc6 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -231,12 +231,12 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc4_6.1 [symbolic = %T.loc4_6.2 (constants.%T)] // CHECK:STDOUT: %.loc4_30.1: type = ptr_type %T [symbolic = %.loc4_30.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_7: type = param runtime_param -// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %param.loc4_7 [symbolic = %T.loc4_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_17: type = param runtime_param -// CHECK:STDOUT: %U.loc4_16.1: type = bind_symbolic_name U, 1, %param.loc4_17 [symbolic = %U.loc4_16.2 (constants.%U)] -// CHECK:STDOUT: %param.loc4_26: @F.%.loc4_30.2 (%.1) = param runtime_param0 -// CHECK:STDOUT: %return: ref @F.%.loc4_30.2 (%.1) = return_slot %param.loc4_26 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_6.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc4_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc4_16.2 (constants.%U)] +// CHECK:STDOUT: %return.param: @F.%.loc4_30.2 (%.1) = param runtime_param0 +// CHECK:STDOUT: %return: ref @F.%.loc4_30.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %T.patt.loc13_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc13_6.2 (constants.%T.patt.2)] @@ -248,12 +248,12 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %U.ref: type = name_ref U, %U.loc13_16.1 [symbolic = %U.loc13_16.2 (constants.%U)] // CHECK:STDOUT: %.loc13_30.1: type = ptr_type %U [symbolic = %.loc13_30.2 (constants.%.3)] -// CHECK:STDOUT: %param.loc13_7: type = param runtime_param -// CHECK:STDOUT: %T.loc13_6.1: type = bind_symbolic_name T, 0, %param.loc13_7 [symbolic = %T.loc13_6.2 (constants.%T)] -// CHECK:STDOUT: %param.loc13_17: type = param runtime_param -// CHECK:STDOUT: %U.loc13_16.1: type = bind_symbolic_name U, 1, %param.loc13_17 [symbolic = %U.loc13_16.2 (constants.%U)] -// CHECK:STDOUT: %param.loc13_26: @.1.%.loc13_30.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %return: ref @.1.%.loc13_30.2 (%.3) = return_slot %param.loc13_26 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc13_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc13_6.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc13_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc13_16.2 (constants.%U)] +// CHECK:STDOUT: %return.param: @.1.%.loc13_30.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %return: ref @.1.%.loc13_30.2 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -349,12 +349,12 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc4_6.1 [symbolic = %T.loc4_6.2 (constants.%T.1)] // CHECK:STDOUT: %.loc4_30.1: type = ptr_type %T.1 [symbolic = %.loc4_30.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_7: type = param runtime_param -// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %param.loc4_7 [symbolic = %T.loc4_6.2 (constants.%T.1)] -// CHECK:STDOUT: %param.loc4_17: type = param runtime_param -// CHECK:STDOUT: %U.loc4_16.1: type = bind_symbolic_name U, 1, %param.loc4_17 [symbolic = %U.loc4_16.2 (constants.%U.1)] -// CHECK:STDOUT: %param.loc4_26: @F.%.loc4_30.2 (%.1) = param runtime_param0 -// CHECK:STDOUT: %return: ref @F.%.loc4_30.2 (%.1) = return_slot %param.loc4_26 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_6.2 (constants.%T.1)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc4_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc4_16.2 (constants.%U.1)] +// CHECK:STDOUT: %return.param: @F.%.loc4_30.2 (%.1) = param runtime_param0 +// CHECK:STDOUT: %return: ref @F.%.loc4_30.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %U.patt.loc13_6.1: type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc13_6.2 (constants.%U.patt.2)] @@ -366,12 +366,12 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc13: type = name_ref T, %T.loc13_16.1 [symbolic = %T.loc13_16.2 (constants.%T.2)] // CHECK:STDOUT: %.loc13_30.1: type = ptr_type %T.2 [symbolic = %.loc13_30.2 (constants.%.3)] -// CHECK:STDOUT: %param.loc13_7: type = param runtime_param -// CHECK:STDOUT: %U.loc13_6.1: type = bind_symbolic_name U, 0, %param.loc13_7 [symbolic = %U.loc13_6.2 (constants.%U.2)] -// CHECK:STDOUT: %param.loc13_17: type = param runtime_param -// CHECK:STDOUT: %T.loc13_16.1: type = bind_symbolic_name T, 1, %param.loc13_17 [symbolic = %T.loc13_16.2 (constants.%T.2)] -// CHECK:STDOUT: %param.loc13_26: @.1.%.loc13_30.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %return: ref @.1.%.loc13_30.2 (%.3) = return_slot %param.loc13_26 +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc13_6.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc13_6.2 (constants.%U.2)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc13_16.1: type = bind_symbolic_name T, 1, %T.param [symbolic = %T.loc13_16.2 (constants.%T.2)] +// CHECK:STDOUT: %return.param: @.1.%.loc13_30.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %return: ref @.1.%.loc13_30.2 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -467,12 +467,12 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc4_6.1 [symbolic = %T.loc4_6.2 (constants.%T.1)] // CHECK:STDOUT: %.loc4_30.1: type = ptr_type %T.1 [symbolic = %.loc4_30.2 (constants.%.1)] -// CHECK:STDOUT: %param.loc4_7: type = param runtime_param -// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %param.loc4_7 [symbolic = %T.loc4_6.2 (constants.%T.1)] -// CHECK:STDOUT: %param.loc4_17: type = param runtime_param -// CHECK:STDOUT: %U.loc4_16.1: type = bind_symbolic_name U, 1, %param.loc4_17 [symbolic = %U.loc4_16.2 (constants.%U.1)] -// CHECK:STDOUT: %param.loc4_26: @F.%.loc4_30.2 (%.1) = param runtime_param0 -// CHECK:STDOUT: %return: ref @F.%.loc4_30.2 (%.1) = return_slot %param.loc4_26 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_6.2 (constants.%T.1)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc4_16.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc4_16.2 (constants.%U.1)] +// CHECK:STDOUT: %return.param: @F.%.loc4_30.2 (%.1) = param runtime_param0 +// CHECK:STDOUT: %return: ref @F.%.loc4_30.2 (%.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %U.patt.loc13_6.1: type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc13_6.2 (constants.%U.patt.2)] @@ -484,12 +484,12 @@ fn F(U:! type, T:! type) -> U* { // CHECK:STDOUT: } { // CHECK:STDOUT: %U.ref: type = name_ref U, %U.loc13_6.1 [symbolic = %U.loc13_6.2 (constants.%U.2)] // CHECK:STDOUT: %.loc13_30.1: type = ptr_type %U.2 [symbolic = %.loc13_30.2 (constants.%.3)] -// CHECK:STDOUT: %param.loc13_7: type = param runtime_param -// CHECK:STDOUT: %U.loc13_6.1: type = bind_symbolic_name U, 0, %param.loc13_7 [symbolic = %U.loc13_6.2 (constants.%U.2)] -// CHECK:STDOUT: %param.loc13_17: type = param runtime_param -// CHECK:STDOUT: %T.loc13_16.1: type = bind_symbolic_name T, 1, %param.loc13_17 [symbolic = %T.loc13_16.2 (constants.%T.2)] -// CHECK:STDOUT: %param.loc13_26: @.1.%.loc13_30.2 (%.3) = param runtime_param0 -// CHECK:STDOUT: %return: ref @.1.%.loc13_30.2 (%.3) = return_slot %param.loc13_26 +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc13_6.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc13_6.2 (constants.%U.2)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc13_16.1: type = bind_symbolic_name T, 1, %T.param [symbolic = %T.loc13_16.2 (constants.%T.2)] +// CHECK:STDOUT: %return.param: @.1.%.loc13_30.2 (%.3) = param runtime_param0 +// CHECK:STDOUT: %return: ref @.1.%.loc13_30.2 (%.3) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/resolve_used.carbon b/toolchain/check/testdata/function/generic/resolve_used.carbon index 8ee1327581475..981549f8de94d 100644 --- a/toolchain/check/testdata/function/generic/resolve_used.carbon +++ b/toolchain/check/testdata/function/generic/resolve_used.carbon @@ -77,8 +77,8 @@ fn CallNegative() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_23.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_23.2: type = converted %int.make_type_32, %.loc4_23.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param -// CHECK:STDOUT: %N.loc4_19.1: i32 = bind_symbolic_name N, 0, %param [symbolic = %N.loc4_19.2 (constants.%N)] +// CHECK:STDOUT: %N.param: i32 = param runtime_param +// CHECK:STDOUT: %N.loc4_19.1: i32 = bind_symbolic_name N, 0, %N.param [symbolic = %N.loc4_19.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %CallNegative.decl: %CallNegative.type = fn_decl @CallNegative [template = constants.%CallNegative] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/generic/return_slot.carbon b/toolchain/check/testdata/function/generic/return_slot.carbon index 4dd9086b4f47f..2b46b1e5fd014 100644 --- a/toolchain/check/testdata/function/generic/return_slot.carbon +++ b/toolchain/check/testdata/function/generic/return_slot.carbon @@ -89,8 +89,8 @@ fn G() { // CHECK:STDOUT: %T.patt.loc11_12.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_12.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_12.1, runtime_param [symbolic = %T.patt.loc11_12.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_12.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_12.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_12.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_12.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {} {} @@ -110,8 +110,8 @@ fn G() { // CHECK:STDOUT: %return.param_patt: @Make.%T (%T) = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @Wrap.%T.loc11_12.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param: @Make.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %return: ref @Make.%T (%T) = return_slot %param +// CHECK:STDOUT: %return.param: @Make.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %return: ref @Make.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/undefined.carbon b/toolchain/check/testdata/function/generic/undefined.carbon index 5771c1a8a6f44..85d87434b0688 100644 --- a/toolchain/check/testdata/function/generic/undefined.carbon +++ b/toolchain/check/testdata/function/generic/undefined.carbon @@ -98,12 +98,12 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_25: type = name_ref T, %T.loc4_12.1 [symbolic = %T.loc4_12.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_31: type = name_ref T, %T.loc4_12.1 [symbolic = %T.loc4_12.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_13: type = param runtime_param -// CHECK:STDOUT: %T.loc4_12.1: type = bind_symbolic_name T, 0, %param.loc4_13 [symbolic = %T.loc4_12.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_23: @Defined.%T.loc4_12.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @Defined.%T.loc4_12.2 (%T) = bind_name x, %param.loc4_23 -// CHECK:STDOUT: %param.loc4_28: @Defined.%T.loc4_12.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Defined.%T.loc4_12.2 (%T) = return_slot %param.loc4_28 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_12.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_12.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @Defined.%T.loc4_12.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @Defined.%T.loc4_12.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @Defined.%T.loc4_12.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Defined.%T.loc4_12.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallDefined.decl: %CallDefined.type = fn_decl @CallDefined [template = constants.%CallDefined] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -112,8 +112,8 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_21.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc8_21.2: type = converted %int.make_type_32, %.loc8_21.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -204,12 +204,12 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_25: type = name_ref T, %T.loc4_12.1 [symbolic = %T.loc4_12.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_31: type = name_ref T, %T.loc4_12.1 [symbolic = %T.loc4_12.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_13: type = param runtime_param -// CHECK:STDOUT: %T.loc4_12.1: type = bind_symbolic_name T, 0, %param.loc4_13 [symbolic = %T.loc4_12.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_23: @Defined.%T.loc4_12.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x.loc4: @Defined.%T.loc4_12.2 (%T) = bind_name x, %param.loc4_23 -// CHECK:STDOUT: %param.loc4_28: @Defined.%T.loc4_12.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %.loc4: ref @Defined.%T.loc4_12.2 (%T) = return_slot %param.loc4_28 +// CHECK:STDOUT: %T.param.loc4: type = param runtime_param +// CHECK:STDOUT: %T.loc4_12.1: type = bind_symbolic_name T, 0, %T.param.loc4 [symbolic = %T.loc4_12.2 (constants.%T)] +// CHECK:STDOUT: %x.param.loc4: @Defined.%T.loc4_12.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x.loc4: @Defined.%T.loc4_12.2 (%T) = bind_name x, %x.param.loc4 +// CHECK:STDOUT: %return.param.loc4: @Defined.%T.loc4_12.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %.loc4: ref @Defined.%T.loc4_12.2 (%T) = return_slot %return.param.loc4 // CHECK:STDOUT: } // CHECK:STDOUT: %CallDefined.decl: %CallDefined.type = fn_decl @CallDefined [template = constants.%CallDefined] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -218,8 +218,8 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_21.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc6_21.2: type = converted %int.make_type_32, %.loc6_21.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Defined.decl.loc10: %Defined.type = fn_decl @Defined [template = constants.%Defined] { // CHECK:STDOUT: %T.patt.loc10: type = symbolic_binding_pattern T, 0 [symbolic = constants.%T.patt.2] @@ -231,12 +231,12 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc10_25: type = name_ref T, %T.loc10 [symbolic = constants.%T] // CHECK:STDOUT: %T.ref.loc10_31: type = name_ref T, %T.loc10 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc10_13: type = param runtime_param -// CHECK:STDOUT: %T.loc10: type = bind_symbolic_name T, 0, %param.loc10_13 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc10_23: %T = param runtime_param0 -// CHECK:STDOUT: %x.loc10: %T = bind_name x, %param.loc10_23 -// CHECK:STDOUT: %param.loc10_28: %T = param runtime_param1 -// CHECK:STDOUT: %return: ref %T = return_slot %param.loc10_28 +// CHECK:STDOUT: %T.param.loc10: type = param runtime_param +// CHECK:STDOUT: %T.loc10: type = bind_symbolic_name T, 0, %T.param.loc10 [symbolic = constants.%T] +// CHECK:STDOUT: %x.param.loc10: %T = param runtime_param0 +// CHECK:STDOUT: %x.loc10: %T = bind_name x, %x.param.loc10 +// CHECK:STDOUT: %return.param.loc10: %T = param runtime_param1 +// CHECK:STDOUT: %return: ref %T = return_slot %return.param.loc10 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -326,12 +326,12 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc4_27: type = name_ref T, %T.loc4_14.1 [symbolic = %T.loc4_14.2 (constants.%T)] // CHECK:STDOUT: %T.ref.loc4_33: type = name_ref T, %T.loc4_14.1 [symbolic = %T.loc4_14.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_15: type = param runtime_param -// CHECK:STDOUT: %T.loc4_14.1: type = bind_symbolic_name T, 0, %param.loc4_15 [symbolic = %T.loc4_14.2 (constants.%T)] -// CHECK:STDOUT: %param.loc4_25: @Undefined.%T.loc4_14.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @Undefined.%T.loc4_14.2 (%T) = bind_name x, %param.loc4_25 -// CHECK:STDOUT: %param.loc4_30: @Undefined.%T.loc4_14.2 (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @Undefined.%T.loc4_14.2 (%T) = return_slot %param.loc4_30 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_14.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @Undefined.%T.loc4_14.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @Undefined.%T.loc4_14.2 (%T) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @Undefined.%T.loc4_14.2 (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @Undefined.%T.loc4_14.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %CallUndefined.decl: %CallUndefined.type = fn_decl @CallUndefined [template = constants.%CallUndefined] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -340,8 +340,8 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_23.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc6_23.2: type = converted %int.make_type_32, %.loc6_23.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/global/class_with_fun.carbon b/toolchain/check/testdata/global/class_with_fun.carbon index 24427eb7d111a..bd1a4b093aa54 100644 --- a/toolchain/check/testdata/global/class_with_fun.carbon +++ b/toolchain/check/testdata/global/class_with_fun.carbon @@ -55,8 +55,8 @@ var a: A = {}; // CHECK:STDOUT: %return.param_patt: %A = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %return: ref %A = return_slot %param +// CHECK:STDOUT: %return.param: %A = param runtime_param0 +// CHECK:STDOUT: %return: ref %A = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %A.ref: type = name_ref A, %A.decl [template = constants.%A] // CHECK:STDOUT: %a.var: ref %A = var a diff --git a/toolchain/check/testdata/global/simple_with_fun.carbon b/toolchain/check/testdata/global/simple_with_fun.carbon index c8f530e588952..538e991bdc146 100644 --- a/toolchain/check/testdata/global/simple_with_fun.carbon +++ b/toolchain/check/testdata/global/simple_with_fun.carbon @@ -54,8 +54,8 @@ var a: i32 = test_a(); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_16.2: type = converted %int.make_type_32, %.loc11_16.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_8.1: type = value_of_initializer %int.make_type_32 [template = i32] diff --git a/toolchain/check/testdata/if/else.carbon b/toolchain/check/testdata/if/else.carbon index 95cf9a1420519..07f0b48a7ceb6 100644 --- a/toolchain/check/testdata/if/else.carbon +++ b/toolchain/check/testdata/if/else.carbon @@ -71,8 +71,8 @@ fn If(b: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc15_10.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc15_10.2: type = converted %bool.make_type, %.loc15_10.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon b/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon index 0d88d1fbffb6a..5d1080e5a55e6 100644 --- a/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon +++ b/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon @@ -94,10 +94,10 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_20.2: type = converted %int.make_type_32, %.loc11_20.1 [template = i32] -// CHECK:STDOUT: %param.loc11_9: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_17 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %If2.decl: %If2.type = fn_decl @If2 [template = constants.%If2] { // CHECK:STDOUT: %b.patt: bool = binding_pattern b @@ -111,10 +111,10 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc22_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc22_20.2: type = converted %int.make_type_32, %.loc22_20.1 [template = i32] -// CHECK:STDOUT: %param.loc22_9: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc22_9 -// CHECK:STDOUT: %param.loc22_17: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc22_17 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %If3.decl: %If3.type = fn_decl @If3 [template = constants.%If3] { // CHECK:STDOUT: %b.patt: bool = binding_pattern b @@ -128,10 +128,10 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc33_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc33_20.2: type = converted %int.make_type_32, %.loc33_20.1 [template = i32] -// CHECK:STDOUT: %param.loc33_9: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc33_9 -// CHECK:STDOUT: %param.loc33_17: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc33_17 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if/fail_scope.carbon b/toolchain/check/testdata/if/fail_scope.carbon index fda13b75d5abe..7d8cd0919d0c0 100644 --- a/toolchain/check/testdata/if/fail_scope.carbon +++ b/toolchain/check/testdata/if/fail_scope.carbon @@ -67,10 +67,10 @@ fn VarScope(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_25.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_25.2: type = converted %int.make_type_32.loc11, %.loc11_25.1 [template = i32] -// CHECK:STDOUT: %param.loc11_14: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_14 -// CHECK:STDOUT: %param.loc11_22: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_22 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if/no_else.carbon b/toolchain/check/testdata/if/no_else.carbon index b6766b8c28261..7a62e3701cbb3 100644 --- a/toolchain/check/testdata/if/no_else.carbon +++ b/toolchain/check/testdata/if/no_else.carbon @@ -64,8 +64,8 @@ fn If(b: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_10.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc14_10.2: type = converted %bool.make_type, %.loc14_10.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if/unreachable_fallthrough.carbon b/toolchain/check/testdata/if/unreachable_fallthrough.carbon index 459b80a5b3380..823c73966c035 100644 --- a/toolchain/check/testdata/if/unreachable_fallthrough.carbon +++ b/toolchain/check/testdata/if/unreachable_fallthrough.carbon @@ -66,10 +66,10 @@ fn If(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param.loc11_8: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_8 -// CHECK:STDOUT: %param.loc11_16: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_16 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/basic.carbon b/toolchain/check/testdata/if_expr/basic.carbon index dc5bdc05b54dc..04c0b187d9453 100644 --- a/toolchain/check/testdata/if_expr/basic.carbon +++ b/toolchain/check/testdata/if_expr/basic.carbon @@ -76,14 +76,14 @@ fn F(b: bool, n: i32, m: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11_34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_34.1: type = value_of_initializer %int.make_type_32.loc11_34 [template = i32] // CHECK:STDOUT: %.loc11_34.2: type = converted %int.make_type_32.loc11_34, %.loc11_34.1 [template = i32] -// CHECK:STDOUT: %param.loc11_7: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_16: i32 = param runtime_param1 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc11_16 -// CHECK:STDOUT: %param.loc11_24: i32 = param runtime_param2 -// CHECK:STDOUT: %m: i32 = bind_name m, %param.loc11_24 -// CHECK:STDOUT: %param.loc11_31: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_31 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %n.param: i32 = param runtime_param1 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param +// CHECK:STDOUT: %m.param: i32 = param runtime_param2 +// CHECK:STDOUT: %m: i32 = bind_name m, %m.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/constant_condition.carbon b/toolchain/check/testdata/if_expr/constant_condition.carbon index fd3482404b27e..0a60f824173de 100644 --- a/toolchain/check/testdata/if_expr/constant_condition.carbon +++ b/toolchain/check/testdata/if_expr/constant_condition.carbon @@ -89,8 +89,8 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -99,8 +99,8 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_11.2: type = converted %int.make_type_32, %.loc12_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -109,8 +109,8 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // 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: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -119,8 +119,8 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc18_11.2: type = converted %int.make_type_32, %.loc18_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Constant.decl: %Constant.type = fn_decl @Constant [template = constants.%Constant] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -129,8 +129,8 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc22_18.1: type = value_of_initializer %int.make_type_32.loc22 [template = i32] // CHECK:STDOUT: %.loc22_18.2: type = converted %int.make_type_32.loc22, %.loc22_18.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %PartiallyConstant.decl: %PartiallyConstant.type = fn_decl @PartiallyConstant [template = constants.%PartiallyConstant] { // CHECK:STDOUT: %t.patt: type = binding_pattern t @@ -141,10 +141,10 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc28: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc28_34.1: type = value_of_initializer %int.make_type_32.loc28 [template = i32] // CHECK:STDOUT: %.loc28_34.2: type = converted %int.make_type_32.loc28, %.loc28_34.1 [template = i32] -// CHECK:STDOUT: %param.loc28_23: type = param runtime_param0 -// CHECK:STDOUT: %t: type = bind_name t, %param.loc28_23 -// CHECK:STDOUT: %param.loc28_31: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc28_31 +// CHECK:STDOUT: %t.param: type = param runtime_param0 +// CHECK:STDOUT: %t: type = bind_name t, %t.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/control_flow.carbon b/toolchain/check/testdata/if_expr/control_flow.carbon index f2ad9fd104c33..1e5e3b4fdcc13 100644 --- a/toolchain/check/testdata/if_expr/control_flow.carbon +++ b/toolchain/check/testdata/if_expr/control_flow.carbon @@ -65,8 +65,8 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -75,8 +75,8 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc12_11.2: type = converted %int.make_type_32, %.loc12_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %b.patt: bool = binding_pattern b @@ -90,10 +90,10 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_18.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_18.2: type = converted %int.make_type_32, %.loc14_18.1 [template = i32] -// CHECK:STDOUT: %param.loc14_7: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc14_7 -// CHECK:STDOUT: %param.loc14_15: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc14_15 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/fail_partial_constant.carbon b/toolchain/check/testdata/if_expr/fail_partial_constant.carbon index c2c7f446548f9..6aba6f060eb1c 100644 --- a/toolchain/check/testdata/if_expr/fail_partial_constant.carbon +++ b/toolchain/check/testdata/if_expr/fail_partial_constant.carbon @@ -82,8 +82,8 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc4_30.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc4_30.2: type = converted %bool.make_type, %.loc4_30.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -155,8 +155,8 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %t.patt: type = binding_pattern t // CHECK:STDOUT: %t.param_patt: type = param_pattern %t.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %t: type = bind_name t, %param +// CHECK:STDOUT: %t.param: type = param runtime_param0 +// CHECK:STDOUT: %t: type = bind_name t, %t.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/nested.carbon b/toolchain/check/testdata/if_expr/nested.carbon index 32b2af91712bd..c7bf019aea6cb 100644 --- a/toolchain/check/testdata/if_expr/nested.carbon +++ b/toolchain/check/testdata/if_expr/nested.carbon @@ -73,14 +73,14 @@ fn F(a: bool, b: bool, c: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_36.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_36.2: type = converted %int.make_type_32, %.loc11_36.1 [template = i32] -// CHECK:STDOUT: %param.loc11_7: bool = param runtime_param0 -// CHECK:STDOUT: %a: bool = bind_name a, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_16: bool = param runtime_param1 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_16 -// CHECK:STDOUT: %param.loc11_25: bool = param runtime_param2 -// CHECK:STDOUT: %c: bool = bind_name c, %param.loc11_25 -// CHECK:STDOUT: %param.loc11_33: i32 = param runtime_param3 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_33 +// CHECK:STDOUT: %a.param: bool = param runtime_param0 +// CHECK:STDOUT: %a: bool = bind_name a, %a.param +// CHECK:STDOUT: %b.param: bool = param runtime_param1 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %c.param: bool = param runtime_param2 +// CHECK:STDOUT: %c: bool = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param3 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/struct.carbon b/toolchain/check/testdata/if_expr/struct.carbon index 7fa25a8648778..81afba0c0bedc 100644 --- a/toolchain/check/testdata/if_expr/struct.carbon +++ b/toolchain/check/testdata/if_expr/struct.carbon @@ -69,8 +69,8 @@ fn F(cond: bool) { // CHECK:STDOUT: %.loc11_23.1: type = value_of_initializer %int.make_type_32.loc11_23 [template = i32] // CHECK:STDOUT: %.loc11_23.2: type = converted %int.make_type_32.loc11_23, %.loc11_23.1 [template = i32] // CHECK:STDOUT: %.loc11_26: type = struct_type {.a: i32, .b: i32} [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param0 -// CHECK:STDOUT: %s: %.2 = bind_name s, %param +// CHECK:STDOUT: %s.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %s: %.2 = bind_name s, %s.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %cond.patt: bool = binding_pattern cond @@ -79,8 +79,8 @@ fn F(cond: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc13_12.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc13_12.2: type = converted %bool.make_type, %.loc13_12.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %cond: bool = bind_name cond, %param +// CHECK:STDOUT: %cond.param: bool = param runtime_param0 +// CHECK:STDOUT: %cond: bool = bind_name cond, %cond.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/compound.carbon b/toolchain/check/testdata/impl/compound.carbon index bd86c7a8066b6..d4b1c91ebce66 100644 --- a/toolchain/check/testdata/impl/compound.carbon +++ b/toolchain/check/testdata/impl/compound.carbon @@ -105,8 +105,8 @@ fn InstanceCallIndirect(p: i32*) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_23.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc21_23.2: type = converted %int.make_type_32, %.loc21_23.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: %InstanceCall.decl: %InstanceCall.type = fn_decl @InstanceCall [template = constants.%InstanceCall] { // CHECK:STDOUT: %n.patt: i32 = binding_pattern n @@ -115,8 +115,8 @@ fn InstanceCallIndirect(p: i32*) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc25_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc25_20.2: type = converted %int.make_type_32, %.loc25_20.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: %NonInstanceCallIndirect.decl: %NonInstanceCallIndirect.type = fn_decl @NonInstanceCallIndirect [template = constants.%NonInstanceCallIndirect] { // CHECK:STDOUT: %p.patt: %.7 = binding_pattern p @@ -126,8 +126,8 @@ fn InstanceCallIndirect(p: i32*) { // CHECK:STDOUT: %.loc29_34.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc29_34.2: type = converted %int.make_type_32, %.loc29_34.1 [template = i32] // CHECK:STDOUT: %.loc29_34.3: type = ptr_type i32 [template = constants.%.7] -// CHECK:STDOUT: %param: %.7 = param runtime_param0 -// CHECK:STDOUT: %p: %.7 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %p: %.7 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: %InstanceCallIndirect.decl: %InstanceCallIndirect.type = fn_decl @InstanceCallIndirect [template = constants.%InstanceCallIndirect] { // CHECK:STDOUT: %p.patt: %.7 = binding_pattern p @@ -137,8 +137,8 @@ fn InstanceCallIndirect(p: i32*) { // CHECK:STDOUT: %.loc33_31.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc33_31.2: type = converted %int.make_type_32, %.loc33_31.1 [template = i32] // CHECK:STDOUT: %.loc33_31.3: type = ptr_type i32 [template = constants.%.7] -// CHECK:STDOUT: %param: %.7 = param runtime_param0 -// CHECK:STDOUT: %p: %.7 = bind_name p, %param +// CHECK:STDOUT: %p.param: %.7 = param runtime_param0 +// CHECK:STDOUT: %p: %.7 = bind_name p, %p.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -153,8 +153,8 @@ fn InstanceCallIndirect(p: i32*) { // CHECK:STDOUT: %Self.ref: %Simple.type = name_ref Self, @Simple.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc13_14.1: type = facet_type_access %Self.ref [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc13_14.2: type = converted %Self.ref, %.loc13_14.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param: @G.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @G.1.%Self (%Self) = bind_name self, %param +// CHECK:STDOUT: %self.param: @G.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @G.1.%Self (%Self) = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: %.4 = assoc_entity element1, %G.decl [template = constants.%.5] // CHECK:STDOUT: @@ -174,8 +174,8 @@ fn InstanceCallIndirect(p: i32*) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc18_14.2: type = converted %int.make_type_32, %.loc18_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %self: i32 = bind_name self, %param +// CHECK:STDOUT: %self.param: i32 = param runtime_param0 +// CHECK:STDOUT: %self: i32 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16_20: = interface_witness (%F.decl, %G.decl) [template = constants.%.6] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/extend_impl.carbon b/toolchain/check/testdata/impl/extend_impl.carbon index 1052d9f8a0eee..d985605853694 100644 --- a/toolchain/check/testdata/impl/extend_impl.carbon +++ b/toolchain/check/testdata/impl/extend_impl.carbon @@ -72,8 +72,8 @@ fn G(c: C) { // CHECK:STDOUT: %c.param_patt: %C = param_pattern %c.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc21: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/fail_call_invalid.carbon b/toolchain/check/testdata/impl/fail_call_invalid.carbon index bef2237158868..c25df3d025c29 100644 --- a/toolchain/check/testdata/impl/fail_call_invalid.carbon +++ b/toolchain/check/testdata/impl/fail_call_invalid.carbon @@ -77,8 +77,8 @@ fn InstanceCall(n: i32) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc22_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc22_20.2: type = converted %int.make_type_32, %.loc22_20.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -91,8 +91,8 @@ fn InstanceCall(n: i32) { // CHECK:STDOUT: %Self.ref: %Simple.type = name_ref Self, @Simple.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_14.1: type = facet_type_access %Self.ref [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_14.2: type = converted %Self.ref, %.loc12_14.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param: @G.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @G.1.%Self (%Self) = bind_name self, %param +// CHECK:STDOUT: %self.param: @G.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @G.1.%Self (%Self) = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12: %.2 = assoc_entity element0, %G.decl [template = constants.%.3] // CHECK:STDOUT: @@ -108,8 +108,8 @@ fn InstanceCall(n: i32) { // CHECK:STDOUT: %self.param_patt: = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Undeclared.ref: = name_ref Undeclared, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %self: = bind_name self, %param +// CHECK:STDOUT: %self.param: = param runtime_param0 +// CHECK:STDOUT: %self: = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15_20: = interface_witness () [template = ] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/fail_extend_impl_forall.carbon b/toolchain/check/testdata/impl/fail_extend_impl_forall.carbon index 0bba438f72c15..dfb5f0f8ff634 100644 --- a/toolchain/check/testdata/impl/fail_extend_impl_forall.carbon +++ b/toolchain/check/testdata/impl/fail_extend_impl_forall.carbon @@ -68,8 +68,8 @@ class C { // CHECK:STDOUT: %T.patt.loc11_28.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_28.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_28.1, runtime_param [symbolic = %T.patt.loc11_28.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_28.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_28.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_28.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_28.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: } @@ -93,8 +93,8 @@ class C { // CHECK:STDOUT: %x.param_patt: @F.1.%T (%T) = param_pattern %x.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @GenericInterface.%T.loc11_28.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param: @F.1.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @F.1.%T (%T) = bind_name x, %param +// CHECK:STDOUT: %x.param: @F.1.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @F.1.%T (%T) = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12_13.1: @GenericInterface.%.loc12_13.2 (%.2) = assoc_entity element0, %F.decl [symbolic = %.loc12_13.3 (constants.%.3)] // CHECK:STDOUT: @@ -121,8 +121,8 @@ class C { // CHECK:STDOUT: %x.param_patt: @F.2.%T (%T) = param_pattern %x.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @impl.%T.loc19_23.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param: @F.2.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @F.2.%T (%T) = bind_name x, %param +// CHECK:STDOUT: %x.param: @F.2.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @F.2.%T (%T) = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19_56.1: = interface_witness (%F.decl) [symbolic = %.loc19_56.2 (constants.%.4)] // CHECK:STDOUT: @@ -141,8 +141,8 @@ class C { // CHECK:STDOUT: %GenericInterface.ref: %GenericInterface.type.1 = name_ref GenericInterface, file.%GenericInterface.decl [template = constants.%GenericInterface] // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc19_23.1 [symbolic = %T.loc19_23.2 (constants.%T)] // CHECK:STDOUT: %GenericInterface.type.loc19_52.1: type = interface_type @GenericInterface, @GenericInterface(constants.%T) [symbolic = %GenericInterface.type.loc19_52.2 (constants.%GenericInterface.type.2)] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc19_23.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc19_23.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc19_23.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc19_23.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = complete_type_witness %.5 [template = constants.%.6] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon b/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon index e8659e9ff3528..689d9fee53da2 100644 --- a/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon +++ b/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon @@ -393,12 +393,12 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc93_44: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc93_44.1: type = value_of_initializer %bool.make_type.loc93_44 [template = bool] // CHECK:STDOUT: %.loc93_44.2: type = converted %bool.make_type.loc93_44, %.loc93_44.1 [template = bool] -// CHECK:STDOUT: %param.loc93_24: bool = param runtime_param0 -// CHECK:STDOUT: %self: bool = bind_name self, %param.loc93_24 -// CHECK:STDOUT: %param.loc93_33: bool = param runtime_param1 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc93_33 -// CHECK:STDOUT: %param.loc93_41: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc93_41 +// CHECK:STDOUT: %self.param: bool = param runtime_param0 +// CHECK:STDOUT: %self: bool = bind_name self, %self.param +// CHECK:STDOUT: %b.param: bool = param runtime_param1 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc93: %.6 = assoc_entity element0, %F.decl [template = constants.%.7] // CHECK:STDOUT: @@ -434,10 +434,10 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %.loc188_45.1: type = facet_type_access %Self.ref.loc188_45 [symbolic = %Self (constants.%Self.3)] // CHECK:STDOUT: %.loc188_45.2: type = converted %Self.ref.loc188_45, %.loc188_45.1 [symbolic = %Self (constants.%Self.3)] // CHECK:STDOUT: %.loc188_52.2: type = array_type %.loc188_51, %Self.3 [symbolic = %.loc188_52.1 (constants.%.13)] -// CHECK:STDOUT: %param.loc188_9: @F.13.%.loc188_38.1 (%.11) = param runtime_param0 -// CHECK:STDOUT: %x: @F.13.%.loc188_38.1 (%.11) = bind_name x, %param.loc188_9 -// CHECK:STDOUT: %param.loc188_41: @F.13.%.loc188_52.1 (%.13) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.13.%.loc188_52.1 (%.13) = return_slot %param.loc188_41 +// CHECK:STDOUT: %x.param: @F.13.%.loc188_38.1 (%.11) = param runtime_param0 +// CHECK:STDOUT: %x: @F.13.%.loc188_38.1 (%.11) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @F.13.%.loc188_52.1 (%.13) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.13.%.loc188_52.1 (%.13) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc188: %.14 = assoc_entity element0, %F.decl [template = constants.%.15] // CHECK:STDOUT: @@ -481,8 +481,8 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc62_13.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc62_13.2: type = converted %bool.make_type, %.loc62_13.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc54: = interface_witness () [template = ] // CHECK:STDOUT: @@ -497,8 +497,8 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %self.param_patt: %FExtraImplicitParam = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [template = constants.%FExtraImplicitParam] -// CHECK:STDOUT: %param: %FExtraImplicitParam = param runtime_param0 -// CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %param +// CHECK:STDOUT: %self.param: %FExtraImplicitParam = param runtime_param0 +// CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc67: = interface_witness () [template = ] // CHECK:STDOUT: @@ -515,8 +515,8 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc89_15.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc89_15.2: type = converted %bool.make_type, %.loc89_15.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc81: = interface_witness () [template = ] // CHECK:STDOUT: @@ -538,10 +538,10 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc104_27: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc104_27.1: type = value_of_initializer %bool.make_type.loc104_27 [template = bool] // CHECK:STDOUT: %.loc104_27.2: type = converted %bool.make_type.loc104_27, %.loc104_27.1 [template = bool] -// CHECK:STDOUT: %param.loc104_14: bool = param runtime_param0 -// CHECK:STDOUT: %self: bool = bind_name self, %param.loc104_14 -// CHECK:STDOUT: %param.loc104_24: bool = param runtime_param1 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc104_24 +// CHECK:STDOUT: %self.param: bool = param runtime_param0 +// CHECK:STDOUT: %self: bool = bind_name self, %self.param +// CHECK:STDOUT: %return.param: bool = param runtime_param1 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc96: = interface_witness () [template = ] // CHECK:STDOUT: @@ -563,10 +563,10 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc117_22: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc117_22.1: type = value_of_initializer %bool.make_type.loc117_22 [template = bool] // CHECK:STDOUT: %.loc117_22.2: type = converted %bool.make_type.loc117_22, %.loc117_22.1 [template = bool] -// CHECK:STDOUT: %param.loc117_11: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc117_11 -// CHECK:STDOUT: %param.loc117_19: bool = param runtime_param1 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc117_19 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param1 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc109: = interface_witness () [template = ] // CHECK:STDOUT: @@ -588,10 +588,10 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc130_25: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc130_25.1: type = value_of_initializer %bool.make_type.loc130_25 [template = bool] // CHECK:STDOUT: %.loc130_25.2: type = converted %bool.make_type.loc130_25, %.loc130_25.1 [template = bool] -// CHECK:STDOUT: %param.loc130_14: bool = param runtime_param0 -// CHECK:STDOUT: %self: bool = bind_name self, %param.loc130_14 -// CHECK:STDOUT: %param.loc130_23: bool = param runtime_param1 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc130_23 +// CHECK:STDOUT: %self.param: bool = param runtime_param0 +// CHECK:STDOUT: %self: bool = bind_name self, %self.param +// CHECK:STDOUT: %b.param: bool = param runtime_param1 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc122: = interface_witness () [template = ] // CHECK:STDOUT: @@ -616,12 +616,12 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc143_34: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc143_34.1: type = value_of_initializer %bool.make_type.loc143_34 [template = bool] // CHECK:STDOUT: %.loc143_34.2: type = converted %bool.make_type.loc143_34, %.loc143_34.1 [template = bool] -// CHECK:STDOUT: %param.loc143_14: bool = param runtime_param0 -// CHECK:STDOUT: %self: bool = bind_name self, %param.loc143_14 -// CHECK:STDOUT: %param.loc143_23: %FDifferentParamType = param runtime_param1 -// CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %param.loc143_23 -// CHECK:STDOUT: %param.loc143_31: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc143_31 +// CHECK:STDOUT: %self.param: bool = param runtime_param0 +// CHECK:STDOUT: %self: bool = bind_name self, %self.param +// CHECK:STDOUT: %b.param: %FDifferentParamType = param runtime_param1 +// CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc135: = interface_witness () [template = ] // CHECK:STDOUT: @@ -646,12 +646,12 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc156_34: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc156_34.1: type = value_of_initializer %bool.make_type.loc156_34 [template = bool] // CHECK:STDOUT: %.loc156_34.2: type = converted %bool.make_type.loc156_34, %.loc156_34.1 [template = bool] -// CHECK:STDOUT: %param.loc156_14: %FDifferentImplicitParamType = param runtime_param0 -// CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %param.loc156_14 -// CHECK:STDOUT: %param.loc156_23: bool = param runtime_param1 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc156_23 -// CHECK:STDOUT: %param.loc156_31: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc156_31 +// CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = param runtime_param0 +// CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %self.param +// CHECK:STDOUT: %b.param: bool = param runtime_param1 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc148: = interface_witness () [template = ] // CHECK:STDOUT: @@ -676,12 +676,12 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %.loc169_25.1: type = value_of_initializer %bool.make_type.loc169_25 [template = bool] // CHECK:STDOUT: %.loc169_25.2: type = converted %bool.make_type.loc169_25, %.loc169_25.1 [template = bool] // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [template = constants.%FDifferentReturnType] -// CHECK:STDOUT: %param.loc169_14: bool = param runtime_param0 -// CHECK:STDOUT: %self: bool = bind_name self, %param.loc169_14 -// CHECK:STDOUT: %param.loc169_23: bool = param runtime_param1 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc169_23 -// CHECK:STDOUT: %param.loc169_31: %FDifferentReturnType = param runtime_param2 -// CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %param.loc169_31 +// CHECK:STDOUT: %self.param: bool = param runtime_param0 +// CHECK:STDOUT: %self: bool = bind_name self, %self.param +// CHECK:STDOUT: %b.param: bool = param runtime_param1 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %FDifferentReturnType = param runtime_param2 +// CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc161: = interface_witness () [template = ] // CHECK:STDOUT: @@ -708,12 +708,12 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %bool.make_type.loc183_38: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc183_38.1: type = value_of_initializer %bool.make_type.loc183_38 [template = bool] // CHECK:STDOUT: %.loc183_38.2: type = converted %bool.make_type.loc183_38, %.loc183_38.1 [template = bool] -// CHECK:STDOUT: %param.loc183_14: bool = param runtime_param0 -// CHECK:STDOUT: %self: bool = bind_name self, %param.loc183_14 -// CHECK:STDOUT: %param.loc183_27: bool = param runtime_param1 -// CHECK:STDOUT: %not_b: bool = bind_name not_b, %param.loc183_27 -// CHECK:STDOUT: %param.loc183_35: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc183_35 +// CHECK:STDOUT: %self.param: bool = param runtime_param0 +// CHECK:STDOUT: %self: bool = bind_name self, %self.param +// CHECK:STDOUT: %not_b.param: bool = param runtime_param1 +// CHECK:STDOUT: %not_b: bool = bind_name not_b, %not_b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc175: = interface_witness () [template = ] // CHECK:STDOUT: @@ -743,10 +743,10 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %SelfNestedBadParam.ref.loc200_60: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam] // CHECK:STDOUT: %.loc200_80: i32 = int_literal 4 [template = constants.%.12] // CHECK:STDOUT: %.loc200_81: type = array_type %.loc200_80, %SelfNestedBadParam [template = constants.%.19] -// CHECK:STDOUT: %param.loc200_11: %.18 = param runtime_param0 -// CHECK:STDOUT: %x: %.18 = bind_name x, %param.loc200_11 -// CHECK:STDOUT: %param.loc200_56: %.19 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.19 = return_slot %param.loc200_56 +// CHECK:STDOUT: %x.param: %.18 = param runtime_param0 +// CHECK:STDOUT: %x: %.18 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %.19 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.19 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc192: = interface_witness () [template = ] // CHECK:STDOUT: @@ -774,10 +774,10 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam] // CHECK:STDOUT: %.loc212_105: i32 = int_literal 4 [template = constants.%.12] // CHECK:STDOUT: %.loc212_106: type = array_type %.loc212_105, %SelfNestedBadParam [template = constants.%.19] -// CHECK:STDOUT: %param.loc212_11: %.24 = param runtime_param0 -// CHECK:STDOUT: %x: %.24 = bind_name x, %param.loc212_11 -// CHECK:STDOUT: %param.loc212_81: %.19 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.19 = return_slot %param.loc212_81 +// CHECK:STDOUT: %x.param: %.24 = param runtime_param0 +// CHECK:STDOUT: %x: %.24 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %.19 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.19 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc205: = interface_witness () [template = ] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/impl_forall.carbon b/toolchain/check/testdata/impl/impl_forall.carbon index a3b113da4ca31..e50b368761e01 100644 --- a/toolchain/check/testdata/impl/impl_forall.carbon +++ b/toolchain/check/testdata/impl/impl_forall.carbon @@ -59,8 +59,8 @@ impl forall [T:! type] T as Simple { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc15_14.1 [symbolic = %T.loc15_14.2 (constants.%T)] // CHECK:STDOUT: %Simple.ref: type = name_ref Simple, file.%Simple.decl [template = constants.%Simple.type] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc15_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc15_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc15_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc15_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/alias.carbon b/toolchain/check/testdata/impl/lookup/alias.carbon index dba0cf8d17066..b1a014e416d36 100644 --- a/toolchain/check/testdata/impl/lookup/alias.carbon +++ b/toolchain/check/testdata/impl/lookup/alias.carbon @@ -78,8 +78,8 @@ fn G(c: C) { // CHECK:STDOUT: %c.param_patt: %C = param_pattern %c.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc23: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/fail_alias_impl_not_found.carbon b/toolchain/check/testdata/impl/lookup/fail_alias_impl_not_found.carbon index a41a3835fa740..2b188d97d1795 100644 --- a/toolchain/check/testdata/impl/lookup/fail_alias_impl_not_found.carbon +++ b/toolchain/check/testdata/impl/lookup/fail_alias_impl_not_found.carbon @@ -74,8 +74,8 @@ fn F(c: C) { // CHECK:STDOUT: %c.param_patt: %C = param_pattern %c.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc19: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/fail_todo_undefined_impl.carbon b/toolchain/check/testdata/impl/lookup/fail_todo_undefined_impl.carbon index 0a20bdcfdc236..7857abf8bda6f 100644 --- a/toolchain/check/testdata/impl/lookup/fail_todo_undefined_impl.carbon +++ b/toolchain/check/testdata/impl/lookup/fail_todo_undefined_impl.carbon @@ -83,8 +83,8 @@ impl C as I { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc19_11.2: type = converted %int.make_type_32, %.loc19_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.2 [template] {} { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] diff --git a/toolchain/check/testdata/impl/lookup/generic.carbon b/toolchain/check/testdata/impl/lookup/generic.carbon index cc260a52a454a..9c1613b40ecc8 100644 --- a/toolchain/check/testdata/impl/lookup/generic.carbon +++ b/toolchain/check/testdata/impl/lookup/generic.carbon @@ -172,8 +172,8 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc8_14.1 [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: %HasF.ref: type = name_ref HasF, file.%HasF.decl [template = constants.%HasF.type] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %x.patt: %.5 = binding_pattern x @@ -181,8 +181,8 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc12_10.1: %.5 = struct_literal () // CHECK:STDOUT: %.loc12_10.2: type = converted %.loc12_10.1, constants.%.5 [template = constants.%.5] -// CHECK:STDOUT: %param: %.5 = param runtime_param0 -// CHECK:STDOUT: %x: %.5 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %x: %.5 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -327,8 +327,8 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc8_14.1 [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: %HasF.ref: type = name_ref HasF, file.%HasF.decl [template = constants.%HasF.type] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %x.patt: %.5 = binding_pattern x @@ -340,10 +340,10 @@ fn G(x: A) { // CHECK:STDOUT: %.loc12_10.2: type = converted %.loc12_10.1, constants.%.5 [template = constants.%.5] // CHECK:STDOUT: %.loc12_17.1: %.5 = struct_literal () // CHECK:STDOUT: %.loc12_17.2: type = converted %.loc12_17.1, constants.%.5 [template = constants.%.5] -// CHECK:STDOUT: %param.loc12_7: %.5 = param runtime_param0 -// CHECK:STDOUT: %x: %.5 = bind_name x, %param.loc12_7 -// CHECK:STDOUT: %param.loc12_13: %.5 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.5 = return_slot %param.loc12_13 +// CHECK:STDOUT: %x.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %x: %.5 = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %.5 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.5 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -361,10 +361,10 @@ fn G(x: A) { // CHECK:STDOUT: %Self.ref.loc5_25: %HasF.type = name_ref Self, @HasF.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc5_25.1: type = facet_type_access %Self.ref.loc5_25 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc5_25.2: type = converted %Self.ref.loc5_25, %.loc5_25.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc5_12: @F.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %param.loc5_12 -// CHECK:STDOUT: %param.loc5_22: @F.1.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.1.%Self (%Self) = return_slot %param.loc5_22 +// CHECK:STDOUT: %self.param: @F.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @F.1.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.1.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc5: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: @@ -392,10 +392,10 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, @impl.%T.ref [symbolic = %T (constants.%T)] // CHECK:STDOUT: %T.ref: type = name_ref T, @impl.%T.loc8_14.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param.loc9_12: @F.2.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %self: @F.2.%T (%T) = bind_name self, %param.loc9_12 -// CHECK:STDOUT: %param.loc9_22: @F.2.%T (%T) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.2.%T (%T) = return_slot %param.loc9_22 +// CHECK:STDOUT: %self.param: @F.2.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %self: @F.2.%T (%T) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @F.2.%T (%T) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.2.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc8_34.1: = interface_witness (%F.decl) [symbolic = %.loc8_34.2 (constants.%.4)] // CHECK:STDOUT: @@ -539,8 +539,8 @@ fn G(x: A) { // CHECK:STDOUT: %T.patt.loc8_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc8_9.1, runtime_param [symbolic = %T.patt.loc8_9.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl [template] { // CHECK:STDOUT: %T.patt.loc10_14.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc10_14.2 (constants.%T.patt.2)] @@ -550,8 +550,8 @@ fn G(x: A) { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc10_14.1 [symbolic = %T.loc10_14.2 (constants.%T)] // CHECK:STDOUT: %C.loc10_25.1: type = class_type @C, @C(constants.%T) [symbolic = %C.loc10_25.2 (constants.%C.2)] // CHECK:STDOUT: %HasF.ref: type = name_ref HasF, file.%HasF.decl [template = constants.%HasF.type] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc10_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc10_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc10_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc10_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %x.patt: %C.3 = binding_pattern x @@ -561,8 +561,8 @@ fn G(x: A) { // CHECK:STDOUT: %.loc14_12: %.4 = struct_literal () // CHECK:STDOUT: %.loc14_10: type = converted %.loc14_12, constants.%.4 [template = constants.%.4] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] -// CHECK:STDOUT: %param: %C.3 = param runtime_param0 -// CHECK:STDOUT: %x: %C.3 = bind_name x, %param +// CHECK:STDOUT: %x.param: %C.3 = param runtime_param0 +// CHECK:STDOUT: %x: %C.3 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -747,8 +747,8 @@ fn G(x: A) { // CHECK:STDOUT: %T.patt.loc4_16.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_16.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_16.1, runtime_param [symbolic = %T.patt.loc4_16.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_16.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_16.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_16.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_16.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl [template] { // CHECK:STDOUT: %T.patt.loc8_14.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_14.2 (constants.%T.patt.2)] @@ -759,8 +759,8 @@ fn G(x: A) { // CHECK:STDOUT: %HasF.ref: %HasF.type.1 = name_ref HasF, file.%HasF.decl [template = constants.%HasF] // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc8_14.1 [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: %HasF.type.loc8_34.1: type = interface_type @HasF, @HasF(constants.%T) [symbolic = %HasF.type.loc8_34.2 (constants.%HasF.type.2)] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %x.patt: %.4 = binding_pattern x @@ -768,8 +768,8 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc12_10.1: %.4 = struct_literal () // CHECK:STDOUT: %.loc12_10.2: type = converted %.loc12_10.1, constants.%.4 [template = constants.%.4] -// CHECK:STDOUT: %param: %.4 = param runtime_param0 -// CHECK:STDOUT: %x: %.4 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %x: %.4 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -971,10 +971,10 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc9_14.1 [symbolic = %T.loc9_14.2 (constants.%T)] // CHECK:STDOUT: %HasF.ref: type = name_ref HasF, file.%HasF.decl [template = constants.%HasF.type] -// CHECK:STDOUT: %param.loc9_15: type = param runtime_param -// CHECK:STDOUT: %T.loc9_14.1: type = bind_symbolic_name T, 0, %param.loc9_15 [symbolic = %T.loc9_14.2 (constants.%T)] -// CHECK:STDOUT: %param.loc9_25: type = param runtime_param -// CHECK:STDOUT: %U.loc9_24.1: type = bind_symbolic_name U, 1, %param.loc9_25 [symbolic = %U.loc9_24.2 (constants.%U)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc9_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc9_14.2 (constants.%T)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc9_24.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc9_24.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %x.patt: %.5 = binding_pattern x @@ -982,8 +982,8 @@ fn G(x: A) { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc13_10.1: %.5 = struct_literal () // CHECK:STDOUT: %.loc13_10.2: type = converted %.loc13_10.1, constants.%.5 [template = constants.%.5] -// CHECK:STDOUT: %param: %.5 = param runtime_param0 -// CHECK:STDOUT: %x: %.5 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %x: %.5 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1124,8 +1124,8 @@ fn G(x: A) { // CHECK:STDOUT: %T.patt.loc4_16.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_16.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_16.1, runtime_param [symbolic = %T.patt.loc4_16.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_16.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_16.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_16.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_16.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl [template] { // CHECK:STDOUT: %T.patt.loc8_14.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_14.2 (constants.%T.patt.2)] @@ -1135,8 +1135,8 @@ fn G(x: A) { // CHECK:STDOUT: %HasF.ref: %HasF.type.1 = name_ref HasF, file.%HasF.decl [template = constants.%HasF] // CHECK:STDOUT: %T.ref.loc8_34: type = name_ref T, %T.loc8_14.1 [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: %HasF.type.loc8_33.1: type = interface_type @HasF, @HasF(constants.%T) [symbolic = %HasF.type.loc8_33.2 (constants.%HasF.type.2)] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %A.decl: type = class_decl @A [template = constants.%A] {} {} // CHECK:STDOUT: %B.decl: type = class_decl @B [template = constants.%B] {} {} @@ -1145,8 +1145,8 @@ fn G(x: A) { // CHECK:STDOUT: %x.param_patt: %A = param_pattern %x.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %x: %A = bind_name x, %param +// CHECK:STDOUT: %x.param: %A = param runtime_param0 +// CHECK:STDOUT: %x: %A = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/import.carbon b/toolchain/check/testdata/impl/lookup/import.carbon index 10f6cfc991d36..5b980a067ff88 100644 --- a/toolchain/check/testdata/impl/lookup/import.carbon +++ b/toolchain/check/testdata/impl/lookup/import.carbon @@ -180,8 +180,8 @@ fn G(c: Impl.C) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Impl.ref.loc4: = name_ref Impl, imports.%Impl [template = imports.%Impl] // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.8 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/instance_method.carbon b/toolchain/check/testdata/impl/lookup/instance_method.carbon index 586416a8996c5..33fd3e21eb3a5 100644 --- a/toolchain/check/testdata/impl/lookup/instance_method.carbon +++ b/toolchain/check/testdata/impl/lookup/instance_method.carbon @@ -83,10 +83,10 @@ fn F(c: C) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_15.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc23_15.2: type = converted %int.make_type_32, %.loc23_15.1 [template = i32] -// CHECK:STDOUT: %param.loc23_7: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param.loc23_7 -// CHECK:STDOUT: %param.loc23_12: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc23_12 +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -104,10 +104,10 @@ fn F(c: C) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_25.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_25.2: type = converted %int.make_type_32, %.loc14_25.1 [template = i32] -// CHECK:STDOUT: %param.loc14_12: @F.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %param.loc14_12 -// CHECK:STDOUT: %param.loc14_22: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc14_22 +// CHECK:STDOUT: %self.param: @F.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: @@ -128,10 +128,10 @@ fn F(c: C) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_27.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc19_27.2: type = converted %int.make_type_32, %.loc19_27.1 [template = i32] -// CHECK:STDOUT: %param.loc19_14: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc19_14 -// CHECK:STDOUT: %param.loc19_24: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc19_24 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc18: = interface_witness (%F.decl) [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/no_prelude/impl_forall.carbon b/toolchain/check/testdata/impl/lookup/no_prelude/impl_forall.carbon index 3aac327e94629..2b4d0be18a7d5 100644 --- a/toolchain/check/testdata/impl/lookup/no_prelude/impl_forall.carbon +++ b/toolchain/check/testdata/impl/lookup/no_prelude/impl_forall.carbon @@ -117,15 +117,15 @@ fn TestSpecific(a: A({})) -> {} { // CHECK:STDOUT: %T.patt.loc2_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc2_9.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc2_9.1, runtime_param [symbolic = %T.patt.loc2_9.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc2_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc2_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc2_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc2_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %I.decl: %I.type.1 = interface_decl @I [template = constants.%I] { // CHECK:STDOUT: %U.patt.loc6_13.1: type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc6_13.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc6_13.1, runtime_param [symbolic = %U.patt.loc6_13.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc6_13.1: type = bind_symbolic_name U, 0, %param [symbolic = %U.loc6_13.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc6_13.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc6_13.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl [template] { // CHECK:STDOUT: %V.patt.loc10_14.1: type = symbolic_binding_pattern V, 0 [symbolic = %V.patt.loc10_14.2 (constants.%V.patt)] @@ -137,8 +137,8 @@ fn TestSpecific(a: A({})) -> {} { // CHECK:STDOUT: %I.ref: %I.type.1 = name_ref I, file.%I.decl [template = constants.%I] // CHECK:STDOUT: %V.ref.loc10_34: type = name_ref V, %V.loc10_14.1 [symbolic = %V.loc10_14.2 (constants.%V)] // CHECK:STDOUT: %I.type.loc10_33.1: type = interface_type @I, @I(constants.%V) [symbolic = %I.type.loc10_33.2 (constants.%I.type.3)] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %V.loc10_14.1: type = bind_symbolic_name V, 0, %param [symbolic = %V.loc10_14.2 (constants.%V)] +// CHECK:STDOUT: %V.param: type = param runtime_param +// CHECK:STDOUT: %V.loc10_14.1: type = bind_symbolic_name V, 0, %V.param [symbolic = %V.loc10_14.2 (constants.%V)] // CHECK:STDOUT: } // CHECK:STDOUT: %TestGeneric.decl: %TestGeneric.type = fn_decl @TestGeneric [template = constants.%TestGeneric] { // CHECK:STDOUT: %W.patt.loc16_16.1: type = symbolic_binding_pattern W, 0 [symbolic = %W.patt.loc16_16.2 (constants.%W.patt)] @@ -152,12 +152,12 @@ fn TestSpecific(a: A({})) -> {} { // CHECK:STDOUT: %W.ref.loc16_31: type = name_ref W, %W.loc16_16.1 [symbolic = %W.loc16_16.2 (constants.%W)] // CHECK:STDOUT: %A.loc16_30.1: type = class_type @A, @A(constants.%W) [symbolic = %A.loc16_30.2 (constants.%A.4)] // CHECK:STDOUT: %W.ref.loc16_38: type = name_ref W, %W.loc16_16.1 [symbolic = %W.loc16_16.2 (constants.%W)] -// CHECK:STDOUT: %param.loc16_17: type = param runtime_param -// CHECK:STDOUT: %W.loc16_16.1: type = bind_symbolic_name W, 0, %param.loc16_17 [symbolic = %W.loc16_16.2 (constants.%W)] -// CHECK:STDOUT: %param.loc16_27: @TestGeneric.%A.loc16_30.2 (%A.4) = param runtime_param0 -// CHECK:STDOUT: %a: @TestGeneric.%A.loc16_30.2 (%A.4) = bind_name a, %param.loc16_27 -// CHECK:STDOUT: %param.loc16_35: @TestGeneric.%W.loc16_16.2 (%W) = param runtime_param1 -// CHECK:STDOUT: %return: ref @TestGeneric.%W.loc16_16.2 (%W) = return_slot %param.loc16_35 +// CHECK:STDOUT: %W.param: type = param runtime_param +// CHECK:STDOUT: %W.loc16_16.1: type = bind_symbolic_name W, 0, %W.param [symbolic = %W.loc16_16.2 (constants.%W)] +// CHECK:STDOUT: %a.param: @TestGeneric.%A.loc16_30.2 (%A.4) = param runtime_param0 +// CHECK:STDOUT: %a: @TestGeneric.%A.loc16_30.2 (%A.4) = bind_name a, %a.param +// CHECK:STDOUT: %return.param: @TestGeneric.%W.loc16_16.2 (%W) = param runtime_param1 +// CHECK:STDOUT: %return: ref @TestGeneric.%W.loc16_16.2 (%W) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestSpecific.decl: %TestSpecific.type = fn_decl @TestSpecific [template = constants.%TestSpecific] { // CHECK:STDOUT: %a.patt: %A.5 = binding_pattern a @@ -171,10 +171,10 @@ fn TestSpecific(a: A({})) -> {} { // CHECK:STDOUT: %A: type = class_type @A, @A(constants.%.21) [template = constants.%A.5] // CHECK:STDOUT: %.loc20_31.1: %.21 = struct_literal () // CHECK:STDOUT: %.loc20_31.2: type = converted %.loc20_31.1, constants.%.21 [template = constants.%.21] -// CHECK:STDOUT: %param.loc20_18: %A.5 = param runtime_param0 -// CHECK:STDOUT: %a: %A.5 = bind_name a, %param.loc20_18 -// CHECK:STDOUT: %param.loc20_27: %.21 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.21 = return_slot %param.loc20_27 +// CHECK:STDOUT: %a.param: %A.5 = param runtime_param0 +// CHECK:STDOUT: %a: %A.5 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %.21 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.21 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -203,10 +203,10 @@ fn TestSpecific(a: A({})) -> {} { // CHECK:STDOUT: %.loc7_14.2: type = facet_type_access %Self.ref [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc7_14.3: type = converted %Self.ref, %.loc7_14.2 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %U.ref: type = name_ref U, @I.%U.loc6_13.1 [symbolic = %U (constants.%U)] -// CHECK:STDOUT: %param.loc7_12: @F.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %param.loc7_12 -// CHECK:STDOUT: %param.loc7_22: @F.1.%U (%U) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.1.%U (%U) = return_slot %param.loc7_22 +// CHECK:STDOUT: %self.param: @F.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @F.1.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @F.1.%U (%U) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.1.%U (%U) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc7_26.1: @I.%.loc7_26.2 (%.5) = assoc_entity element0, %F.decl [symbolic = %.loc7_26.3 (constants.%.6)] // CHECK:STDOUT: @@ -237,10 +237,10 @@ fn TestSpecific(a: A({})) -> {} { // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, @impl.%A.loc10_25.1 [symbolic = %A (constants.%A.3)] // CHECK:STDOUT: %V.ref: type = name_ref V, @impl.%V.loc10_14.1 [symbolic = %V (constants.%V)] -// CHECK:STDOUT: %param.loc11_12: @F.2.%A (%A.3) = param runtime_param0 -// CHECK:STDOUT: %self: @F.2.%A (%A.3) = bind_name self, %param.loc11_12 -// CHECK:STDOUT: %param.loc11_22: @F.2.%V (%V) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.2.%V (%V) = return_slot %param.loc11_22 +// CHECK:STDOUT: %self.param: @F.2.%A (%A.3) = param runtime_param0 +// CHECK:STDOUT: %self: @F.2.%A (%A.3) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @F.2.%V (%V) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.2.%V (%V) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc10_37.1: = interface_witness (%F.decl) [symbolic = %.loc10_37.2 (constants.%.9)] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/lookup/no_prelude/import.carbon b/toolchain/check/testdata/impl/lookup/no_prelude/import.carbon index 9abfcdf61928f..9391c01c0b695 100644 --- a/toolchain/check/testdata/impl/lookup/no_prelude/import.carbon +++ b/toolchain/check/testdata/impl/lookup/no_prelude/import.carbon @@ -153,8 +153,8 @@ fn G(c: Impl.C) { // CHECK:STDOUT: } { // CHECK:STDOUT: %Impl.ref.loc4: = name_ref Impl, imports.%Impl [template = imports.%Impl] // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.8 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %c: %C = bind_name c, %param +// CHECK:STDOUT: %c.param: %C = param runtime_param0 +// CHECK:STDOUT: %c: %C = bind_name c, %c.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon b/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon index c184bce28afbc..38fe302d289f0 100644 --- a/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon +++ b/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon @@ -114,8 +114,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc11_21.1: type = facet_type_access %T.ref [symbolic = %T.loc11_14.2 (constants.%T.1)] // CHECK:STDOUT: %.loc11_21.2: type = converted %T.ref, %.loc11_21.1 [symbolic = %T.loc11_14.2 (constants.%T.1)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %T.loc11_14.1: %I.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_14.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: %I.type = param runtime_param +// CHECK:STDOUT: %T.loc11_14.1: %I.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_14.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.2 [template] { // CHECK:STDOUT: %T.patt.loc12_14.1: %J.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc12_14.2 (constants.%T.patt.2)] @@ -126,8 +126,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc12_21.1: type = facet_type_access %T.ref [symbolic = %T.loc12_14.2 (constants.%T.2)] // CHECK:STDOUT: %.loc12_21.2: type = converted %T.ref, %.loc12_21.1 [symbolic = %T.loc12_14.2 (constants.%T.2)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %J.type = param runtime_param -// CHECK:STDOUT: %T.loc12_14.1: %J.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc12_14.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %J.type = param runtime_param +// CHECK:STDOUT: %T.loc12_14.1: %J.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc12_14.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.3 [template] { // CHECK:STDOUT: %T.patt.loc13_14.1: %K.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc13_14.2 (constants.%T.patt.3)] @@ -138,8 +138,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc13_21.1: type = facet_type_access %T.ref [symbolic = %T.loc13_14.2 (constants.%T.3)] // CHECK:STDOUT: %.loc13_21.2: type = converted %T.ref, %.loc13_21.1 [symbolic = %T.loc13_14.2 (constants.%T.3)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %K.type = param runtime_param -// CHECK:STDOUT: %T.loc13_14.1: %K.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc13_14.2 (constants.%T.3)] +// CHECK:STDOUT: %T.param: %K.type = param runtime_param +// CHECK:STDOUT: %T.loc13_14.1: %K.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc13_14.2 (constants.%T.3)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.4 [template] { // CHECK:STDOUT: %T.patt.loc14_14.1: %L.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc14_14.2 (constants.%T.patt.4)] @@ -150,8 +150,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc14_21.1: type = facet_type_access %T.ref [symbolic = %T.loc14_14.2 (constants.%T.4)] // CHECK:STDOUT: %.loc14_21.2: type = converted %T.ref, %.loc14_21.1 [symbolic = %T.loc14_14.2 (constants.%T.4)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %L.type = param runtime_param -// CHECK:STDOUT: %T.loc14_14.1: %L.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc14_14.2 (constants.%T.4)] +// CHECK:STDOUT: %T.param: %L.type = param runtime_param +// CHECK:STDOUT: %T.loc14_14.1: %L.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc14_14.2 (constants.%T.4)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.5 [template] { // CHECK:STDOUT: %T.patt.loc18_14.1: %I.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc18_14.2 (constants.%T.patt.5)] @@ -162,8 +162,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc18_21.1: type = facet_type_access %T.ref [symbolic = %T.loc18_14.2 (constants.%T.1)] // CHECK:STDOUT: %.loc18_21.2: type = converted %T.ref, %.loc18_21.1 [symbolic = %T.loc18_14.2 (constants.%T.1)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %T.loc18_14.1: %I.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc18_14.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: %I.type = param runtime_param +// CHECK:STDOUT: %T.loc18_14.1: %I.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc18_14.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.6 [template] { // CHECK:STDOUT: %T.patt.loc19_14.1: %J.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc19_14.2 (constants.%T.patt.6)] @@ -174,8 +174,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc19_21.1: type = facet_type_access %T.ref [symbolic = %T.loc19_14.2 (constants.%T.2)] // CHECK:STDOUT: %.loc19_21.2: type = converted %T.ref, %.loc19_21.1 [symbolic = %T.loc19_14.2 (constants.%T.2)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %J.type = param runtime_param -// CHECK:STDOUT: %T.loc19_14.1: %J.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc19_14.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %J.type = param runtime_param +// CHECK:STDOUT: %T.loc19_14.1: %J.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc19_14.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.7 [template] { // CHECK:STDOUT: %T.patt.loc20_14.1: %K.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc20_14.2 (constants.%T.patt.7)] @@ -186,8 +186,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc20_21.1: type = facet_type_access %T.ref [symbolic = %T.loc20_14.2 (constants.%T.3)] // CHECK:STDOUT: %.loc20_21.2: type = converted %T.ref, %.loc20_21.1 [symbolic = %T.loc20_14.2 (constants.%T.3)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %K.type = param runtime_param -// CHECK:STDOUT: %T.loc20_14.1: %K.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc20_14.2 (constants.%T.3)] +// CHECK:STDOUT: %T.param: %K.type = param runtime_param +// CHECK:STDOUT: %T.loc20_14.1: %K.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc20_14.2 (constants.%T.3)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.8 [template] { // CHECK:STDOUT: %T.patt.loc21_14.1: %L.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc21_14.2 (constants.%T.patt.8)] @@ -198,8 +198,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc21_21.1: type = facet_type_access %T.ref [symbolic = %T.loc21_14.2 (constants.%T.4)] // CHECK:STDOUT: %.loc21_21.2: type = converted %T.ref, %.loc21_21.1 [symbolic = %T.loc21_14.2 (constants.%T.4)] // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %L.type = param runtime_param -// CHECK:STDOUT: %T.loc21_14.1: %L.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc21_14.2 (constants.%T.4)] +// CHECK:STDOUT: %T.param: %L.type = param runtime_param +// CHECK:STDOUT: %T.loc21_14.1: %L.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc21_14.2 (constants.%T.4)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -397,8 +397,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc7_21.1: type = facet_type_access %T.ref.loc7 [symbolic = %T.loc7_14.2 (constants.%T)] // CHECK:STDOUT: %.loc7_21.2: type = converted %T.ref.loc7, %.loc7_21.1 [symbolic = %T.loc7_14.2 (constants.%T)] // CHECK:STDOUT: %J.ref.loc7: type = name_ref J, file.%J.decl [template = constants.%J.type] -// CHECK:STDOUT: %param.loc7: %I.type = param runtime_param -// CHECK:STDOUT: %T.loc7_14.1: %I.type = bind_symbolic_name T, 0, %param.loc7 [symbolic = %T.loc7_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param.loc7: %I.type = param runtime_param +// CHECK:STDOUT: %T.loc7_14.1: %I.type = bind_symbolic_name T, 0, %T.param.loc7 [symbolic = %T.loc7_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl [template] { // CHECK:STDOUT: %T.patt.loc7_14.1: %I.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc7_14.2 (constants.%T.patt.1)] @@ -409,8 +409,8 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.loc14_21.1: type = facet_type_access %T.ref.loc14 [symbolic = constants.%T] // CHECK:STDOUT: %.loc14_21.2: type = converted %T.ref.loc14, %.loc14_21.1 [symbolic = constants.%T] // CHECK:STDOUT: %J.ref.loc14: type = name_ref J, file.%J.decl [template = constants.%J.type] -// CHECK:STDOUT: %param.loc14: %I.type = param runtime_param -// CHECK:STDOUT: %T.loc14: %I.type = bind_symbolic_name T, 0, %param.loc14 [symbolic = constants.%T] +// CHECK:STDOUT: %T.param.loc14: %I.type = param runtime_param +// CHECK:STDOUT: %T.loc14: %I.type = bind_symbolic_name T, 0, %T.param.loc14 [symbolic = constants.%T] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/no_prelude/import_generic.carbon b/toolchain/check/testdata/impl/no_prelude/import_generic.carbon index 6289eabc3ffb9..1ed655eacf9d3 100644 --- a/toolchain/check/testdata/impl/no_prelude/import_generic.carbon +++ b/toolchain/check/testdata/impl/no_prelude/import_generic.carbon @@ -67,8 +67,8 @@ impl forall [T:! type] C as I(T*) {} // CHECK:STDOUT: %T.patt.loc5_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc5_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc5_13.1, runtime_param [symbolic = %T.patt.loc5_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc5_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc5_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc5_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc5_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.1 [template] { // CHECK:STDOUT: %T.patt.loc7_14.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc7_14.2 (constants.%T.patt.2)] @@ -78,8 +78,8 @@ impl forall [T:! type] C as I(T*) {} // CHECK:STDOUT: %I.ref: %I.type.1 = name_ref I, file.%I.decl [template = constants.%I] // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc7_14.1 [symbolic = %T.loc7_14.2 (constants.%T)] // CHECK:STDOUT: %I.type.loc7_30.1: type = interface_type @I, @I(constants.%T) [symbolic = %I.type.loc7_30.2 (constants.%I.type.2)] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc7_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc7_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc7_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc7_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.2 [template] { // CHECK:STDOUT: %T.patt.loc8_14.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_14.2 (constants.%T.patt.3)] @@ -90,8 +90,8 @@ impl forall [T:! type] C as I(T*) {} // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc8_14.1 [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: %.loc8_32.1: type = ptr_type %T [symbolic = %.loc8_32.2 (constants.%.4)] // CHECK:STDOUT: %I.type.loc8_30.1: type = interface_type @I, @I(constants.%.4) [symbolic = %I.type.loc8_30.2 (constants.%I.type.3)] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_14.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_14.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_14.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -229,8 +229,8 @@ impl forall [T:! type] C as I(T*) {} // CHECK:STDOUT: %I.ref: %I.type.1 = name_ref I, imports.%import_ref.2 [template = constants.%I] // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc4 [symbolic = constants.%T] // CHECK:STDOUT: %I.type.loc4: type = interface_type @I, @I(constants.%T) [symbolic = constants.%I.type.2] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4: type = bind_symbolic_name T, 0, %param [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -369,8 +369,8 @@ impl forall [T:! type] C as I(T*) {} // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc11 [symbolic = constants.%T] // CHECK:STDOUT: %.loc11: type = ptr_type %T [symbolic = constants.%.4] // CHECK:STDOUT: %I.type.loc11: type = interface_type @I, @I(constants.%.4) [symbolic = constants.%I.type.3] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11: type = bind_symbolic_name T, 0, %param [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/no_prelude/import_self.carbon b/toolchain/check/testdata/impl/no_prelude/import_self.carbon index d8ddff56a6fc7..f3080520e6741 100644 --- a/toolchain/check/testdata/impl/no_prelude/import_self.carbon +++ b/toolchain/check/testdata/impl/no_prelude/import_self.carbon @@ -68,12 +68,12 @@ fn F(x: (), y: ()) -> () { // CHECK:STDOUT: %Self.ref.loc5_37: %Add.type = name_ref Self, @Add.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc5_37.1: type = facet_type_access %Self.ref.loc5_37 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc5_37.2: type = converted %Self.ref.loc5_37, %.loc5_37.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc5_13: @Op.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @Op.%Self (%Self) = bind_name self, %param.loc5_13 -// CHECK:STDOUT: %param.loc5_26: @Op.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %other: @Op.%Self (%Self) = bind_name other, %param.loc5_26 -// CHECK:STDOUT: %param.loc5_34: @Op.%Self (%Self) = param runtime_param2 -// CHECK:STDOUT: %return: ref @Op.%Self (%Self) = return_slot %param.loc5_34 +// CHECK:STDOUT: %self.param: @Op.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @Op.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %other.param: @Op.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %other: @Op.%Self (%Self) = bind_name other, %other.param +// CHECK:STDOUT: %return.param: @Op.%Self (%Self) = param runtime_param2 +// CHECK:STDOUT: %return: ref @Op.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc5: %.2 = assoc_entity element0, %Op.decl [template = constants.%.3] // CHECK:STDOUT: @@ -144,12 +144,12 @@ fn F(x: (), y: ()) -> () { // CHECK:STDOUT: %.loc10_17.2: type = converted %.loc10_17.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc10_24.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc10_24.2: type = converted %.loc10_24.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param.loc10_7: %.1 = param runtime_param0 -// CHECK:STDOUT: %x: %.1 = bind_name x, %param.loc10_7 -// CHECK:STDOUT: %param.loc10_14: %.1 = param runtime_param1 -// CHECK:STDOUT: %y: %.1 = bind_name y, %param.loc10_14 -// CHECK:STDOUT: %param.loc10_20: %.1 = param runtime_param2 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc10_20 +// CHECK:STDOUT: %x.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %x: %.1 = bind_name x, %x.param +// CHECK:STDOUT: %y.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %y: %.1 = bind_name y, %y.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param2 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -172,12 +172,12 @@ fn F(x: (), y: ()) -> () { // CHECK:STDOUT: %Self.ref.loc7_15: type = name_ref Self, @impl.%.loc6_7.2 [template = constants.%.1] // CHECK:STDOUT: %Self.ref.loc7_28: type = name_ref Self, @impl.%.loc6_7.2 [template = constants.%.1] // CHECK:STDOUT: %Self.ref.loc7_37: type = name_ref Self, @impl.%.loc6_7.2 [template = constants.%.1] -// CHECK:STDOUT: %param.loc7_13: %.1 = param runtime_param0 -// CHECK:STDOUT: %self: %.1 = bind_name self, %param.loc7_13 -// CHECK:STDOUT: %param.loc7_26: %.1 = param runtime_param1 -// CHECK:STDOUT: %other: %.1 = bind_name other, %param.loc7_26 -// CHECK:STDOUT: %param.loc7_34: %.1 = param runtime_param2 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param.loc7_34 +// CHECK:STDOUT: %self.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %self: %.1 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %.1 = param runtime_param1 +// CHECK:STDOUT: %other: %.1 = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param2 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6_16: = interface_witness (%Op.decl) [template = constants.%.2] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/no_prelude/interface_args.carbon b/toolchain/check/testdata/impl/no_prelude/interface_args.carbon index f48c0e8ec523c..79a65f32bc480 100644 --- a/toolchain/check/testdata/impl/no_prelude/interface_args.carbon +++ b/toolchain/check/testdata/impl/no_prelude/interface_args.carbon @@ -122,8 +122,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %T.patt.loc4_18.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_18.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_18.1, runtime_param [symbolic = %T.patt.loc4_18.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_18.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_18.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_18.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_18.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %A.decl: type = class_decl @A [template = constants.%A] {} {} // CHECK:STDOUT: %B.decl: type = class_decl @B [template = constants.%B] {} {} @@ -139,8 +139,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %a.param_patt: %A = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %a: %A = bind_name a, %param +// CHECK:STDOUT: %a.param: %A = param runtime_param0 +// CHECK:STDOUT: %a: %A = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -317,8 +317,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %a.param_patt: %A = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, imports.%import_ref.2 [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %a: %A = bind_name a, %param +// CHECK:STDOUT: %a.param: %A = param runtime_param0 +// CHECK:STDOUT: %a: %A = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -476,8 +476,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %a.param_patt: %A = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, imports.%import_ref.2 [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %a: %A = bind_name a, %param +// CHECK:STDOUT: %a.param: %A = param runtime_param0 +// CHECK:STDOUT: %a: %A = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -614,8 +614,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %T.patt.loc4_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_19.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_19.1, runtime_param [symbolic = %T.patt.loc4_19.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_19.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_19.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_19.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %A.decl: type = class_decl @A [template = constants.%A] {} {} // CHECK:STDOUT: %B.decl: type = class_decl @B [template = constants.%B] {} {} @@ -646,8 +646,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %return.param_patt: @Make.1.%T (%T) = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @Factory.%T.loc4_19.1 [symbolic = %T (constants.%T)] -// CHECK:STDOUT: %param: @Make.1.%T (%T) = param runtime_param0 -// CHECK:STDOUT: %return: ref @Make.1.%T (%T) = return_slot %param +// CHECK:STDOUT: %return.param: @Make.1.%T (%T) = param runtime_param0 +// CHECK:STDOUT: %return: ref @Make.1.%T (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc5_17.1: @Factory.%.loc5_17.2 (%.2) = assoc_entity element0, %Make.decl [symbolic = %.loc5_17.3 (constants.%.3)] // CHECK:STDOUT: @@ -664,8 +664,8 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: %return.param_patt: %B = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %B.ref: type = name_ref B, file.%B.decl [template = constants.%B] -// CHECK:STDOUT: %param: %B = param runtime_param0 -// CHECK:STDOUT: %return: ref %B = return_slot %param +// CHECK:STDOUT: %return.param: %B = param runtime_param0 +// CHECK:STDOUT: %return: ref %B = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc11: = interface_witness (%Make.decl) [template = constants.%.8] // CHECK:STDOUT: @@ -795,10 +795,10 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, imports.%import_ref.2 [template = constants.%A] // CHECK:STDOUT: %B.ref.loc4: type = name_ref B, imports.%import_ref.3 [template = constants.%B] -// CHECK:STDOUT: %param.loc4_11: %A = param runtime_param0 -// CHECK:STDOUT: %a: %A = bind_name a, %param.loc4_11 -// CHECK:STDOUT: %param.loc4_16: %B = param runtime_param1 -// CHECK:STDOUT: %return: ref %B = return_slot %param.loc4_16 +// CHECK:STDOUT: %a.param: %A = param runtime_param0 +// CHECK:STDOUT: %a: %A = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %B = param runtime_param1 +// CHECK:STDOUT: %return: ref %B = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -960,10 +960,10 @@ fn MakeC(a: A) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %A.ref: type = name_ref A, imports.%import_ref.2 [template = constants.%A] // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6_11: %A = param runtime_param0 -// CHECK:STDOUT: %a: %A = bind_name a, %param.loc6_11 -// CHECK:STDOUT: %param.loc6_16: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc6_16 +// CHECK:STDOUT: %a.param: %A = param runtime_param0 +// CHECK:STDOUT: %a: %A = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/no_prelude/self_in_class.carbon b/toolchain/check/testdata/impl/no_prelude/self_in_class.carbon index f00710173e294..bda01b65a3928 100644 --- a/toolchain/check/testdata/impl/no_prelude/self_in_class.carbon +++ b/toolchain/check/testdata/impl/no_prelude/self_in_class.carbon @@ -63,8 +63,8 @@ class A { // CHECK:STDOUT: %Self.ref: %DefaultConstructible.type = name_ref Self, @DefaultConstructible.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_16.1: type = facet_type_access %Self.ref [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_16.2: type = converted %Self.ref, %.loc12_16.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param: @Make.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %return: ref @Make.1.%Self (%Self) = return_slot %param +// CHECK:STDOUT: %return.param: @Make.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %return: ref @Make.1.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12: %.2 = assoc_entity element0, %Make.decl [template = constants.%.3] // CHECK:STDOUT: @@ -80,8 +80,8 @@ class A { // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, @impl.%C.ref [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc18: = interface_witness (%Make.decl) [template = constants.%.6] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/impl/no_prelude/self_in_signature.carbon b/toolchain/check/testdata/impl/no_prelude/self_in_signature.carbon index fe1804088d47f..c593c351b5bd0 100644 --- a/toolchain/check/testdata/impl/no_prelude/self_in_signature.carbon +++ b/toolchain/check/testdata/impl/no_prelude/self_in_signature.carbon @@ -131,12 +131,12 @@ impl D as SelfNested { // CHECK:STDOUT: %Self.ref.loc12_32: %UseSelf.type = name_ref Self, @UseSelf.%Self [symbolic = %Self (constants.%Self.1)] // CHECK:STDOUT: %.loc12_32.1: type = facet_type_access %Self.ref.loc12_32 [symbolic = %Self (constants.%Self.1)] // CHECK:STDOUT: %.loc12_32.2: type = converted %Self.ref.loc12_32, %.loc12_32.1 [symbolic = %Self (constants.%Self.1)] -// CHECK:STDOUT: %param.loc12_12: @F.1.%Self (%Self.1) = param runtime_param0 -// CHECK:STDOUT: %self: @F.1.%Self (%Self.1) = bind_name self, %param.loc12_12 -// CHECK:STDOUT: %param.loc12_21: @F.1.%Self (%Self.1) = param runtime_param1 -// CHECK:STDOUT: %x: @F.1.%Self (%Self.1) = bind_name x, %param.loc12_21 -// CHECK:STDOUT: %param.loc12_29: @F.1.%Self (%Self.1) = param runtime_param2 -// CHECK:STDOUT: %return: ref @F.1.%Self (%Self.1) = return_slot %param.loc12_29 +// CHECK:STDOUT: %self.param: @F.1.%Self (%Self.1) = param runtime_param0 +// CHECK:STDOUT: %self: @F.1.%Self (%Self.1) = bind_name self, %self.param +// CHECK:STDOUT: %x.param: @F.1.%Self (%Self.1) = param runtime_param1 +// CHECK:STDOUT: %x: @F.1.%Self (%Self.1) = bind_name x, %x.param +// CHECK:STDOUT: %return.param: @F.1.%Self (%Self.1) = param runtime_param2 +// CHECK:STDOUT: %return: ref @F.1.%Self (%Self.1) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: @@ -164,8 +164,8 @@ impl D as SelfNested { // CHECK:STDOUT: %.loc28_36.2: type = struct_type {.x: %Self.2, .y: %.1} [symbolic = %.loc28_36.1 (constants.%.10)] // CHECK:STDOUT: %.loc28_37.2: %.11 = tuple_literal (%.loc28_16.4, %.loc28_36.2) // CHECK:STDOUT: %.loc28_37.3: type = converted %.loc28_37.2, constants.%.12 [symbolic = %.loc28_37.1 (constants.%.12)] -// CHECK:STDOUT: %param: @F.4.%.loc28_37.1 (%.12) = param runtime_param0 -// CHECK:STDOUT: %x: @F.4.%.loc28_37.1 (%.12) = bind_name x, %param +// CHECK:STDOUT: %x.param: @F.4.%.loc28_37.1 (%.12) = param runtime_param0 +// CHECK:STDOUT: %x: @F.4.%.loc28_37.1 (%.12) = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc28: %.13 = assoc_entity element0, %F.decl [template = constants.%.14] // CHECK:STDOUT: @@ -187,12 +187,12 @@ impl D as SelfNested { // CHECK:STDOUT: %C.ref.loc20_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc20_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc20_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc20_12: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc20_12 -// CHECK:STDOUT: %param.loc20_18: %C = param runtime_param1 -// CHECK:STDOUT: %x: %C = bind_name x, %param.loc20_18 -// CHECK:STDOUT: %param.loc20_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc20_23 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %x.param: %C = param runtime_param1 +// CHECK:STDOUT: %x: %C = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = interface_witness (%F.decl) [template = constants.%.6] // CHECK:STDOUT: @@ -213,12 +213,12 @@ impl D as SelfNested { // CHECK:STDOUT: %Self.ref.loc24_14: type = name_ref Self, @impl.2.%D.ref [template = constants.%D] // CHECK:STDOUT: %Self.ref.loc24_23: type = name_ref Self, @impl.2.%D.ref [template = constants.%D] // CHECK:STDOUT: %Self.ref.loc24_32: type = name_ref Self, @impl.2.%D.ref [template = constants.%D] -// CHECK:STDOUT: %param.loc24_12: %D = param runtime_param0 -// CHECK:STDOUT: %self: %D = bind_name self, %param.loc24_12 -// CHECK:STDOUT: %param.loc24_21: %D = param runtime_param1 -// CHECK:STDOUT: %x: %D = bind_name x, %param.loc24_21 -// CHECK:STDOUT: %param.loc24_29: %D = param runtime_param2 -// CHECK:STDOUT: %return: ref %D = return_slot %param.loc24_29 +// CHECK:STDOUT: %self.param: %D = param runtime_param0 +// CHECK:STDOUT: %self: %D = bind_name self, %self.param +// CHECK:STDOUT: %x.param: %D = param runtime_param1 +// CHECK:STDOUT: %x: %D = bind_name x, %x.param +// CHECK:STDOUT: %return.param: %D = param runtime_param2 +// CHECK:STDOUT: %return: ref %D = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc23: = interface_witness (%F.decl) [template = constants.%.8] // CHECK:STDOUT: @@ -240,8 +240,8 @@ impl D as SelfNested { // CHECK:STDOUT: %.loc32_30: type = struct_type {.x: %C, .y: %.1} [template = constants.%.16] // CHECK:STDOUT: %.loc32_31.1: %.11 = tuple_literal (%.loc32_13, %.loc32_30) // CHECK:STDOUT: %.loc32_31.2: type = converted %.loc32_31.1, constants.%.17 [template = constants.%.17] -// CHECK:STDOUT: %param: %.17 = param runtime_param0 -// CHECK:STDOUT: %x: %.17 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.17 = param runtime_param0 +// CHECK:STDOUT: %x: %.17 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc31: = interface_witness (%F.decl) [template = constants.%.18] // CHECK:STDOUT: @@ -263,8 +263,8 @@ impl D as SelfNested { // CHECK:STDOUT: %.loc36_36: type = struct_type {.x: %D, .y: %.1} [template = constants.%.20] // CHECK:STDOUT: %.loc36_37.1: %.11 = tuple_literal (%.loc36_16, %.loc36_36) // CHECK:STDOUT: %.loc36_37.2: type = converted %.loc36_37.1, constants.%.21 [template = constants.%.21] -// CHECK:STDOUT: %param: %.21 = param runtime_param0 -// CHECK:STDOUT: %x: %.21 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.21 = param runtime_param0 +// CHECK:STDOUT: %x: %.21 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc35: = interface_witness (%F.decl) [template = constants.%.22] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/index/expr_category.carbon b/toolchain/check/testdata/index/expr_category.carbon index 651bf70005e8b..24d016c474eb2 100644 --- a/toolchain/check/testdata/index/expr_category.carbon +++ b/toolchain/check/testdata/index/expr_category.carbon @@ -84,8 +84,8 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32, %.loc11_12.1 [template = i32] // CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %b.patt: %.3 = binding_pattern b @@ -96,8 +96,8 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %.loc13_10.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] // CHECK:STDOUT: %.loc13_10.2: type = converted %int.make_type_32.loc13, %.loc13_10.1 [template = i32] // CHECK:STDOUT: %.loc13_16: type = array_type %.loc13_15, i32 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %b: %.3 = bind_name b, %param +// CHECK:STDOUT: %b.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %b: %.3 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: %ValueBinding.decl: %ValueBinding.type = fn_decl @ValueBinding [template = constants.%ValueBinding] { // CHECK:STDOUT: %b.patt: %.3 = binding_pattern b @@ -108,8 +108,8 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %.loc21_21.1: type = value_of_initializer %int.make_type_32.loc21 [template = i32] // CHECK:STDOUT: %.loc21_21.2: type = converted %int.make_type_32.loc21, %.loc21_21.1 [template = i32] // CHECK:STDOUT: %.loc21_27: type = array_type %.loc21_26, i32 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %b: %.3 = bind_name b, %param +// CHECK:STDOUT: %b.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %b: %.3 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/index/fail_expr_category.carbon b/toolchain/check/testdata/index/fail_expr_category.carbon index 3996f0e307cd9..9eb18d2a82abe 100644 --- a/toolchain/check/testdata/index/fail_expr_category.carbon +++ b/toolchain/check/testdata/index/fail_expr_category.carbon @@ -85,8 +85,8 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32, %.loc11_12.1 [template = i32] // CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %b.patt: %.3 = binding_pattern b @@ -97,8 +97,8 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %.loc13_10.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] // CHECK:STDOUT: %.loc13_10.2: type = converted %int.make_type_32.loc13, %.loc13_10.1 [template = i32] // CHECK:STDOUT: %.loc13_16: type = array_type %.loc13_15, i32 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %b: %.3 = bind_name b, %param +// CHECK:STDOUT: %b.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %b: %.3 = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/fail_todo_define_default_fn_inline.carbon b/toolchain/check/testdata/interface/fail_todo_define_default_fn_inline.carbon index e6ef46c6cf3bd..54a9ab3247cc7 100644 --- a/toolchain/check/testdata/interface/fail_todo_define_default_fn_inline.carbon +++ b/toolchain/check/testdata/interface/fail_todo_define_default_fn_inline.carbon @@ -84,12 +84,12 @@ interface Interface { // CHECK:STDOUT: %int.make_type_32.loc21_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_35.1: type = value_of_initializer %int.make_type_32.loc21_35 [template = i32] // CHECK:STDOUT: %.loc21_35.2: type = converted %int.make_type_32.loc21_35, %.loc21_35.1 [template = i32] -// CHECK:STDOUT: %param.loc21_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc21_17 -// CHECK:STDOUT: %param.loc21_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc21_25 -// CHECK:STDOUT: %param.loc21_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc21_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc21: %.4 = assoc_entity element1, %G.decl [template = constants.%.5] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/fail_todo_define_default_fn_out_of_line.carbon b/toolchain/check/testdata/interface/fail_todo_define_default_fn_out_of_line.carbon index 71e1417187cf5..6d963be8c2f3d 100644 --- a/toolchain/check/testdata/interface/fail_todo_define_default_fn_out_of_line.carbon +++ b/toolchain/check/testdata/interface/fail_todo_define_default_fn_out_of_line.carbon @@ -125,12 +125,12 @@ fn Interface.C.F[self: Self](U:! type, u: U) -> U { return u; } // CHECK:STDOUT: %int.make_type_32.loc31_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc31_35.1: type = value_of_initializer %int.make_type_32.loc31_35 [template = i32] // CHECK:STDOUT: %.loc31_35.2: type = converted %int.make_type_32.loc31_35, %.loc31_35.1 [template = i32] -// CHECK:STDOUT: %param.loc31_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc31_17 -// CHECK:STDOUT: %param.loc31_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc31_25 -// CHECK:STDOUT: %param.loc31_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc31_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -155,12 +155,12 @@ fn Interface.C.F[self: Self](U:! type, u: U) -> U { return u; } // CHECK:STDOUT: %int.make_type_32.loc13_35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_35.1: type = value_of_initializer %int.make_type_32.loc13_35 [template = i32] // CHECK:STDOUT: %.loc13_35.2: type = converted %int.make_type_32.loc13_35, %.loc13_35.1 [template = i32] -// CHECK:STDOUT: %param.loc13_17: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc13_17 -// CHECK:STDOUT: %param.loc13_25: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc13_25 -// CHECK:STDOUT: %param.loc13_32: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc13_32 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: %.4 = assoc_entity element1, %G.decl [template = constants.%.5] // CHECK:STDOUT: @@ -257,14 +257,14 @@ fn Interface.C.F[self: Self](U:! type, u: U) -> U { return u; } // CHECK:STDOUT: %Self.ref.loc20: type = name_ref Self, %.loc20_24 [symbolic = constants.%C.2] // CHECK:STDOUT: %U.ref.loc20_43: type = name_ref U, %U.loc20 [symbolic = constants.%U] // CHECK:STDOUT: %U.ref.loc20_49: type = name_ref U, %U.loc20 [symbolic = constants.%U] -// CHECK:STDOUT: %param.loc20_22: %C.2 = param runtime_param0 -// CHECK:STDOUT: %self.loc20: %C.2 = bind_name self, %param.loc20_22 -// CHECK:STDOUT: %param.loc20_31: type = param runtime_param -// CHECK:STDOUT: %U.loc20: type = bind_symbolic_name U, 1, %param.loc20_31 [symbolic = constants.%U] -// CHECK:STDOUT: %param.loc20_41: %U = param runtime_param1 -// CHECK:STDOUT: %u.loc20: %U = bind_name u, %param.loc20_41 -// CHECK:STDOUT: %param.loc20_46: %U = param runtime_param2 -// CHECK:STDOUT: %return: ref %U = return_slot %param.loc20_46 +// CHECK:STDOUT: %self.param.loc20: %C.2 = param runtime_param0 +// CHECK:STDOUT: %self.loc20: %C.2 = bind_name self, %self.param.loc20 +// CHECK:STDOUT: %U.param.loc20: type = param runtime_param +// CHECK:STDOUT: %U.loc20: type = bind_symbolic_name U, 1, %U.param.loc20 [symbolic = constants.%U] +// CHECK:STDOUT: %u.param.loc20: %U = param runtime_param1 +// CHECK:STDOUT: %u.loc20: %U = bind_name u, %u.param.loc20 +// CHECK:STDOUT: %return.param.loc20: %U = param runtime_param2 +// CHECK:STDOUT: %return: ref %U = return_slot %return.param.loc20 // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -299,14 +299,14 @@ fn Interface.C.F[self: Self](U:! type, u: U) -> U { return u; } // CHECK:STDOUT: %Self.ref.loc14: type = name_ref Self, %.loc14_16 [symbolic = %C (constants.%C.2)] // CHECK:STDOUT: %U.ref.loc14_35: type = name_ref U, %U.loc14_22.2 [symbolic = %U.loc14_22.1 (constants.%U)] // CHECK:STDOUT: %U.ref.loc14_41: type = name_ref U, %U.loc14_22.2 [symbolic = %U.loc14_22.1 (constants.%U)] -// CHECK:STDOUT: %param.loc14_14: @F.%C (%C.2) = param runtime_param0 -// CHECK:STDOUT: %self.loc14: @F.%C (%C.2) = bind_name self, %param.loc14_14 -// CHECK:STDOUT: %param.loc14_23: type = param runtime_param -// CHECK:STDOUT: %U.loc14_22.2: type = bind_symbolic_name U, 1, %param.loc14_23 [symbolic = %U.loc14_22.1 (constants.%U)] -// CHECK:STDOUT: %param.loc14_33: @F.%U.loc14_22.1 (%U) = param runtime_param1 -// CHECK:STDOUT: %u.loc14: @F.%U.loc14_22.1 (%U) = bind_name u, %param.loc14_33 -// CHECK:STDOUT: %param.loc14_38: @F.%U.loc14_22.1 (%U) = param runtime_param2 -// CHECK:STDOUT: %.loc14_38: ref @F.%U.loc14_22.1 (%U) = return_slot %param.loc14_38 +// CHECK:STDOUT: %self.param.loc14: @F.%C (%C.2) = param runtime_param0 +// CHECK:STDOUT: %self.loc14: @F.%C (%C.2) = bind_name self, %self.param.loc14 +// CHECK:STDOUT: %U.param.loc14: type = param runtime_param +// CHECK:STDOUT: %U.loc14_22.2: type = bind_symbolic_name U, 1, %U.param.loc14 [symbolic = %U.loc14_22.1 (constants.%U)] +// CHECK:STDOUT: %u.param.loc14: @F.%U.loc14_22.1 (%U) = param runtime_param1 +// CHECK:STDOUT: %u.loc14: @F.%U.loc14_22.1 (%U) = bind_name u, %u.param.loc14 +// CHECK:STDOUT: %return.param.loc14: @F.%U.loc14_22.1 (%U) = param runtime_param2 +// CHECK:STDOUT: %.loc14_38: ref @F.%U.loc14_22.1 (%U) = return_slot %return.param.loc14 // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/as_type.carbon b/toolchain/check/testdata/interface/no_prelude/as_type.carbon index 41e51f847fc89..9909ff791fef7 100644 --- a/toolchain/check/testdata/interface/no_prelude/as_type.carbon +++ b/toolchain/check/testdata/interface/no_prelude/as_type.carbon @@ -33,8 +33,8 @@ fn F(e: Empty) {} // CHECK:STDOUT: %e.param_patt: %Empty.type = param_pattern %e.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Empty.ref: type = name_ref Empty, file.%Empty.decl [template = constants.%Empty.type] -// CHECK:STDOUT: %param: %Empty.type = param runtime_param0 -// CHECK:STDOUT: %e: %Empty.type = bind_name e, %param +// CHECK:STDOUT: %e.param: %Empty.type = param runtime_param0 +// CHECK:STDOUT: %e: %Empty.type = bind_name e, %e.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/as_type_of_type.carbon b/toolchain/check/testdata/interface/no_prelude/as_type_of_type.carbon index 35906e8dc856d..022d135a93cdd 100644 --- a/toolchain/check/testdata/interface/no_prelude/as_type_of_type.carbon +++ b/toolchain/check/testdata/interface/no_prelude/as_type_of_type.carbon @@ -37,8 +37,8 @@ fn F(T:! Empty) { // CHECK:STDOUT: %T.param_patt: %Empty.type = param_pattern %T.patt.loc13_6.1, runtime_param [symbolic = %T.patt.loc13_6.2 (constants.%T.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %Empty.ref: type = name_ref Empty, file.%Empty.decl [template = constants.%Empty.type] -// CHECK:STDOUT: %param: %Empty.type = param runtime_param -// CHECK:STDOUT: %T.loc13_6.1: %Empty.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc13_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: %Empty.type = param runtime_param +// CHECK:STDOUT: %T.loc13_6.1: %Empty.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc13_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/assoc_const_in_generic.carbon b/toolchain/check/testdata/interface/no_prelude/assoc_const_in_generic.carbon index 5e3b69fd14582..26276c0a96cc4 100644 --- a/toolchain/check/testdata/interface/no_prelude/assoc_const_in_generic.carbon +++ b/toolchain/check/testdata/interface/no_prelude/assoc_const_in_generic.carbon @@ -62,15 +62,15 @@ fn H() { // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %T.patt.loc15_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc15_6.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc15_6.1, runtime_param [symbolic = %T.patt.loc15_6.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc15_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc15_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc15_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc15_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] {} {} // CHECK:STDOUT: } @@ -96,10 +96,10 @@ fn H() { // CHECK:STDOUT: %return.param_patt: @F.%U.loc12_8.1 (%U) = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %U.ref: type = name_ref U, %U.loc12_8.2 [symbolic = %U.loc12_8.1 (constants.%U)] -// CHECK:STDOUT: %param.loc12_9: type = param runtime_param -// CHECK:STDOUT: %U.loc12_8.2: type = bind_symbolic_name U, 2, %param.loc12_9 [symbolic = %U.loc12_8.1 (constants.%U)] -// CHECK:STDOUT: %param.loc12_18: @F.%U.loc12_8.1 (%U) = param runtime_param0 -// CHECK:STDOUT: %return: ref @F.%U.loc12_8.1 (%U) = return_slot %param.loc12_18 +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc12_8.2: type = bind_symbolic_name U, 2, %U.param [symbolic = %U.loc12_8.1 (constants.%U)] +// CHECK:STDOUT: %return.param: @F.%U.loc12_8.1 (%U) = param runtime_param0 +// CHECK:STDOUT: %return: ref @F.%U.loc12_8.1 (%U) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12_22.1: @I.%.loc12_22.2 (%.2) = assoc_entity element0, %F.decl [symbolic = %.loc12_22.3 (constants.%.3)] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/export_name.carbon b/toolchain/check/testdata/interface/no_prelude/export_name.carbon index c019e8112fb1b..e81fbd064c174 100644 --- a/toolchain/check/testdata/interface/no_prelude/export_name.carbon +++ b/toolchain/check/testdata/interface/no_prelude/export_name.carbon @@ -112,8 +112,8 @@ fn UseEmpty(i: I) {} // CHECK:STDOUT: %i.param_patt: %I.type = param_pattern %i.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %I.ref: type = name_ref I, imports.%import_ref.1 [template = constants.%I.type] -// CHECK:STDOUT: %param: %I.type = param runtime_param0 -// CHECK:STDOUT: %i: %I.type = bind_name i, %param +// CHECK:STDOUT: %i.param: %I.type = param runtime_param0 +// CHECK:STDOUT: %i: %I.type = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/fail_duplicate.carbon b/toolchain/check/testdata/interface/no_prelude/fail_duplicate.carbon index 3883cccbefa22..6e13cd8a4801e 100644 --- a/toolchain/check/testdata/interface/no_prelude/fail_duplicate.carbon +++ b/toolchain/check/testdata/interface/no_prelude/fail_duplicate.carbon @@ -156,8 +156,8 @@ interface Class { } // CHECK:STDOUT: %Self.ref: %.type = name_ref Self, @.1.%Self [symbolic = %Self (constants.%Self.2)] // CHECK:STDOUT: %.loc14_14.1: type = facet_type_access %Self.ref [symbolic = %Self (constants.%Self.2)] // CHECK:STDOUT: %.loc14_14.2: type = converted %Self.ref, %.loc14_14.1 [symbolic = %Self (constants.%Self.2)] -// CHECK:STDOUT: %param: @F.%Self (%Self.2) = param runtime_param0 -// CHECK:STDOUT: %self: @F.%Self (%Self.2) = bind_name self, %param +// CHECK:STDOUT: %self.param: @F.%Self (%Self.2) = param runtime_param0 +// CHECK:STDOUT: %self: @F.%Self (%Self.2) = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/fail_generic_redeclaration.carbon b/toolchain/check/testdata/interface/no_prelude/fail_generic_redeclaration.carbon index 5df130ddea42a..1e290e51298f3 100644 --- a/toolchain/check/testdata/interface/no_prelude/fail_generic_redeclaration.carbon +++ b/toolchain/check/testdata/interface/no_prelude/fail_generic_redeclaration.carbon @@ -75,23 +75,23 @@ interface DifferentParams(T:! ()) {} // CHECK:STDOUT: %T.patt.loc19_22.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc19_22.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc19_22.1, runtime_param [symbolic = %T.patt.loc19_22.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc19_22.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc19_22.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc19_22.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc19_22.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %Generic.decl: %Generic.type = interface_decl @Generic [template = constants.%Generic] { // CHECK:STDOUT: %T.patt.loc21_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc21_19.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc21_19.1, runtime_param [symbolic = %T.patt.loc21_19.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc21_19.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc21_19.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc21_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc21_19.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc29: type = interface_decl @.2 [template = constants.%.type.3] {} {} // CHECK:STDOUT: %DifferentParams.decl: %DifferentParams.type = interface_decl @DifferentParams [template = constants.%DifferentParams] { // CHECK:STDOUT: %T.patt.loc31_27.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc31_27.2 (constants.%T.patt.3)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc31_27.1, runtime_param [symbolic = %T.patt.loc31_27.2 (constants.%T.patt.3)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc31_27.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc31_27.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc31_27.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc31_27.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc38: %.type.4 = interface_decl @.3 [template = constants.%.3] { // CHECK:STDOUT: %T.patt.loc38_27.1: %.1 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc38_27.2 (constants.%T.patt.4)] @@ -99,8 +99,8 @@ interface DifferentParams(T:! ()) {} // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc38_32.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc38_32.2: type = converted %.loc38_32.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param -// CHECK:STDOUT: %T.loc38_27.1: %.1 = bind_symbolic_name T, 0, %param [symbolic = %T.loc38_27.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %.1 = param runtime_param +// CHECK:STDOUT: %T.loc38_27.1: %.1 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc38_27.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/fail_lookup_undefined.carbon b/toolchain/check/testdata/interface/no_prelude/fail_lookup_undefined.carbon index bfbc91135437a..d08aadfc1faf2 100644 --- a/toolchain/check/testdata/interface/no_prelude/fail_lookup_undefined.carbon +++ b/toolchain/check/testdata/interface/no_prelude/fail_lookup_undefined.carbon @@ -90,8 +90,8 @@ interface BeingDefined { // CHECK:STDOUT: } { // CHECK:STDOUT: %BeingDefined.ref: type = name_ref BeingDefined, file.%BeingDefined.decl [template = constants.%BeingDefined.type] // CHECK:STDOUT: %T.ref: = name_ref T, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc45: %.3 = assoc_entity element0, %H.decl [template = constants.%.4] // CHECK:STDOUT: %.decl: %.type.2 = fn_decl @.2 [template = constants.%.5] {} {} diff --git a/toolchain/check/testdata/interface/no_prelude/fail_todo_facet_lookup.carbon b/toolchain/check/testdata/interface/no_prelude/fail_todo_facet_lookup.carbon index f78bb592797e8..15256361bda32 100644 --- a/toolchain/check/testdata/interface/no_prelude/fail_todo_facet_lookup.carbon +++ b/toolchain/check/testdata/interface/no_prelude/fail_todo_facet_lookup.carbon @@ -56,8 +56,8 @@ fn CallFacet(T:! Interface, x: T) { // CHECK:STDOUT: %T.param_patt: %Interface.type = param_pattern %T.patt.loc13_15.1, runtime_param [symbolic = %T.patt.loc13_15.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %Interface.ref: type = name_ref Interface, file.%Interface.decl [template = constants.%Interface.type] -// CHECK:STDOUT: %param: %Interface.type = param runtime_param -// CHECK:STDOUT: %T.loc13_15.1: %Interface.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc13_15.2 (constants.%T)] +// CHECK:STDOUT: %T.param: %Interface.type = param runtime_param +// CHECK:STDOUT: %T.loc13_15.1: %Interface.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc13_15.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %CallFacet.decl: %CallFacet.type = fn_decl @CallFacet [template = constants.%CallFacet] { // CHECK:STDOUT: %T.patt.loc21_14.1: %Interface.type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc21_14.2 (constants.%T.patt.2)] @@ -69,10 +69,10 @@ fn CallFacet(T:! Interface, x: T) { // CHECK:STDOUT: %T.ref: %Interface.type = name_ref T, %T.loc21_14.1 [symbolic = %T.loc21_14.2 (constants.%T)] // CHECK:STDOUT: %.loc21_32.1: type = facet_type_access %T.ref [symbolic = %T.loc21_14.2 (constants.%T)] // CHECK:STDOUT: %.loc21_32.2: type = converted %T.ref, %.loc21_32.1 [symbolic = %T.loc21_14.2 (constants.%T)] -// CHECK:STDOUT: %param.loc21_15: %Interface.type = param runtime_param -// CHECK:STDOUT: %T.loc21_14.1: %Interface.type = bind_symbolic_name T, 0, %param.loc21_15 [symbolic = %T.loc21_14.2 (constants.%T)] -// CHECK:STDOUT: %param.loc21_30: @CallFacet.%T.loc21_14.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %x: @CallFacet.%T.loc21_14.2 (%T) = bind_name x, %param.loc21_30 +// CHECK:STDOUT: %T.param: %Interface.type = param runtime_param +// CHECK:STDOUT: %T.loc21_14.1: %Interface.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc21_14.2 (constants.%T)] +// CHECK:STDOUT: %x.param: @CallFacet.%T.loc21_14.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %x: @CallFacet.%T.loc21_14.2 (%T) = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/fail_todo_generic_default_fn.carbon b/toolchain/check/testdata/interface/no_prelude/fail_todo_generic_default_fn.carbon index 40bd0a96d3b33..d6ff8bdd315f7 100644 --- a/toolchain/check/testdata/interface/no_prelude/fail_todo_generic_default_fn.carbon +++ b/toolchain/check/testdata/interface/no_prelude/fail_todo_generic_default_fn.carbon @@ -48,8 +48,8 @@ fn I(T:! type).F[self: Self]() -> Self { return self; } // CHECK:STDOUT: %T.patt.loc11_13.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc11_13.1, runtime_param [symbolic = %T.patt.loc11_13.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc11_13.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc11_13.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc11_13.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [symbolic = constants.%.4] { // CHECK:STDOUT: %self.patt: @.1.%Self (%Self) = binding_pattern self @@ -57,8 +57,8 @@ fn I(T:! type).F[self: Self]() -> Self { return self; } // CHECK:STDOUT: %return.patt: @.1.%Self (%Self) = return_slot_pattern // CHECK:STDOUT: %return.param_patt: @.1.%Self (%Self) = param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param.loc22_7: type = param runtime_param -// CHECK:STDOUT: %T.loc22_6.1: type = bind_symbolic_name T, 0, %param.loc22_7 [symbolic = %T.loc22_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc22_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc22_6.2 (constants.%T)] // CHECK:STDOUT: %.loc22_24.1: @.1.%I.type (%I.type.2) = specific_constant @I.%Self.1, @I(constants.%T) [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %Self.ref.loc22_24: @.1.%I.type (%I.type.2) = name_ref Self, %.loc22_24.1 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc22_24.2: type = facet_type_access %Self.ref.loc22_24 [symbolic = %Self (constants.%Self)] @@ -67,10 +67,10 @@ fn I(T:! type).F[self: Self]() -> Self { return self; } // CHECK:STDOUT: %Self.ref.loc22_35: @.1.%I.type (%I.type.2) = name_ref Self, %.loc22_35.1 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc22_35.2: type = facet_type_access %Self.ref.loc22_35 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc22_35.3: type = converted %Self.ref.loc22_35, %.loc22_35.2 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc22_22: @.1.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @.1.%Self (%Self) = bind_name self, %param.loc22_22 -// CHECK:STDOUT: %param.loc22_32: @.1.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %return: ref @.1.%Self (%Self) = return_slot %param.loc22_32 +// CHECK:STDOUT: %self.param: @.1.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @.1.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @.1.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %return: ref @.1.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -102,10 +102,10 @@ fn I(T:! type).F[self: Self]() -> Self { return self; } // CHECK:STDOUT: %Self.ref.loc13_25: @F.%I.type (%I.type.2) = name_ref Self, %.loc13_25.1 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc13_25.2: type = facet_type_access %Self.ref.loc13_25 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc13_25.3: type = converted %Self.ref.loc13_25, %.loc13_25.2 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc13_12: @F.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @F.%Self (%Self) = bind_name self, %param.loc13_12 -// CHECK:STDOUT: %param.loc13_22: @F.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%Self (%Self) = return_slot %param.loc13_22 +// CHECK:STDOUT: %self.param: @F.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @F.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @F.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13_29.1: @I.%.loc13_29.2 (%.2) = assoc_entity element0, %F.decl [symbolic = %.loc13_29.3 (constants.%.3)] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/generic.carbon b/toolchain/check/testdata/interface/no_prelude/generic.carbon index ad034468b538a..13a8f7b884721 100644 --- a/toolchain/check/testdata/interface/no_prelude/generic.carbon +++ b/toolchain/check/testdata/interface/no_prelude/generic.carbon @@ -122,16 +122,16 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %T.patt.loc4_18.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_18.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_18.1, runtime_param [symbolic = %T.patt.loc4_18.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_18.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_18.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_18.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_18.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %X.decl: type = class_decl @X [template = constants.%X] {} {} // CHECK:STDOUT: %WithAssocFn.decl: %WithAssocFn.type.1 = interface_decl @WithAssocFn [template = constants.%WithAssocFn] { // CHECK:STDOUT: %T.patt.loc8_23.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_23.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc8_23.1, runtime_param [symbolic = %T.patt.loc8_23.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_23.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_23.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_23.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_23.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %WithImplicitArgs.decl: %WithImplicitArgs.type = interface_decl @WithImplicitArgs [template = constants.%WithImplicitArgs] { @@ -141,10 +141,10 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %N.param_patt: @WithImplicitArgs.%T.loc22_28.2 (%T.1) = param_pattern %N.patt.loc22_38.1, runtime_param [symbolic = %N.patt.loc22_38.2 (constants.%N.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc22_28.1 [symbolic = %T.loc22_28.2 (constants.%T.1)] -// CHECK:STDOUT: %param.loc22_29: type = param runtime_param -// CHECK:STDOUT: %T.loc22_28.1: type = bind_symbolic_name T, 0, %param.loc22_29 [symbolic = %T.loc22_28.2 (constants.%T.1)] -// CHECK:STDOUT: %param.loc22_39: @WithImplicitArgs.%T.loc22_28.2 (%T.1) = param runtime_param -// CHECK:STDOUT: %N.loc22_38.1: @WithImplicitArgs.%T.loc22_28.2 (%T.1) = bind_symbolic_name N, 1, %param.loc22_39 [symbolic = %N.loc22_38.2 (constants.%N)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc22_28.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc22_28.2 (constants.%T.1)] +// CHECK:STDOUT: %N.param: @WithImplicitArgs.%T.loc22_28.2 (%T.1) = param runtime_param +// CHECK:STDOUT: %N.loc22_38.1: @WithImplicitArgs.%T.loc22_28.2 (%T.1) = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc22_38.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %Receive.decl: %Receive.type = fn_decl @Receive [template = constants.%Receive] { // CHECK:STDOUT: %T.patt.loc24_12.1: %Simple.type.3 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc24_12.2 (constants.%T.patt.4)] @@ -153,8 +153,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %Simple.ref: %Simple.type.1 = name_ref Simple, file.%Simple.decl [template = constants.%Simple] // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %Simple.type: type = interface_type @Simple, @Simple(constants.%C) [template = constants.%Simple.type.3] -// CHECK:STDOUT: %param: %Simple.type.3 = param runtime_param -// CHECK:STDOUT: %T.loc24_12.1: %Simple.type.3 = bind_symbolic_name T, 0, %param [symbolic = %T.loc24_12.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %Simple.type.3 = param runtime_param +// CHECK:STDOUT: %T.loc24_12.1: %Simple.type.3 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc24_12.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: %Pass.decl: %Pass.type = fn_decl @Pass [template = constants.%Pass] { // CHECK:STDOUT: %T.patt.loc25_9.1: %Simple.type.3 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc25_9.2 (constants.%T.patt.5)] @@ -163,8 +163,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %Simple.ref: %Simple.type.1 = name_ref Simple, file.%Simple.decl [template = constants.%Simple] // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %Simple.type: type = interface_type @Simple, @Simple(constants.%C) [template = constants.%Simple.type.3] -// CHECK:STDOUT: %param: %Simple.type.3 = param runtime_param -// CHECK:STDOUT: %T.loc25_9.1: %Simple.type.3 = bind_symbolic_name T, 0, %param [symbolic = %T.loc25_9.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %Simple.type.3 = param runtime_param +// CHECK:STDOUT: %T.loc25_9.1: %Simple.type.3 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc25_9.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -204,8 +204,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %return.param_patt: %X = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %return: ref %X = return_slot %param +// CHECK:STDOUT: %return.param: %X = param runtime_param0 +// CHECK:STDOUT: %return: ref %X = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc10_14.1: @WithAssocFn.%.loc10_14.2 (%.4) = assoc_entity element0, %F.decl [symbolic = %.loc10_14.3 (constants.%.5)] // CHECK:STDOUT: @@ -238,8 +238,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %return.param_patt: %X = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %return: ref %X = return_slot %param +// CHECK:STDOUT: %return.param: %X = param runtime_param0 +// CHECK:STDOUT: %return: ref %X = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = interface_witness (%F.decl) [template = constants.%.9] // CHECK:STDOUT: @@ -424,8 +424,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %T.patt.loc4_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_19.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_19.1, runtime_param [symbolic = %T.patt.loc4_19.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_19.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_19.2 (constants.%T.1)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_19.2 (constants.%T.1)] // CHECK:STDOUT: } // CHECK:STDOUT: %A.decl: type = class_decl @A [template = constants.%A] {} {} // CHECK:STDOUT: %B.decl: type = class_decl @B [template = constants.%B] {} {} @@ -436,8 +436,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %Generic.ref: %Generic.type.1 = name_ref Generic, file.%Generic.decl [template = constants.%Generic] // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %Generic.type: type = interface_type @Generic, @Generic(constants.%A) [template = constants.%Generic.type.3] -// CHECK:STDOUT: %param: %Generic.type.3 = param runtime_param -// CHECK:STDOUT: %T.loc9_6.1: %Generic.type.3 = bind_symbolic_name T, 0, %param [symbolic = %T.loc9_6.2 (constants.%T.2)] +// CHECK:STDOUT: %T.param: %Generic.type.3 = param runtime_param +// CHECK:STDOUT: %T.loc9_6.1: %Generic.type.3 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc9_6.2 (constants.%T.2)] // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %T.patt.loc10_6.1: %Generic.type.4 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc10_6.2 (constants.%T.patt.3)] @@ -446,8 +446,8 @@ fn G(T:! Generic(B)) { // CHECK:STDOUT: %Generic.ref: %Generic.type.1 = name_ref Generic, file.%Generic.decl [template = constants.%Generic] // CHECK:STDOUT: %B.ref: type = name_ref B, file.%B.decl [template = constants.%B] // CHECK:STDOUT: %Generic.type: type = interface_type @Generic, @Generic(constants.%B) [template = constants.%Generic.type.4] -// CHECK:STDOUT: %param: %Generic.type.4 = param runtime_param -// CHECK:STDOUT: %T.loc10_6.1: %Generic.type.4 = bind_symbolic_name T, 0, %param [symbolic = %T.loc10_6.2 (constants.%T.3)] +// CHECK:STDOUT: %T.param: %Generic.type.4 = param runtime_param +// CHECK:STDOUT: %T.loc10_6.1: %Generic.type.4 = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc10_6.2 (constants.%T.3)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/generic_binding_after_assoc_const.carbon b/toolchain/check/testdata/interface/no_prelude/generic_binding_after_assoc_const.carbon index a57f57aa6d67a..5b42a9395fd72 100644 --- a/toolchain/check/testdata/interface/no_prelude/generic_binding_after_assoc_const.carbon +++ b/toolchain/check/testdata/interface/no_prelude/generic_binding_after_assoc_const.carbon @@ -50,8 +50,8 @@ interface I { // CHECK:STDOUT: %T.patt.loc12_8.2: type = symbolic_binding_pattern T, 1 [symbolic = %T.patt.loc12_8.1 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc12_8.2, runtime_param [symbolic = %T.patt.loc12_8.1 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc12_8.2: type = bind_symbolic_name T, 1, %param [symbolic = %T.loc12_8.1 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc12_8.2: type = bind_symbolic_name T, 1, %T.param [symbolic = %T.loc12_8.1 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: %U: type = assoc_const_decl U [template] @@ -60,8 +60,8 @@ interface I { // CHECK:STDOUT: %T.patt.loc16_8.2: type = symbolic_binding_pattern T, 1 [symbolic = %T.patt.loc16_8.1 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc16_8.2, runtime_param [symbolic = %T.patt.loc16_8.1 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc16_8.2: type = bind_symbolic_name T, 1, %param [symbolic = %T.loc16_8.1 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc16_8.2: type = bind_symbolic_name T, 1, %T.param [symbolic = %T.loc16_8.1 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16: %.6 = assoc_entity element2, %G.decl [template = constants.%.7] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/generic_import.carbon b/toolchain/check/testdata/interface/no_prelude/generic_import.carbon index 2be2b8c69d909..4df6b6834d338 100644 --- a/toolchain/check/testdata/interface/no_prelude/generic_import.carbon +++ b/toolchain/check/testdata/interface/no_prelude/generic_import.carbon @@ -51,8 +51,8 @@ impl C as AddWith(C) { // CHECK:STDOUT: %T.patt.loc4_19.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_19.2 (constants.%T.patt)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_19.1, runtime_param [symbolic = %T.patt.loc4_19.2 (constants.%T.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_19.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_19.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_19.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_19.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/generic_vs_params.carbon b/toolchain/check/testdata/interface/no_prelude/generic_vs_params.carbon index bfb2eac6f52aa..db68aba631897 100644 --- a/toolchain/check/testdata/interface/no_prelude/generic_vs_params.carbon +++ b/toolchain/check/testdata/interface/no_prelude/generic_vs_params.carbon @@ -102,15 +102,15 @@ interface A(T: type) {} // CHECK:STDOUT: %T.patt.loc6_28.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc6_28.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc6_28.1, runtime_param [symbolic = %T.patt.loc6_28.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc6_28.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc6_28.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc6_28.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc6_28.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = class_decl @C [template = constants.%C.1] { // CHECK:STDOUT: %T.patt.loc8_9.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_9.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc8_9.1, runtime_param [symbolic = %T.patt.loc8_9.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc8_9.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_9.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc8_9.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_9.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %X.decl: type = class_decl @X [template = constants.%X] {} {} // CHECK:STDOUT: impl_decl @impl.1 [template] {} { @@ -262,8 +262,8 @@ interface A(T: type) {} // CHECK:STDOUT: %U.patt.loc10_30.1: type = symbolic_binding_pattern U, 1 [symbolic = %U.patt.loc10_30.2 (constants.%U.patt)] // CHECK:STDOUT: %U.param_patt: type = param_pattern %U.patt.loc10_30.1, runtime_param [symbolic = %U.patt.loc10_30.2 (constants.%U.patt)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc10_30.1: type = bind_symbolic_name U, 1, %param [symbolic = %U.loc10_30.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc10_30.1: type = bind_symbolic_name U, 1, %U.param [symbolic = %U.loc10_30.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc11: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/import.carbon b/toolchain/check/testdata/interface/no_prelude/import.carbon index eb28df4fb129d..0bbca5f3e28fb 100644 --- a/toolchain/check/testdata/interface/no_prelude/import.carbon +++ b/toolchain/check/testdata/interface/no_prelude/import.carbon @@ -216,24 +216,24 @@ var f: ForwardDeclared* = &f_ref.f; // CHECK:STDOUT: %e.param_patt: %Empty.type = param_pattern %e.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Empty.ref: type = name_ref Empty, imports.%import_ref.1 [template = constants.%Empty.type] -// CHECK:STDOUT: %param: %Empty.type = param runtime_param0 -// CHECK:STDOUT: %e: %Empty.type = bind_name e, %param +// CHECK:STDOUT: %e.param: %Empty.type = param runtime_param0 +// CHECK:STDOUT: %e: %Empty.type = bind_name e, %e.param // CHECK:STDOUT: } // CHECK:STDOUT: %UseBasic.decl: %UseBasic.type = fn_decl @UseBasic [template = constants.%UseBasic] { // CHECK:STDOUT: %e.patt: %Basic.type = binding_pattern e // CHECK:STDOUT: %e.param_patt: %Basic.type = param_pattern %e.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Basic.ref: type = name_ref Basic, imports.%import_ref.2 [template = constants.%Basic.type] -// CHECK:STDOUT: %param: %Basic.type = param runtime_param0 -// CHECK:STDOUT: %e: %Basic.type = bind_name e, %param +// CHECK:STDOUT: %e.param: %Basic.type = param runtime_param0 +// CHECK:STDOUT: %e: %Basic.type = bind_name e, %e.param // CHECK:STDOUT: } // CHECK:STDOUT: %UseForwardDeclared.decl: %UseForwardDeclared.type = fn_decl @UseForwardDeclared [template = constants.%UseForwardDeclared] { // CHECK:STDOUT: %f.patt: %ForwardDeclared.type = binding_pattern f // CHECK:STDOUT: %f.param_patt: %ForwardDeclared.type = param_pattern %f.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %ForwardDeclared.ref: type = name_ref ForwardDeclared, imports.%import_ref.3 [template = constants.%ForwardDeclared.type] -// CHECK:STDOUT: %param: %ForwardDeclared.type = param runtime_param0 -// CHECK:STDOUT: %f: %ForwardDeclared.type = bind_name f, %param +// CHECK:STDOUT: %f.param: %ForwardDeclared.type = param runtime_param0 +// CHECK:STDOUT: %f: %ForwardDeclared.type = bind_name f, %f.param // CHECK:STDOUT: } // CHECK:STDOUT: %Basic.ref.loc10: type = name_ref Basic, imports.%import_ref.2 [template = constants.%Basic.type] // CHECK:STDOUT: %T.ref.loc10: %.2 = name_ref T, imports.%import_ref.7 [template = constants.%.3] diff --git a/toolchain/check/testdata/interface/no_prelude/import_access.carbon b/toolchain/check/testdata/interface/no_prelude/import_access.carbon index a7ac1f61ee4fb..d4403846c80ff 100644 --- a/toolchain/check/testdata/interface/no_prelude/import_access.carbon +++ b/toolchain/check/testdata/interface/no_prelude/import_access.carbon @@ -218,8 +218,8 @@ private interface Redecl {} // CHECK:STDOUT: %i.param_patt: %Def.type = param_pattern %i.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Def.ref: type = name_ref Def, imports.%import_ref.1 [template = constants.%Def.type] -// CHECK:STDOUT: %param: %Def.type = param runtime_param0 -// CHECK:STDOUT: %i: %Def.type = bind_name i, %param +// CHECK:STDOUT: %i.param: %Def.type = param runtime_param0 +// CHECK:STDOUT: %i: %Def.type = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -252,8 +252,8 @@ private interface Redecl {} // CHECK:STDOUT: %i.param_patt: = param_pattern %i.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Def.ref: = name_ref Def, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -288,8 +288,8 @@ private interface Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Test.ref: = name_ref Test, imports.%Test [template = imports.%Test] // CHECK:STDOUT: %Def.ref: = name_ref Def, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -325,8 +325,8 @@ private interface Redecl {} // CHECK:STDOUT: %i.param_patt: %ForwardWithDef.type = param_pattern %i.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %ForwardWithDef.ref: type = name_ref ForwardWithDef, imports.%import_ref.1 [template = constants.%ForwardWithDef.type] -// CHECK:STDOUT: %param: %ForwardWithDef.type = param runtime_param0 -// CHECK:STDOUT: %i: %ForwardWithDef.type = bind_name i, %param +// CHECK:STDOUT: %i.param: %ForwardWithDef.type = param runtime_param0 +// CHECK:STDOUT: %i: %ForwardWithDef.type = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -359,8 +359,8 @@ private interface Redecl {} // CHECK:STDOUT: %i.param_patt: = param_pattern %i.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %ForwardWithDef.ref: = name_ref ForwardWithDef, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -395,8 +395,8 @@ private interface Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Test.ref: = name_ref Test, imports.%Test [template = imports.%Test] // CHECK:STDOUT: %ForwardWithDef.ref: = name_ref ForwardWithDef, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -428,8 +428,8 @@ private interface Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Forward.ref: = name_ref Forward, [template = ] // CHECK:STDOUT: %.loc8: type = ptr_type [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: %Forward.decl: type = interface_decl @Forward [template = constants.%Forward.type] {} {} // CHECK:STDOUT: } @@ -466,8 +466,8 @@ private interface Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Forward.ref: = name_ref Forward, [template = ] // CHECK:STDOUT: %.loc10: type = ptr_type [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -502,8 +502,8 @@ private interface Redecl {} // CHECK:STDOUT: } { // CHECK:STDOUT: %Forward.ref: = name_ref Forward, [template = ] // CHECK:STDOUT: %.loc9: type = ptr_type [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %i: = bind_name i, %param +// CHECK:STDOUT: %i.param: = param runtime_param0 +// CHECK:STDOUT: %i: = bind_name i, %i.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/self.carbon b/toolchain/check/testdata/interface/no_prelude/self.carbon index d3b3b850363ff..e8bec2f72b29a 100644 --- a/toolchain/check/testdata/interface/no_prelude/self.carbon +++ b/toolchain/check/testdata/interface/no_prelude/self.carbon @@ -45,10 +45,10 @@ interface UseSelf { // CHECK:STDOUT: %Self.ref.loc12_25: %UseSelf.type = name_ref Self, @UseSelf.%Self [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_25.1: type = facet_type_access %Self.ref.loc12_25 [symbolic = %Self (constants.%Self)] // CHECK:STDOUT: %.loc12_25.2: type = converted %Self.ref.loc12_25, %.loc12_25.1 [symbolic = %Self (constants.%Self)] -// CHECK:STDOUT: %param.loc12_12: @F.%Self (%Self) = param runtime_param0 -// CHECK:STDOUT: %self: @F.%Self (%Self) = bind_name self, %param.loc12_12 -// CHECK:STDOUT: %param.loc12_22: @F.%Self (%Self) = param runtime_param1 -// CHECK:STDOUT: %return: ref @F.%Self (%Self) = return_slot %param.loc12_22 +// CHECK:STDOUT: %self.param: @F.%Self (%Self) = param runtime_param0 +// CHECK:STDOUT: %self: @F.%Self (%Self) = bind_name self, %self.param +// CHECK:STDOUT: %return.param: @F.%Self (%Self) = param runtime_param1 +// CHECK:STDOUT: %return: ref @F.%Self (%Self) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc12: %.2 = assoc_entity element0, %F.decl [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/no_prelude/syntactic_merge.carbon b/toolchain/check/testdata/interface/no_prelude/syntactic_merge.carbon index af9af796a6ab1..972e65b631a68 100644 --- a/toolchain/check/testdata/interface/no_prelude/syntactic_merge.carbon +++ b/toolchain/check/testdata/interface/no_prelude/syntactic_merge.carbon @@ -222,32 +222,32 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_15.1, runtime_param [symbolic = %a.patt.loc7_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %param.loc7 [symbolic = %a.loc7_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %a.param.loc7 [symbolic = %a.loc7_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc8: %Foo.type.1 = interface_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %a.patt.loc7_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc7_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_15.1, runtime_param [symbolic = %a.patt.loc7_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc8: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc8: %C = param runtime_param -// CHECK:STDOUT: %a.loc8: %C = bind_symbolic_name a, 0, %param.loc8 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc8: %C = param runtime_param +// CHECK:STDOUT: %a.loc8: %C = bind_symbolic_name a, 0, %a.param.loc8 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl.loc10: %Bar.type.1 = interface_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt.loc10_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc10_15.2 (constants.%a.patt.3)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc10_15.1, runtime_param [symbolic = %a.patt.loc10_15.2 (constants.%a.patt.3)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref.loc10: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc10: %C = param runtime_param -// CHECK:STDOUT: %a.loc10_15.1: %C = bind_symbolic_name a, 0, %param.loc10 [symbolic = %a.loc10_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc10: %C = param runtime_param +// CHECK:STDOUT: %a.loc10_15.1: %C = bind_symbolic_name a, 0, %a.param.loc10 [symbolic = %a.loc10_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl.loc11: %Bar.type.1 = interface_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt.loc10_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc10_15.2 (constants.%a.patt.3)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc10_15.1, runtime_param [symbolic = %a.patt.loc10_15.2 (constants.%a.patt.3)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref.loc11: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param.loc11: %C = param runtime_param -// CHECK:STDOUT: %a.loc11: %C = bind_symbolic_name a, 0, %param.loc11 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc11: %C = param runtime_param +// CHECK:STDOUT: %a.loc11: %C = bind_symbolic_name a, 0, %a.param.loc11 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -339,16 +339,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_21.1, runtime_param [symbolic = %a.patt.loc6_21.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_21.1: %C = bind_symbolic_name a, 0, %param.loc6 [symbolic = %a.loc6_21.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc6: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_21.1: %C = bind_symbolic_name a, 0, %a.param.loc6 [symbolic = %a.loc6_21.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type.1 = interface_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %a.patt.loc6_21.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc6_21.2 (constants.%a.patt.1)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_21.1, runtime_param [symbolic = %a.patt.loc6_21.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param -// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %param.loc7 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param +// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %a.param.loc7 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -415,16 +415,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_15.1, runtime_param [symbolic = %a.patt.loc6_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc6_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc6_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type.1 = interface_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc14_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc14_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc14_15.1, runtime_param [symbolic = %a.patt.loc14_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc14_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc14_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc14_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc14_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -501,16 +501,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_15.1, runtime_param [symbolic = %a.patt.loc6_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc6: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_15.1: %C = bind_symbolic_name a, 0, %param.loc6 [symbolic = %a.loc6_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param.loc6: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_15.1: %C = bind_symbolic_name a, 0, %a.param.loc6 [symbolic = %a.loc6_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type.1 = interface_decl @Foo [template = constants.%Foo] { // CHECK:STDOUT: %a.patt.loc6_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc6_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_15.1, runtime_param [symbolic = %a.patt.loc6_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc7: %C = param runtime_param -// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %param.loc7 [symbolic = constants.%a] +// CHECK:STDOUT: %a.param.loc7: %C = param runtime_param +// CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a, 0, %a.param.loc7 [symbolic = constants.%a] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -579,16 +579,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_15.1, runtime_param [symbolic = %a.patt.loc7_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %Bar.decl: %Bar.type = interface_decl @Bar [template = constants.%Bar] { // CHECK:STDOUT: %a.patt.loc8_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc8_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc8_15.1, runtime_param [symbolic = %a.patt.loc8_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc8_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc8_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc8_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc8_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -670,16 +670,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc12_15.1, runtime_param [symbolic = %a.patt.loc12_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.1 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc12_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc12_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc12_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc12_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl.loc21: %.type.3 = interface_decl @.2 [template = constants.%.5] { // CHECK:STDOUT: %a.patt.loc21_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc21_15.2 (constants.%a.patt.3)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc21_15.1, runtime_param [symbolic = %a.patt.loc21_15.2 (constants.%a.patt.3)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, imports.%import_ref.2 [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc21_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc21_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc21_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc21_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -799,16 +799,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_15.1, runtime_param [symbolic = %a.patt.loc7_15.2 (constants.%a.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type.1 = interface_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %b.patt.loc15_15.1: %C = symbolic_binding_pattern b, 0 [symbolic = %b.patt.loc15_15.2 (constants.%b.patt)] // CHECK:STDOUT: %b.param_patt: %C = param_pattern %b.patt.loc15_15.1, runtime_param [symbolic = %b.patt.loc15_15.2 (constants.%b.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %b.loc15_15.1: %C = bind_symbolic_name b, 0, %param [symbolic = %b.loc15_15.2 (constants.%b)] +// CHECK:STDOUT: %b.param: %C = param runtime_param +// CHECK:STDOUT: %b.loc15_15.1: %C = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc15_15.2 (constants.%b)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -890,16 +890,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_15.1, runtime_param [symbolic = %a.patt.loc7_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type.1 = interface_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc15_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc15_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc15_15.1, runtime_param [symbolic = %a.patt.loc15_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc15_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc15_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc15_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc15_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -981,16 +981,16 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc7_15.1, runtime_param [symbolic = %a.patt.loc7_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc7_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc7_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc7_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type.1 = interface_decl @.1 [template = constants.%.4] { // CHECK:STDOUT: %a.patt.loc15_15.1: %C = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc15_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc15_15.1, runtime_param [symbolic = %a.patt.loc15_15.2 (constants.%a.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc15_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc15_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc15_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc15_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1064,8 +1064,8 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc6_15.1, runtime_param [symbolic = %a.patt.loc6_15.2 (constants.%a.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc6_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc6_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc6_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc6_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1127,8 +1127,8 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt.loc17_15.1, runtime_param [symbolic = %a.patt.loc17_15.2 (constants.%a.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param -// CHECK:STDOUT: %a.loc17_15.1: %C = bind_symbolic_name a, 0, %param [symbolic = %a.loc17_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %C = param runtime_param +// CHECK:STDOUT: %a.loc17_15.1: %C = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc17_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1207,8 +1207,8 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc6: type = const_type %C [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param -// CHECK:STDOUT: %a.loc6_15.1: %.3 = bind_symbolic_name a, 0, %param [symbolic = %a.loc6_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %.3 = param runtime_param +// CHECK:STDOUT: %a.loc6_15.1: %.3 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc6_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: %.decl: %.type.1 = interface_decl @.1 [template = constants.%.5] { // CHECK:STDOUT: %a.patt.loc17_15.1: %.3 = symbolic_binding_pattern a, 0 [symbolic = %a.patt.loc17_15.2 (constants.%a.patt.2)] @@ -1217,8 +1217,8 @@ interface Foo(a:! const (const C)) {} // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc17_26: type = const_type %C [template = constants.%.3] // CHECK:STDOUT: %.loc17_19: type = const_type %.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param -// CHECK:STDOUT: %a.loc17_15.1: %.3 = bind_symbolic_name a, 0, %param [symbolic = %a.loc17_15.2 (constants.%a)] +// CHECK:STDOUT: %a.param: %.3 = param runtime_param +// CHECK:STDOUT: %a.loc17_15.1: %.3 = bind_symbolic_name a, 0, %a.param [symbolic = %a.loc17_15.2 (constants.%a)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/todo_define_not_default.carbon b/toolchain/check/testdata/interface/todo_define_not_default.carbon index c27c904324e27..ced25c14aaada 100644 --- a/toolchain/check/testdata/interface/todo_define_not_default.carbon +++ b/toolchain/check/testdata/interface/todo_define_not_default.carbon @@ -89,12 +89,12 @@ interface I { // CHECK:STDOUT: %int.make_type_32.loc14_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_27.1: type = value_of_initializer %int.make_type_32.loc14_27 [template = i32] // CHECK:STDOUT: %.loc14_27.2: type = converted %int.make_type_32.loc14_27, %.loc14_27.1 [template = i32] -// CHECK:STDOUT: %param.loc14_9: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc14_9 -// CHECK:STDOUT: %param.loc14_17: i32 = param runtime_param1 -// CHECK:STDOUT: %b: i32 = bind_name b, %param.loc14_17 -// CHECK:STDOUT: %param.loc14_24: i32 = param runtime_param2 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc14_24 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: i32 = param runtime_param1 +// CHECK:STDOUT: %b: i32 = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param2 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14: %.4 = assoc_entity element1, %G.decl [template = constants.%.5] // CHECK:STDOUT: %int.make_type_32.loc18_19: init type = call constants.%Int32() [template = i32] diff --git a/toolchain/check/testdata/let/compile_time_bindings.carbon b/toolchain/check/testdata/let/compile_time_bindings.carbon index 9d5e55d66a2f8..892174c880352 100644 --- a/toolchain/check/testdata/let/compile_time_bindings.carbon +++ b/toolchain/check/testdata/let/compile_time_bindings.carbon @@ -203,8 +203,8 @@ impl i32 as Empty { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc5_14.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc5_14.2: type = converted %.loc5_14.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc10_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc10_12.2: type = converted %.loc10_12.1, constants.%.1 [template = constants.%.1] @@ -273,8 +273,8 @@ impl i32 as Empty { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc10_14.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc10_14.2: type = converted %.loc10_14.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc11: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -350,8 +350,8 @@ impl i32 as Empty { // CHECK:STDOUT: %.loc10_16.1: %.2 = tuple_literal (%.loc10_14) // CHECK:STDOUT: %.loc10_16.2: type = converted %.loc10_14, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc10_16.3: type = converted %.loc10_16.1, constants.%.2 [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param -// CHECK:STDOUT: %b.loc10_8.2: %.2 = bind_symbolic_name b, 0, %param [symbolic = %b.loc10_8.1 (constants.%b)] +// CHECK:STDOUT: %b.param: %.2 = param runtime_param +// CHECK:STDOUT: %b.loc10_8.2: %.2 = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc10_8.1 (constants.%b)] // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22_13: %.1 = tuple_literal () // CHECK:STDOUT: %.loc22_17: %.1 = tuple_literal () @@ -526,8 +526,8 @@ impl i32 as Empty { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc5_14.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc5_14.2: type = converted %.loc5_14.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc14_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc14_12.2: type = converted %.loc14_12.1, constants.%.1 [template = constants.%.1] @@ -588,8 +588,8 @@ impl i32 as Empty { // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [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: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -648,8 +648,8 @@ impl i32 as Empty { // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [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: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -754,8 +754,8 @@ impl i32 as Empty { // CHECK:STDOUT: %.loc13_13.1: %.6 = specific_constant imports.%import_ref.4, @ImplicitAs(type) [template = constants.%.7] // CHECK:STDOUT: %Convert.ref: %.6 = name_ref Convert, %.loc13_13.1 [template = constants.%.7] // CHECK:STDOUT: %.loc13_13.2: type = converted %T.ref, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc13: %.9 = assoc_entity element1, %F.decl [template = constants.%.10] // CHECK:STDOUT: @@ -884,8 +884,8 @@ impl i32 as Empty { // CHECK:STDOUT: %return.param_patt: = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @I.%T -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -936,8 +936,8 @@ impl i32 as Empty { // CHECK:STDOUT: %return.param_patt: = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref: type = name_ref T, @__global_init.%T -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/convert.carbon b/toolchain/check/testdata/let/convert.carbon index 8d3097d0a5b1a..63c9f63cc8be4 100644 --- a/toolchain/check/testdata/let/convert.carbon +++ b/toolchain/check/testdata/let/convert.carbon @@ -60,8 +60,8 @@ fn F() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32.loc11, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/fail_generic.carbon b/toolchain/check/testdata/let/fail_generic.carbon index 21f1c589464c0..ce8c99124a667 100644 --- a/toolchain/check/testdata/let/fail_generic.carbon +++ b/toolchain/check/testdata/let/fail_generic.carbon @@ -102,10 +102,10 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_17.1: type = value_of_initializer %int.make_type_32.loc12_17 [template = i32] // CHECK:STDOUT: %.loc12_17.2: type = converted %int.make_type_32.loc12_17, %.loc12_17.1 [template = i32] -// CHECK:STDOUT: %param.loc12_7: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc12_7 -// CHECK:STDOUT: %param.loc12_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc12_14 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/global.carbon b/toolchain/check/testdata/let/global.carbon index 525fddf94434c..9727696b5b154 100644 --- a/toolchain/check/testdata/let/global.carbon +++ b/toolchain/check/testdata/let/global.carbon @@ -55,8 +55,8 @@ fn F() -> i32 { return n; } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_11.2: type = converted %int.make_type_32, %.loc13_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/local.carbon b/toolchain/check/testdata/let/local.carbon index 62f47eef7b1f5..63e3935c74504 100644 --- a/toolchain/check/testdata/let/local.carbon +++ b/toolchain/check/testdata/let/local.carbon @@ -56,10 +56,10 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_17.1: type = value_of_initializer %int.make_type_32.loc11_17 [template = i32] // CHECK:STDOUT: %.loc11_17.2: type = converted %int.make_type_32.loc11_17, %.loc11_17.1 [template = i32] -// CHECK:STDOUT: %param.loc11_7: i32 = param runtime_param0 -// CHECK:STDOUT: %a: i32 = bind_name a, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_14 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/shadowed_decl.carbon b/toolchain/check/testdata/let/shadowed_decl.carbon index 720d1e59cb247..d5c8f3639eca9 100644 --- a/toolchain/check/testdata/let/shadowed_decl.carbon +++ b/toolchain/check/testdata/let/shadowed_decl.carbon @@ -58,10 +58,10 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_17.1: type = value_of_initializer %int.make_type_32.loc11_17 [template = i32] // CHECK:STDOUT: %.loc11_17.2: type = converted %int.make_type_32.loc11_17, %.loc11_17.1 [template = i32] -// CHECK:STDOUT: %param.loc11_7: i32 = param runtime_param0 -// CHECK:STDOUT: %a.loc11: i32 = bind_name a, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_14: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_14 +// CHECK:STDOUT: %a.param: i32 = param runtime_param0 +// CHECK:STDOUT: %a.loc11: i32 = bind_name a, %a.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/add_to_import.carbon b/toolchain/check/testdata/namespace/add_to_import.carbon index 096e9f8bbc085..e1c496771578e 100644 --- a/toolchain/check/testdata/namespace/add_to_import.carbon +++ b/toolchain/check/testdata/namespace/add_to_import.carbon @@ -92,8 +92,8 @@ var a: i32 = NS.A(); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc4_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_14.2: type = converted %int.make_type_32, %.loc4_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_8.1: type = value_of_initializer %int.make_type_32 [template = i32] diff --git a/toolchain/check/testdata/namespace/alias.carbon b/toolchain/check/testdata/namespace/alias.carbon index e29d621ba18a2..9f34420d291ba 100644 --- a/toolchain/check/testdata/namespace/alias.carbon +++ b/toolchain/check/testdata/namespace/alias.carbon @@ -72,8 +72,8 @@ fn D() -> i32 { return C(); } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_14.2: type = converted %int.make_type_32, %.loc15_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -82,8 +82,8 @@ fn D() -> i32 { return C(); } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc17_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc17_11.2: type = converted %int.make_type_32, %.loc17_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %NS.ref.loc19: = name_ref NS, %NS [template = %NS] // CHECK:STDOUT: %A.ref: %A.type = name_ref A, %A.decl [template = constants.%A] @@ -95,8 +95,8 @@ fn D() -> i32 { return C(); } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc21_11.2: type = converted %int.make_type_32, %.loc21_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon b/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon index 159ce845de94d..15c81418950d6 100644 --- a/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon +++ b/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon @@ -64,8 +64,8 @@ fn ns.A() -> i32 { return 0; } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc22_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc22_14.2: type = converted %int.make_type_32, %.loc22_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/fail_params.carbon b/toolchain/check/testdata/namespace/fail_params.carbon index 816728e5ebc49..9cd326a71d7b4 100644 --- a/toolchain/check/testdata/namespace/fail_params.carbon +++ b/toolchain/check/testdata/namespace/fail_params.carbon @@ -84,19 +84,19 @@ fn D(T:! type).F() {} // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc24_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc24_16.2: type = converted %int.make_type_32, %.loc24_16.1 [template = i32] -// CHECK:STDOUT: %param.loc24: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param.loc24 +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: %B: = namespace [template] {} // CHECK:STDOUT: %T.ref: type = name_ref T, %T [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc30_14: type = param runtime_param -// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %param.loc30_14 [symbolic = constants.%T] -// CHECK:STDOUT: %param.loc30_24: %T = param runtime_param0 -// CHECK:STDOUT: %x: %T = bind_name x, %param.loc30_24 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] +// CHECK:STDOUT: %x.param: %T = param runtime_param0 +// CHECK:STDOUT: %x: %T = bind_name x, %x.param // CHECK:STDOUT: %C: = namespace [template] {} // CHECK:STDOUT: %D: = namespace [template] {} // CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.2] {} { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc39_6.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc39_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc39_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc39_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/merging_with_indirections.carbon b/toolchain/check/testdata/namespace/merging_with_indirections.carbon index 586e1452727be..48084d59f156f 100644 --- a/toolchain/check/testdata/namespace/merging_with_indirections.carbon +++ b/toolchain/check/testdata/namespace/merging_with_indirections.carbon @@ -134,8 +134,8 @@ fn Run() { // CHECK:STDOUT: } { // CHECK:STDOUT: %NS1.ref: = name_ref NS1, imports.%NS1 [template = imports.%NS1] // CHECK:STDOUT: %A.ref: type = name_ref A, imports.%import_ref.2 [template = constants.%A] -// CHECK:STDOUT: %param: %A = param runtime_param0 -// CHECK:STDOUT: %return: ref %A = return_slot %param +// CHECK:STDOUT: %return.param: %A = param runtime_param0 +// CHECK:STDOUT: %return: ref %A = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/shadow.carbon b/toolchain/check/testdata/namespace/shadow.carbon index 0dc08c307e4c5..e218bd7238672 100644 --- a/toolchain/check/testdata/namespace/shadow.carbon +++ b/toolchain/check/testdata/namespace/shadow.carbon @@ -81,8 +81,8 @@ fn N.M.B() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc18: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_15.1: type = value_of_initializer %int.make_type_32.loc18 [template = i32] // CHECK:STDOUT: %.loc18_15.2: type = converted %int.make_type_32.loc18, %.loc18_15.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/and.carbon b/toolchain/check/testdata/operators/builtin/and.carbon index da27d0451e7c2..798dc323f9b9e 100644 --- a/toolchain/check/testdata/operators/builtin/and.carbon +++ b/toolchain/check/testdata/operators/builtin/and.carbon @@ -79,8 +79,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc11_11.2: type = converted %bool.make_type, %.loc11_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -89,8 +89,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_11.2: type = converted %bool.make_type, %.loc12_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %And.decl: %And.type = fn_decl @And [template = constants.%And] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -99,8 +99,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_13.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc14_13.2: type = converted %bool.make_type, %.loc14_13.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Constant.decl: %Constant.type = fn_decl @Constant [template = constants.%Constant] {} {} // CHECK:STDOUT: %PartialConstant.decl: %PartialConstant.type = fn_decl @PartialConstant [template = constants.%PartialConstant] { @@ -110,8 +110,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type.loc25: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc25_23.1: type = value_of_initializer %bool.make_type.loc25 [template = bool] // CHECK:STDOUT: %.loc25_23.2: type = converted %bool.make_type.loc25, %.loc25_23.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %x: bool = bind_name x, %param +// CHECK:STDOUT: %x.param: bool = param runtime_param0 +// CHECK:STDOUT: %x: bool = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/fail_and_or_partial_constant.carbon b/toolchain/check/testdata/operators/builtin/fail_and_or_partial_constant.carbon index 027a4f3169d03..5632719c41653 100644 --- a/toolchain/check/testdata/operators/builtin/fail_and_or_partial_constant.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_and_or_partial_constant.carbon @@ -83,8 +83,8 @@ fn KnownValueButNonConstantCondition(x: bool) { // CHECK:STDOUT: %bool.make_type.loc4: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc4_23.1: type = value_of_initializer %bool.make_type.loc4 [template = bool] // CHECK:STDOUT: %.loc4_23.2: type = converted %bool.make_type.loc4, %.loc4_23.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %x: bool = bind_name x, %param +// CHECK:STDOUT: %x.param: bool = param runtime_param0 +// CHECK:STDOUT: %x: bool = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -190,8 +190,8 @@ fn KnownValueButNonConstantCondition(x: bool) { // CHECK:STDOUT: %bool.make_type.loc4: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc4_41.1: type = value_of_initializer %bool.make_type.loc4 [template = bool] // CHECK:STDOUT: %.loc4_41.2: type = converted %bool.make_type.loc4, %.loc4_41.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %x: bool = bind_name x, %param +// CHECK:STDOUT: %x.param: bool = param runtime_param0 +// CHECK:STDOUT: %x: bool = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon b/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon index f79d80336df17..cc7c8917dc5ef 100644 --- a/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon @@ -113,8 +113,8 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon b/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon index 515ff239cb6b8..e955bdfd3767a 100644 --- a/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon @@ -66,8 +66,8 @@ fn Main() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Main.decl: %Main.type = fn_decl @Main [template = constants.%Main] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon b/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon index ff5ddde847d7d..eac8a24f83074 100644 --- a/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon @@ -73,8 +73,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon b/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon index 11becaa4ca109..2786dac9c2b92 100644 --- a/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon @@ -67,8 +67,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/or.carbon b/toolchain/check/testdata/operators/builtin/or.carbon index 9c380970aab3c..dafec45418cca 100644 --- a/toolchain/check/testdata/operators/builtin/or.carbon +++ b/toolchain/check/testdata/operators/builtin/or.carbon @@ -79,8 +79,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc11_11.2: type = converted %bool.make_type, %.loc11_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -89,8 +89,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_11.2: type = converted %bool.make_type, %.loc12_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Or.decl: %Or.type = fn_decl @Or [template = constants.%Or] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -99,8 +99,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_12.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc14_12.2: type = converted %bool.make_type, %.loc14_12.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Constant.decl: %Constant.type = fn_decl @Constant [template = constants.%Constant] {} {} // CHECK:STDOUT: %PartialConstant.decl: %PartialConstant.type = fn_decl @PartialConstant [template = constants.%PartialConstant] { @@ -110,8 +110,8 @@ fn PartialConstant(x: bool) { // CHECK:STDOUT: %bool.make_type.loc25: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc25_23.1: type = value_of_initializer %bool.make_type.loc25 [template = bool] // CHECK:STDOUT: %.loc25_23.2: type = converted %bool.make_type.loc25, %.loc25_23.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %x: bool = bind_name x, %param +// CHECK:STDOUT: %x.param: bool = param runtime_param0 +// CHECK:STDOUT: %x: bool = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/unary_op.carbon b/toolchain/check/testdata/operators/builtin/unary_op.carbon index 2277f79c3d53c..674c0de7179be 100644 --- a/toolchain/check/testdata/operators/builtin/unary_op.carbon +++ b/toolchain/check/testdata/operators/builtin/unary_op.carbon @@ -71,10 +71,10 @@ fn Constant() { // CHECK:STDOUT: %bool.make_type.loc11_20: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_20.1: type = value_of_initializer %bool.make_type.loc11_20 [template = bool] // CHECK:STDOUT: %.loc11_20.2: type = converted %bool.make_type.loc11_20, %.loc11_20.1 [template = bool] -// CHECK:STDOUT: %param.loc11_9: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: bool = param runtime_param1 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc11_17 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param1 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %bool.make_type.loc15: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc15_15.1: type = value_of_initializer %bool.make_type.loc15 [template = bool] diff --git a/toolchain/check/testdata/operators/overloaded/add.carbon b/toolchain/check/testdata/operators/overloaded/add.carbon index 4e75fd8cc0106..50cd064e2a456 100644 --- a/toolchain/check/testdata/operators/overloaded/add.carbon +++ b/toolchain/check/testdata/operators/overloaded/add.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/bit_and.carbon b/toolchain/check/testdata/operators/overloaded/bit_and.carbon index 6ffacb50a2919..c4eb3824f0d14 100644 --- a/toolchain/check/testdata/operators/overloaded/bit_and.carbon +++ b/toolchain/check/testdata/operators/overloaded/bit_and.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/bit_complement.carbon b/toolchain/check/testdata/operators/overloaded/bit_complement.carbon index 3272bfb088b9e..987bf9e2a948f 100644 --- a/toolchain/check/testdata/operators/overloaded/bit_complement.carbon +++ b/toolchain/check/testdata/operators/overloaded/bit_complement.carbon @@ -86,10 +86,10 @@ fn TestOp(a: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc23_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc23_12 -// CHECK:STDOUT: %param.loc23_17: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc23_17 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -109,10 +109,10 @@ fn TestOp(a: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_23: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_20: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_20 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/bit_or.carbon b/toolchain/check/testdata/operators/overloaded/bit_or.carbon index 3570ed4256872..f5f03c0510b5a 100644 --- a/toolchain/check/testdata/operators/overloaded/bit_or.carbon +++ b/toolchain/check/testdata/operators/overloaded/bit_or.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/bit_xor.carbon b/toolchain/check/testdata/operators/overloaded/bit_xor.carbon index 4153078bb8142..108442c25f9c0 100644 --- a/toolchain/check/testdata/operators/overloaded/bit_xor.carbon +++ b/toolchain/check/testdata/operators/overloaded/bit_xor.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/dec.carbon b/toolchain/check/testdata/operators/overloaded/dec.carbon index 379ff125b25ff..85140aa6da9f7 100644 --- a/toolchain/check/testdata/operators/overloaded/dec.carbon +++ b/toolchain/check/testdata/operators/overloaded/dec.carbon @@ -97,8 +97,8 @@ fn TestOp() { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc18_21: type = ptr_type %C [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %self: %.3 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %self: %.3 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.6] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/div.carbon b/toolchain/check/testdata/operators/overloaded/div.carbon index ce7d9e4036193..6780bbdc0e25d 100644 --- a/toolchain/check/testdata/operators/overloaded/div.carbon +++ b/toolchain/check/testdata/operators/overloaded/div.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/eq.carbon b/toolchain/check/testdata/operators/overloaded/eq.carbon index c8c13043734af..0c42576a06083 100644 --- a/toolchain/check/testdata/operators/overloaded/eq.carbon +++ b/toolchain/check/testdata/operators/overloaded/eq.carbon @@ -164,12 +164,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_29.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc11_29.2: type = converted %bool.make_type, %.loc11_29.1 [template = bool] -// CHECK:STDOUT: %param.loc11_15: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc11_15 -// CHECK:STDOUT: %param.loc11_21: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc11_21 -// CHECK:STDOUT: %param.loc11_26: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc11_26 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestNotEqual.decl: %TestNotEqual.type = fn_decl @TestNotEqual [template = constants.%TestNotEqual] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a @@ -184,12 +184,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc15_32.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc15_32.2: type = converted %bool.make_type, %.loc15_32.1 [template = bool] -// CHECK:STDOUT: %param.loc15_18: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc15_18 -// CHECK:STDOUT: %param.loc15_24: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc15_24 -// CHECK:STDOUT: %param.loc15_29: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc15_29 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -215,12 +215,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc7_34.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc7_34.2: type = converted %bool.make_type, %.loc7_34.1 [template = bool] -// CHECK:STDOUT: %param.loc7_16: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc7_16 -// CHECK:STDOUT: %param.loc7_26: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc7_26 -// CHECK:STDOUT: %param.loc7_31: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc7_31 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %NotEqual.decl: %NotEqual.type.1 = fn_decl @NotEqual.1 [template = constants.%NotEqual.1] { // CHECK:STDOUT: %self.patt: %C = binding_pattern self @@ -235,12 +235,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc8_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc8_37.2: type = converted %bool.make_type, %.loc8_37.1 [template = bool] -// CHECK:STDOUT: %param.loc8_19: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc8_19 -// CHECK:STDOUT: %param.loc8_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc8_29 -// CHECK:STDOUT: %param.loc8_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc8_34 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6: = interface_witness (%Equal.decl, %NotEqual.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -389,12 +389,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc6_29.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc6_29.2: type = converted %bool.make_type, %.loc6_29.1 [template = bool] -// CHECK:STDOUT: %param.loc6_15: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc6_15 -// CHECK:STDOUT: %param.loc6_21: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc6_21 -// CHECK:STDOUT: %param.loc6_26: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc6_26 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestNotEqual.decl: %TestNotEqual.type = fn_decl @TestNotEqual [template = constants.%TestNotEqual] { // CHECK:STDOUT: %a.patt: %D = binding_pattern a @@ -409,12 +409,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_32.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc14_32.2: type = converted %bool.make_type, %.loc14_32.1 [template = bool] -// CHECK:STDOUT: %param.loc14_18: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc14_18 -// CHECK:STDOUT: %param.loc14_24: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc14_24 -// CHECK:STDOUT: %param.loc14_29: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc14_29 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -580,12 +580,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_30.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_30.2: type = converted %bool.make_type, %.loc12_30.1 [template = bool] -// CHECK:STDOUT: %param.loc12_16: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc12_16 -// CHECK:STDOUT: %param.loc12_22: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc12_22 -// CHECK:STDOUT: %param.loc12_27: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc12_27 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestLhsBad.decl: %TestLhsBad.type = fn_decl @TestLhsBad [template = constants.%TestLhsBad] { // CHECK:STDOUT: %a.patt: %D = binding_pattern a @@ -600,12 +600,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc26_30.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc26_30.2: type = converted %bool.make_type, %.loc26_30.1 [template = bool] -// CHECK:STDOUT: %param.loc26_16: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc26_16 -// CHECK:STDOUT: %param.loc26_22: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_22 -// CHECK:STDOUT: %param.loc26_27: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc26_27 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -651,12 +651,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc8_34.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc8_34.2: type = converted %bool.make_type, %.loc8_34.1 [template = bool] -// CHECK:STDOUT: %param.loc8_16: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc8_16 -// CHECK:STDOUT: %param.loc8_26: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc8_26 -// CHECK:STDOUT: %param.loc8_31: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc8_31 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %NotEqual.decl: %NotEqual.type.1 = fn_decl @NotEqual.1 [template = constants.%NotEqual.1] { // CHECK:STDOUT: %self.patt: %C = binding_pattern self @@ -671,12 +671,12 @@ fn TestLhsBad(a: D, b: C) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc9_37.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc9_37.2: type = converted %bool.make_type, %.loc9_37.1 [template = bool] -// CHECK:STDOUT: %param.loc9_19: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc9_19 -// CHECK:STDOUT: %param.loc9_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc9_29 -// CHECK:STDOUT: %param.loc9_34: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc9_34 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc7: = interface_witness (%Equal.decl, %NotEqual.decl) [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/fail_assign_non_ref.carbon b/toolchain/check/testdata/operators/overloaded/fail_assign_non_ref.carbon index e0405f6537cb6..232a791c11164 100644 --- a/toolchain/check/testdata/operators/overloaded/fail_assign_non_ref.carbon +++ b/toolchain/check/testdata/operators/overloaded/fail_assign_non_ref.carbon @@ -124,8 +124,8 @@ fn TestAddAssignNonRef(a: C, b: C) { // CHECK:STDOUT: %a.param_patt: %C = param_pattern %a.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAddAssignNonRef.decl: %TestAddAssignNonRef.type = fn_decl @TestAddAssignNonRef [template = constants.%TestAddAssignNonRef] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a @@ -135,10 +135,10 @@ fn TestAddAssignNonRef(a: C, b: C) { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc33_27: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc33_33: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc33_25: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc33_25 -// CHECK:STDOUT: %param.loc33_31: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc33_31 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -164,8 +164,8 @@ fn TestAddAssignNonRef(a: C, b: C) { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc16_21: type = ptr_type %C [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %self: %.3 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %self: %.3 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15: = interface_witness (%Op.decl) [template = constants.%.6] // CHECK:STDOUT: @@ -185,10 +185,10 @@ fn TestAddAssignNonRef(a: C, b: C) { // CHECK:STDOUT: %C.ref.loc19_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc19_21: type = ptr_type %C [template = constants.%.3] // CHECK:STDOUT: %C.ref.loc19_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc19_18: %.3 = param runtime_param0 -// CHECK:STDOUT: %self: %.3 = bind_name self, %param.loc19_18 -// CHECK:STDOUT: %param.loc19_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc19_29 +// CHECK:STDOUT: %self.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %self: %.3 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc18: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/fail_no_impl.carbon b/toolchain/check/testdata/operators/overloaded/fail_no_impl.carbon index 9be1f6d3b17d6..35d6cdc981dca 100644 --- a/toolchain/check/testdata/operators/overloaded/fail_no_impl.carbon +++ b/toolchain/check/testdata/operators/overloaded/fail_no_impl.carbon @@ -139,10 +139,10 @@ fn TestRef(b: C) { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc15_17: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc15_23: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc15_15: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc15_15 -// CHECK:STDOUT: %param.loc15_20: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc15_20 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestBinary.decl: %TestBinary.type = fn_decl @TestBinary [template = constants.%TestBinary] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a @@ -155,20 +155,20 @@ fn TestRef(b: C) { // CHECK:STDOUT: %C.ref.loc23_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc23_24: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc23_30: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_16: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc23_16 -// CHECK:STDOUT: %param.loc23_22: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc23_22 -// CHECK:STDOUT: %param.loc23_27: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc23_27 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestRef.decl: %TestRef.type = fn_decl @TestRef [template = constants.%TestRef] { // CHECK:STDOUT: %b.patt: %C = binding_pattern b // CHECK:STDOUT: %b.param_patt: %C = param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %b: %C = bind_name b, %param +// CHECK:STDOUT: %b.param: %C = param runtime_param0 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/fail_no_impl_for_arg.carbon b/toolchain/check/testdata/operators/overloaded/fail_no_impl_for_arg.carbon index ab5ba5749c9b4..599576ebd8ae3 100644 --- a/toolchain/check/testdata/operators/overloaded/fail_no_impl_for_arg.carbon +++ b/toolchain/check/testdata/operators/overloaded/fail_no_impl_for_arg.carbon @@ -165,20 +165,20 @@ fn TestAssign(b: D) { // CHECK:STDOUT: %C.ref.loc23_12: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D.decl [template = constants.%D] // CHECK:STDOUT: %C.ref.loc23_24: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_10: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc23_10 -// CHECK:STDOUT: %param.loc23_16: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc23_16 -// CHECK:STDOUT: %param.loc23_21: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc23_21 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %b.patt: %D = binding_pattern b // CHECK:STDOUT: %b.param_patt: %D = param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D.decl [template = constants.%D] -// CHECK:STDOUT: %param: %D = param runtime_param0 -// CHECK:STDOUT: %b: %D = bind_name b, %param +// CHECK:STDOUT: %b.param: %D = param runtime_param0 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -228,12 +228,12 @@ fn TestAssign(b: D) { // CHECK:STDOUT: %C.ref.loc17_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc17_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc17_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc17_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc17_13 -// CHECK:STDOUT: %param.loc17_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc17_23 -// CHECK:STDOUT: %param.loc17_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc17_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc16: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -253,10 +253,10 @@ fn TestAssign(b: D) { // CHECK:STDOUT: %C.ref.loc20_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc20_21: type = ptr_type %C [template = constants.%.5] // CHECK:STDOUT: %C.ref.loc20_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc20_18: %.5 = param runtime_param0 -// CHECK:STDOUT: %self: %.5 = bind_name self, %param.loc20_18 -// CHECK:STDOUT: %param.loc20_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc20_29 +// CHECK:STDOUT: %self.param: %.5 = param runtime_param0 +// CHECK:STDOUT: %self: %.5 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19: = interface_witness (%Op.decl) [template = constants.%.7] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/implicit_as.carbon b/toolchain/check/testdata/operators/overloaded/implicit_as.carbon index d41c0857acb3f..f82df0d5d5710 100644 --- a/toolchain/check/testdata/operators/overloaded/implicit_as.carbon +++ b/toolchain/check/testdata/operators/overloaded/implicit_as.carbon @@ -143,16 +143,16 @@ fn Test() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc25_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc25_16.2: type = converted %int.make_type_32, %.loc25_16.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: %Sink_X.decl: %Sink_X.type = fn_decl @Sink_X [template = constants.%Sink_X] { // CHECK:STDOUT: %x.patt: %X = binding_pattern x // CHECK:STDOUT: %x.param_patt: %X = param_pattern %x.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %x: %X = bind_name x, %param +// CHECK:STDOUT: %x.param: %X = param runtime_param0 +// CHECK:STDOUT: %x: %X = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: %Source.decl: %Source.type = fn_decl @Source [template = constants.%Source] { // CHECK:STDOUT: %T.patt.loc27_11.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc27_11.2 (constants.%T.patt)] @@ -161,10 +161,10 @@ fn Test() { // CHECK:STDOUT: %return.param_patt: @Source.%T.loc27_11.2 (%T) = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc27_24: type = name_ref T, %T.loc27_11.1 [symbolic = %T.loc27_11.2 (constants.%T)] -// CHECK:STDOUT: %param.loc27_12: type = param runtime_param -// CHECK:STDOUT: %T.loc27_11.1: type = bind_symbolic_name T, 0, %param.loc27_12 [symbolic = %T.loc27_11.2 (constants.%T)] -// CHECK:STDOUT: %param.loc27_21: @Source.%T.loc27_11.2 (%T) = param runtime_param0 -// CHECK:STDOUT: %return: ref @Source.%T.loc27_11.2 (%T) = return_slot %param.loc27_21 +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc27_11.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc27_11.2 (constants.%T)] +// CHECK:STDOUT: %return.param: @Source.%T.loc27_11.2 (%T) = param runtime_param0 +// CHECK:STDOUT: %return: ref @Source.%T.loc27_11.2 (%T) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Test.decl: %Test.type = fn_decl @Test [template = constants.%Test] {} {} // CHECK:STDOUT: } @@ -200,10 +200,10 @@ fn Test() { // CHECK:STDOUT: %.loc16_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_20.2: type = converted %int.make_type_32, %.loc16_20.1 [template = i32] // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param.loc16_18: i32 = param runtime_param0 -// CHECK:STDOUT: %self: i32 = bind_name self, %param.loc16_18 -// CHECK:STDOUT: %param.loc16_27: %X = param runtime_param1 -// CHECK:STDOUT: %return: ref %X = return_slot %param.loc16_27 +// CHECK:STDOUT: %self.param: i32 = param runtime_param0 +// CHECK:STDOUT: %self: i32 = bind_name self, %self.param +// CHECK:STDOUT: %return.param: %X = param runtime_param1 +// CHECK:STDOUT: %return: ref %X = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc15_32: = interface_witness (%Convert.decl) [template = constants.%.9] // CHECK:STDOUT: @@ -223,10 +223,10 @@ fn Test() { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc20_28.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc20_28.2: type = converted %int.make_type_32, %.loc20_28.1 [template = i32] -// CHECK:STDOUT: %param.loc20_18: %X = param runtime_param0 -// CHECK:STDOUT: %self: %X = bind_name self, %param.loc20_18 -// CHECK:STDOUT: %param.loc20_25: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc20_25 +// CHECK:STDOUT: %self.param: %X = param runtime_param0 +// CHECK:STDOUT: %self: %X = bind_name self, %self.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc19_32: = interface_witness (%Convert.decl) [template = constants.%.13] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/inc.carbon b/toolchain/check/testdata/operators/overloaded/inc.carbon index 7be1b546243c7..d3ccdc512d913 100644 --- a/toolchain/check/testdata/operators/overloaded/inc.carbon +++ b/toolchain/check/testdata/operators/overloaded/inc.carbon @@ -97,8 +97,8 @@ fn TestOp() { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc18_21: type = ptr_type %C [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %self: %.3 = bind_name self, %param +// CHECK:STDOUT: %self.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %self: %.3 = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.6] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/left_shift.carbon b/toolchain/check/testdata/operators/overloaded/left_shift.carbon index cdc1b9c0d3081..16f64a462434e 100644 --- a/toolchain/check/testdata/operators/overloaded/left_shift.carbon +++ b/toolchain/check/testdata/operators/overloaded/left_shift.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/mod.carbon b/toolchain/check/testdata/operators/overloaded/mod.carbon index 6afb58c57456a..6e17afd092fa9 100644 --- a/toolchain/check/testdata/operators/overloaded/mod.carbon +++ b/toolchain/check/testdata/operators/overloaded/mod.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/mul.carbon b/toolchain/check/testdata/operators/overloaded/mul.carbon index 41a88c1b970fc..ec1f7453460c7 100644 --- a/toolchain/check/testdata/operators/overloaded/mul.carbon +++ b/toolchain/check/testdata/operators/overloaded/mul.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/negate.carbon b/toolchain/check/testdata/operators/overloaded/negate.carbon index 7d758d450fc08..02b74f384dd30 100644 --- a/toolchain/check/testdata/operators/overloaded/negate.carbon +++ b/toolchain/check/testdata/operators/overloaded/negate.carbon @@ -86,10 +86,10 @@ fn TestOp(a: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc23_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc23_12 -// CHECK:STDOUT: %param.loc23_17: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc23_17 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -109,10 +109,10 @@ fn TestOp(a: C) -> C { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_23: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_20: %C = param runtime_param1 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_20 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %return.param: %C = param runtime_param1 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/ordered.carbon b/toolchain/check/testdata/operators/overloaded/ordered.carbon index ecf9d5eb976d9..436b7023149e1 100644 --- a/toolchain/check/testdata/operators/overloaded/ordered.carbon +++ b/toolchain/check/testdata/operators/overloaded/ordered.carbon @@ -180,12 +180,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc13_28.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc13_28.2: type = converted %bool.make_type, %.loc13_28.1 [template = bool] -// CHECK:STDOUT: %param.loc13_14: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc13_14 -// CHECK:STDOUT: %param.loc13_20: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc13_20 -// CHECK:STDOUT: %param.loc13_25: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc13_25 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestLessEqual.decl: %TestLessEqual.type = fn_decl @TestLessEqual [template = constants.%TestLessEqual] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a @@ -200,12 +200,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_33.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc17_33.2: type = converted %bool.make_type, %.loc17_33.1 [template = bool] -// CHECK:STDOUT: %param.loc17_19: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc17_19 -// CHECK:STDOUT: %param.loc17_25: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc17_25 -// CHECK:STDOUT: %param.loc17_30: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc17_30 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestGreater.decl: %TestGreater.type = fn_decl @TestGreater [template = constants.%TestGreater] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a @@ -220,12 +220,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc21_31.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc21_31.2: type = converted %bool.make_type, %.loc21_31.1 [template = bool] -// CHECK:STDOUT: %param.loc21_17: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc21_17 -// CHECK:STDOUT: %param.loc21_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc21_23 -// CHECK:STDOUT: %param.loc21_28: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc21_28 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestGreaterEqual.decl: %TestGreaterEqual.type = fn_decl @TestGreaterEqual [template = constants.%TestGreaterEqual] { // CHECK:STDOUT: %a.patt: %C = binding_pattern a @@ -240,12 +240,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc25_36.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc25_36.2: type = converted %bool.make_type, %.loc25_36.1 [template = bool] -// CHECK:STDOUT: %param.loc25_22: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc25_22 -// CHECK:STDOUT: %param.loc25_28: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc25_28 -// CHECK:STDOUT: %param.loc25_33: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc25_33 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -273,12 +273,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc7_33.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc7_33.2: type = converted %bool.make_type, %.loc7_33.1 [template = bool] -// CHECK:STDOUT: %param.loc7_15: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc7_15 -// CHECK:STDOUT: %param.loc7_25: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc7_25 -// CHECK:STDOUT: %param.loc7_30: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc7_30 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %LessOrEquivalent.decl: %LessOrEquivalent.type.1 = fn_decl @LessOrEquivalent.1 [template = constants.%LessOrEquivalent.1] { // CHECK:STDOUT: %self.patt: %C = binding_pattern self @@ -293,12 +293,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc8_45.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc8_45.2: type = converted %bool.make_type, %.loc8_45.1 [template = bool] -// CHECK:STDOUT: %param.loc8_27: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc8_27 -// CHECK:STDOUT: %param.loc8_37: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc8_37 -// CHECK:STDOUT: %param.loc8_42: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc8_42 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Greater.decl: %Greater.type.1 = fn_decl @Greater.1 [template = constants.%Greater.1] { // CHECK:STDOUT: %self.patt: %C = binding_pattern self @@ -313,12 +313,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc9_36.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc9_36.2: type = converted %bool.make_type, %.loc9_36.1 [template = bool] -// CHECK:STDOUT: %param.loc9_18: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc9_18 -// CHECK:STDOUT: %param.loc9_28: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc9_28 -// CHECK:STDOUT: %param.loc9_33: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc9_33 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %GreaterOrEquivalent.decl: %GreaterOrEquivalent.type.1 = fn_decl @GreaterOrEquivalent.1 [template = constants.%GreaterOrEquivalent.1] { // CHECK:STDOUT: %self.patt: %C = binding_pattern self @@ -333,12 +333,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc10_48.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc10_48.2: type = converted %bool.make_type, %.loc10_48.1 [template = bool] -// CHECK:STDOUT: %param.loc10_30: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc10_30 -// CHECK:STDOUT: %param.loc10_40: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc10_40 -// CHECK:STDOUT: %param.loc10_45: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc10_45 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc6: = interface_witness (%Less.decl, %LessOrEquivalent.decl, %Greater.decl, %GreaterOrEquivalent.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -567,12 +567,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc6_28.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc6_28.2: type = converted %bool.make_type, %.loc6_28.1 [template = bool] -// CHECK:STDOUT: %param.loc6_14: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc6_14 -// CHECK:STDOUT: %param.loc6_20: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc6_20 -// CHECK:STDOUT: %param.loc6_25: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc6_25 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestLessEqual.decl: %TestLessEqual.type = fn_decl @TestLessEqual [template = constants.%TestLessEqual] { // CHECK:STDOUT: %a.patt: %D = binding_pattern a @@ -587,12 +587,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_33.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc14_33.2: type = converted %bool.make_type, %.loc14_33.1 [template = bool] -// CHECK:STDOUT: %param.loc14_19: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc14_19 -// CHECK:STDOUT: %param.loc14_25: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc14_25 -// CHECK:STDOUT: %param.loc14_30: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc14_30 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestGreater.decl: %TestGreater.type = fn_decl @TestGreater [template = constants.%TestGreater] { // CHECK:STDOUT: %a.patt: %D = binding_pattern a @@ -607,12 +607,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc22_31.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc22_31.2: type = converted %bool.make_type, %.loc22_31.1 [template = bool] -// CHECK:STDOUT: %param.loc22_17: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc22_17 -// CHECK:STDOUT: %param.loc22_23: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc22_23 -// CHECK:STDOUT: %param.loc22_28: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc22_28 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestGreaterEqual.decl: %TestGreaterEqual.type = fn_decl @TestGreaterEqual [template = constants.%TestGreaterEqual] { // CHECK:STDOUT: %a.patt: %D = binding_pattern a @@ -627,12 +627,12 @@ fn TestGreaterEqual(a: D, b: D) -> bool { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc30_36.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc30_36.2: type = converted %bool.make_type, %.loc30_36.1 [template = bool] -// CHECK:STDOUT: %param.loc30_22: %D = param runtime_param0 -// CHECK:STDOUT: %a: %D = bind_name a, %param.loc30_22 -// CHECK:STDOUT: %param.loc30_28: %D = param runtime_param1 -// CHECK:STDOUT: %b: %D = bind_name b, %param.loc30_28 -// CHECK:STDOUT: %param.loc30_33: bool = param runtime_param2 -// CHECK:STDOUT: %return: ref bool = return_slot %param.loc30_33 +// CHECK:STDOUT: %a.param: %D = param runtime_param0 +// CHECK:STDOUT: %a: %D = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %D = param runtime_param1 +// CHECK:STDOUT: %b: %D = bind_name b, %b.param +// CHECK:STDOUT: %return.param: bool = param runtime_param2 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/right_shift.carbon b/toolchain/check/testdata/operators/overloaded/right_shift.carbon index 953a812b40e4d..262452fc144cf 100644 --- a/toolchain/check/testdata/operators/overloaded/right_shift.carbon +++ b/toolchain/check/testdata/operators/overloaded/right_shift.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/overloaded/sub.carbon b/toolchain/check/testdata/operators/overloaded/sub.carbon index 86d97c6f6992a..5a5e26036b774 100644 --- a/toolchain/check/testdata/operators/overloaded/sub.carbon +++ b/toolchain/check/testdata/operators/overloaded/sub.carbon @@ -121,12 +121,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc26_14: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc26_26: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc26_12: %C = param runtime_param0 -// CHECK:STDOUT: %a: %C = bind_name a, %param.loc26_12 -// CHECK:STDOUT: %param.loc26_18: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc26_18 -// CHECK:STDOUT: %param.loc26_23: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc26_23 +// CHECK:STDOUT: %a.param: %C = param runtime_param0 +// CHECK:STDOUT: %a: %C = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %TestAssign.decl: %TestAssign.type = fn_decl @TestAssign [template = constants.%TestAssign] { // CHECK:STDOUT: %a.patt: %.6 = binding_pattern a @@ -137,10 +137,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc30_18: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc30: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc30_25: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc30_16: %.6 = param runtime_param0 -// CHECK:STDOUT: %a: %.6 = bind_name a, %param.loc30_16 -// CHECK:STDOUT: %param.loc30_23: %C = param runtime_param1 -// CHECK:STDOUT: %b: %C = bind_name b, %param.loc30_23 +// CHECK:STDOUT: %a.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %a: %.6 = bind_name a, %a.param +// CHECK:STDOUT: %b.param: %C = param runtime_param1 +// CHECK:STDOUT: %b: %C = bind_name b, %b.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -170,12 +170,12 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc18_15: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc18_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc18_13: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param.loc18_13 -// CHECK:STDOUT: %param.loc18_23: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc18_23 -// CHECK:STDOUT: %param.loc18_28: %C = param runtime_param2 -// CHECK:STDOUT: %return: ref %C = return_slot %param.loc18_28 +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param +// CHECK:STDOUT: %return.param: %C = param runtime_param2 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc17: = interface_witness (%Op.decl) [template = constants.%.4] // CHECK:STDOUT: @@ -195,10 +195,10 @@ fn TestAssign(a: C*, b: C) { // CHECK:STDOUT: %C.ref.loc23_20: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc23_21: type = ptr_type %C [template = constants.%.6] // CHECK:STDOUT: %C.ref.loc23_31: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param.loc23_18: %.6 = param runtime_param0 -// CHECK:STDOUT: %self: %.6 = bind_name self, %param.loc23_18 -// CHECK:STDOUT: %param.loc23_29: %C = param runtime_param1 -// CHECK:STDOUT: %other: %C = bind_name other, %param.loc23_29 +// CHECK:STDOUT: %self.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %self: %.6 = bind_name self, %self.param +// CHECK:STDOUT: %other.param: %C = param runtime_param1 +// CHECK:STDOUT: %other: %C = bind_name other, %other.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc22: = interface_witness (%Op.decl) [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/packages/no_prelude/cross_package_import.carbon b/toolchain/check/testdata/packages/no_prelude/cross_package_import.carbon index 180bc097138b4..480e4ed8de3aa 100644 --- a/toolchain/check/testdata/packages/no_prelude/cross_package_import.carbon +++ b/toolchain/check/testdata/packages/no_prelude/cross_package_import.carbon @@ -261,8 +261,8 @@ fn UseF() { Other.F(); } // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc4_10.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc4_10.2: type = converted %.loc4_10.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %x: %.1 = bind_name x, %param +// CHECK:STDOUT: %x.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %x: %.1 = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/packages/no_prelude/fail_export_name_params.carbon b/toolchain/check/testdata/packages/no_prelude/fail_export_name_params.carbon index 70f6c15c11230..d20ed5f66398f 100644 --- a/toolchain/check/testdata/packages/no_prelude/fail_export_name_params.carbon +++ b/toolchain/check/testdata/packages/no_prelude/fail_export_name_params.carbon @@ -52,15 +52,15 @@ export C2(T:! type); // CHECK:STDOUT: %T.patt.loc4_10.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_10.2 (constants.%T.patt.1)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc4_10.1, runtime_param [symbolic = %T.patt.loc4_10.2 (constants.%T.patt.1)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc4_10.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc4_10.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc4_10.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_10.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %C2.decl: %C2.type = class_decl @C2 [template = constants.%C2.1] { // CHECK:STDOUT: %T.patt.loc5_10.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc5_10.2 (constants.%T.patt.2)] // CHECK:STDOUT: %T.param_patt: type = param_pattern %T.patt.loc5_10.1, runtime_param [symbolic = %T.patt.loc5_10.2 (constants.%T.patt.2)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T.loc5_10.1: type = bind_symbolic_name T, 0, %param [symbolic = %T.loc5_10.2 (constants.%T)] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T.loc5_10.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc5_10.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -115,8 +115,8 @@ export C2(T:! type); // CHECK:STDOUT: } // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %C1: %C1.type = export C1, imports.%import_ref.1 [template = constants.%C1.1] -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %param [symbolic = constants.%T] +// CHECK:STDOUT: %T.param: type = param runtime_param +// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %T.param [symbolic = constants.%T] // CHECK:STDOUT: %C2: %C2.type = export C2, imports.%import_ref.2 [template = constants.%C2.1] // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/packages/no_prelude/missing_prelude.carbon b/toolchain/check/testdata/packages/no_prelude/missing_prelude.carbon index 2dc3415095b9b..8901bbe02315c 100644 --- a/toolchain/check/testdata/packages/no_prelude/missing_prelude.carbon +++ b/toolchain/check/testdata/packages/no_prelude/missing_prelude.carbon @@ -139,8 +139,8 @@ var n: {} = i32; // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc4_16.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc4_16.2: type = converted %.loc4_16.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -210,8 +210,8 @@ var n: {} = i32; // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc8_16.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc8_16.2: type = converted %.loc8_16.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc10_9.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc10_9.2: type = converted %.loc10_9.1, constants.%.1 [template = constants.%.1] @@ -258,8 +258,8 @@ var n: {} = i32; // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc7_21.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc7_21.2: type = converted %.loc7_21.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc9_9.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc9_9.2: type = converted %.loc9_9.1, constants.%.1 [template = constants.%.1] @@ -313,8 +313,8 @@ var n: {} = i32; // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc6_18.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc6_18.2: type = converted %.loc6_18.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc7: = complete_type_witness %.1 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/pointer/address_of_deref.carbon b/toolchain/check/testdata/pointer/address_of_deref.carbon index 2d3d20a32b15e..6abe4c09b12dc 100644 --- a/toolchain/check/testdata/pointer/address_of_deref.carbon +++ b/toolchain/check/testdata/pointer/address_of_deref.carbon @@ -53,8 +53,8 @@ fn F() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32.loc11, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/pointer/arrow.carbon b/toolchain/check/testdata/pointer/arrow.carbon index 8f9c24f2e8200..e4c129ccd5e14 100644 --- a/toolchain/check/testdata/pointer/arrow.carbon +++ b/toolchain/check/testdata/pointer/arrow.carbon @@ -66,8 +66,8 @@ fn Foo(ptr: C*) { // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc16: type = ptr_type %C [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param0 -// CHECK:STDOUT: %ptr: %.2 = bind_name ptr, %param +// CHECK:STDOUT: %ptr.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %ptr: %.2 = bind_name ptr, %ptr.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -77,8 +77,8 @@ fn Foo(ptr: C*) { // CHECK:STDOUT: %self.param_patt: %C = param_pattern %self.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %self: %C = bind_name self, %param +// CHECK:STDOUT: %self.param: %C = param runtime_param0 +// CHECK:STDOUT: %self: %C = bind_name self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc13_15: type = ptr_type %C [template = constants.%.2] diff --git a/toolchain/check/testdata/pointer/basic.carbon b/toolchain/check/testdata/pointer/basic.carbon index 99c1a80b936be..282128087b024 100644 --- a/toolchain/check/testdata/pointer/basic.carbon +++ b/toolchain/check/testdata/pointer/basic.carbon @@ -55,8 +55,8 @@ fn F() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32.loc11, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/pointer/fail_address_of_value.carbon b/toolchain/check/testdata/pointer/fail_address_of_value.carbon index 66dd68f80696b..5f9c61a45775f 100644 --- a/toolchain/check/testdata/pointer/fail_address_of_value.carbon +++ b/toolchain/check/testdata/pointer/fail_address_of_value.carbon @@ -178,8 +178,8 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] { // CHECK:STDOUT: %return.patt: %.2 = return_slot_pattern @@ -189,8 +189,8 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %.loc13_16.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_16.2: type = converted %int.make_type_32, %.loc13_16.1 [template = i32] // CHECK:STDOUT: %.loc13_19: type = struct_type {.a: i32} [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %AddressOfLiteral.decl: %AddressOfLiteral.type = fn_decl @AddressOfLiteral [template = constants.%AddressOfLiteral] {} {} // CHECK:STDOUT: %AddressOfOperator.decl: %AddressOfOperator.type = fn_decl @AddressOfOperator [template = constants.%AddressOfOperator] {} {} @@ -204,8 +204,8 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %int.make_type_32.loc95: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc95_26.1: type = value_of_initializer %int.make_type_32.loc95 [template = i32] // CHECK:STDOUT: %.loc95_26.2: type = converted %int.make_type_32.loc95, %.loc95_26.1 [template = i32] -// CHECK:STDOUT: %param.loc95_24: i32 = param runtime_param0 -// CHECK:STDOUT: %param.loc95_19: i32 = bind_name param, %param.loc95_24 +// CHECK:STDOUT: %param.param: i32 = param runtime_param0 +// CHECK:STDOUT: %param: i32 = bind_name param, %param.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -302,7 +302,7 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %.loc99_22.3: type = ptr_type i32 [template = constants.%.4] // CHECK:STDOUT: %param_addr.var: ref %.4 = var param_addr // CHECK:STDOUT: %param_addr: ref %.4 = bind_name param_addr, %param_addr.var -// CHECK:STDOUT: %param.ref: i32 = name_ref param, %param.loc95_19 +// CHECK:STDOUT: %param.ref: i32 = name_ref param, %param // CHECK:STDOUT: %.loc99_26: %.4 = addr_of [template = ] // CHECK:STDOUT: assign %param_addr.var, %.loc99_26 // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/pointer/fail_deref_not_pointer.carbon b/toolchain/check/testdata/pointer/fail_deref_not_pointer.carbon index f7d6197235f3a..7d6d96a54428b 100644 --- a/toolchain/check/testdata/pointer/fail_deref_not_pointer.carbon +++ b/toolchain/check/testdata/pointer/fail_deref_not_pointer.carbon @@ -81,8 +81,8 @@ fn Deref(n: i32) { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_13.2: type = converted %int.make_type_32, %.loc11_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %n: i32 = bind_name n, %param +// CHECK:STDOUT: %n.param: i32 = param runtime_param0 +// CHECK:STDOUT: %n: i32 = bind_name n, %n.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/pointer/fail_type_mismatch.carbon b/toolchain/check/testdata/pointer/fail_type_mismatch.carbon index 658cd749fec52..5c8dfb721efcd 100644 --- a/toolchain/check/testdata/pointer/fail_type_mismatch.carbon +++ b/toolchain/check/testdata/pointer/fail_type_mismatch.carbon @@ -88,10 +88,10 @@ fn ConstMismatch(p: const {}*) -> const ({}*) { // CHECK:STDOUT: %.loc11_44.1: type = converted %.loc11_43, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc11_44.2: type = ptr_type %.1 [template = constants.%.4] // CHECK:STDOUT: %.loc11_35: type = const_type %.4 [template = constants.%.5] -// CHECK:STDOUT: %param.loc11_19: %.3 = param runtime_param0 -// CHECK:STDOUT: %p: %.3 = bind_name p, %param.loc11_19 -// CHECK:STDOUT: %param.loc11_32: %.5 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.5 = return_slot %param.loc11_32 +// CHECK:STDOUT: %p.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %p: %.3 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.5 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.5 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/pointer/nested_const.carbon b/toolchain/check/testdata/pointer/nested_const.carbon index a37fa2c372445..0e8e9b0ed6c7b 100644 --- a/toolchain/check/testdata/pointer/nested_const.carbon +++ b/toolchain/check/testdata/pointer/nested_const.carbon @@ -67,10 +67,10 @@ fn F(p: const (const (const i32*)*)) -> const i32 { // CHECK:STDOUT: %.loc12_41.1: type = value_of_initializer %int.make_type_32.loc12_47 [template = i32] // CHECK:STDOUT: %.loc12_41.2: type = converted %int.make_type_32.loc12_47, %.loc12_41.1 [template = i32] // CHECK:STDOUT: %.loc12_41.3: type = const_type i32 [template = constants.%.2] -// CHECK:STDOUT: %param.loc12_7: %.6 = param runtime_param0 -// CHECK:STDOUT: %p: %.6 = bind_name p, %param.loc12_7 -// CHECK:STDOUT: %param.loc12_38: %.2 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param.loc12_38 +// CHECK:STDOUT: %p.param: %.6 = param runtime_param0 +// CHECK:STDOUT: %p: %.6 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/pointer/types.carbon b/toolchain/check/testdata/pointer/types.carbon index f4bdd4082d698..0a0aa0e8f68f2 100644 --- a/toolchain/check/testdata/pointer/types.carbon +++ b/toolchain/check/testdata/pointer/types.carbon @@ -67,10 +67,10 @@ fn ConstPtr(p: const i32*) -> (const i32)* { // CHECK:STDOUT: %.loc11_23.1: type = value_of_initializer %int.make_type_32.loc11_20 [template = i32] // CHECK:STDOUT: %.loc11_23.2: type = converted %int.make_type_32.loc11_20, %.loc11_23.1 [template = i32] // CHECK:STDOUT: %.loc11_23.3: type = ptr_type i32 [template = constants.%.2] -// CHECK:STDOUT: %param.loc11_9: %.2 = param runtime_param0 -// CHECK:STDOUT: %p: %.2 = bind_name p, %param.loc11_9 -// CHECK:STDOUT: %param.loc11_17: %.2 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param.loc11_17 +// CHECK:STDOUT: %p.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %p: %.2 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %ConstPtr.decl: %ConstPtr.type = fn_decl @ConstPtr [template = constants.%ConstPtr] { // CHECK:STDOUT: %p.patt: %.4 = binding_pattern p @@ -88,10 +88,10 @@ fn ConstPtr(p: const i32*) -> (const i32)* { // CHECK:STDOUT: %.loc15_32.2: type = converted %int.make_type_32.loc15_38, %.loc15_32.1 [template = i32] // CHECK:STDOUT: %.loc15_32.3: type = const_type i32 [template = constants.%.3] // CHECK:STDOUT: %.loc15_42: type = ptr_type %.3 [template = constants.%.4] -// CHECK:STDOUT: %param.loc15_14: %.4 = param runtime_param0 -// CHECK:STDOUT: %p: %.4 = bind_name p, %param.loc15_14 -// CHECK:STDOUT: %param.loc15_28: %.4 = param runtime_param1 -// CHECK:STDOUT: %return: ref %.4 = return_slot %param.loc15_28 +// CHECK:STDOUT: %p.param: %.4 = param runtime_param0 +// CHECK:STDOUT: %p: %.4 = bind_name p, %p.param +// CHECK:STDOUT: %return.param: %.4 = param runtime_param1 +// CHECK:STDOUT: %return: ref %.4 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/code_after_return_value.carbon b/toolchain/check/testdata/return/code_after_return_value.carbon index 87e704d7dcfe0..792b2d9f6c888 100644 --- a/toolchain/check/testdata/return/code_after_return_value.carbon +++ b/toolchain/check/testdata/return/code_after_return_value.carbon @@ -72,10 +72,10 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_18.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_18.2: type = converted %int.make_type_32, %.loc11_18.1 [template = i32] -// CHECK:STDOUT: %param.loc11_7: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc11_7 -// CHECK:STDOUT: %param.loc11_15: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc11_15 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_call_in_type.carbon b/toolchain/check/testdata/return/fail_call_in_type.carbon index d40449f7a71c6..2956c142a8953 100644 --- a/toolchain/check/testdata/return/fail_call_in_type.carbon +++ b/toolchain/check/testdata/return/fail_call_in_type.carbon @@ -55,8 +55,8 @@ fn Six() -> ReturnType() { return 6; } // CHECK:STDOUT: %return.patt: type = return_slot_pattern // CHECK:STDOUT: %return.param_patt: type = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %param: type = param runtime_param0 -// CHECK:STDOUT: %return: ref type = return_slot %param +// CHECK:STDOUT: %return.param: type = param runtime_param0 +// CHECK:STDOUT: %return: ref type = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Six.decl: %Six.type = fn_decl @Six [template = constants.%Six] { // CHECK:STDOUT: %return.patt: = return_slot_pattern @@ -66,8 +66,8 @@ fn Six() -> ReturnType() { return 6; } // CHECK:STDOUT: %ReturnType.call: init type = call %ReturnType.ref() // CHECK:STDOUT: %.loc17_24.1: type = value_of_initializer %ReturnType.call // CHECK:STDOUT: %.loc17_24.2: type = converted %ReturnType.call, %.loc17_24.1 -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_error_in_type.carbon b/toolchain/check/testdata/return/fail_error_in_type.carbon index c162dcb3f38e1..f2faf715cf855 100644 --- a/toolchain/check/testdata/return/fail_error_in_type.carbon +++ b/toolchain/check/testdata/return/fail_error_in_type.carbon @@ -45,8 +45,8 @@ fn Six() -> x; // CHECK:STDOUT: %return.param_patt: = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %x.ref: = name_ref x, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_missing_return.carbon b/toolchain/check/testdata/return/fail_missing_return.carbon index 8f6b4a061c21a..53327798af539 100644 --- a/toolchain/check/testdata/return/fail_missing_return.carbon +++ b/toolchain/check/testdata/return/fail_missing_return.carbon @@ -52,8 +52,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_missing_return_empty_tuple.carbon b/toolchain/check/testdata/return/fail_missing_return_empty_tuple.carbon index b27c0372f98c1..281e0e33b5217 100644 --- a/toolchain/check/testdata/return/fail_missing_return_empty_tuple.carbon +++ b/toolchain/check/testdata/return/fail_missing_return_empty_tuple.carbon @@ -47,8 +47,8 @@ fn F() -> () { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc11_12.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc11_12.2: type = converted %.loc11_12.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_return_var_no_returned_var.carbon b/toolchain/check/testdata/return/fail_return_var_no_returned_var.carbon index c00058f0d4c78..461700b8659d7 100644 --- a/toolchain/check/testdata/return/fail_return_var_no_returned_var.carbon +++ b/toolchain/check/testdata/return/fail_return_var_no_returned_var.carbon @@ -53,8 +53,8 @@ fn Procedure() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_return_with_returned_var.carbon b/toolchain/check/testdata/return/fail_return_with_returned_var.carbon index 9e9c343710f8d..d1f08364f412a 100644 --- a/toolchain/check/testdata/return/fail_return_with_returned_var.carbon +++ b/toolchain/check/testdata/return/fail_return_with_returned_var.carbon @@ -83,8 +83,8 @@ fn G() -> C { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_11.2: type = converted %int.make_type_32.loc11, %.loc11_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {} // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { @@ -92,8 +92,8 @@ fn G() -> C { // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc24: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_returned_var_shadow.carbon b/toolchain/check/testdata/return/fail_returned_var_shadow.carbon index 1a5c05e55fecc..d6b079b60aa4c 100644 --- a/toolchain/check/testdata/return/fail_returned_var_shadow.carbon +++ b/toolchain/check/testdata/return/fail_returned_var_shadow.carbon @@ -83,8 +83,8 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32.loc11, %.loc11_19.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %DifferentScopes.decl: %DifferentScopes.type = fn_decl @DifferentScopes [template = constants.%DifferentScopes] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -93,8 +93,8 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc26: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc26_25.1: type = value_of_initializer %int.make_type_32.loc26 [template = i32] // CHECK:STDOUT: %.loc26_25.2: type = converted %int.make_type_32.loc26, %.loc26_25.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_returned_var_type.carbon b/toolchain/check/testdata/return/fail_returned_var_type.carbon index 95635ea96a2df..76c9e5fd0fa99 100644 --- a/toolchain/check/testdata/return/fail_returned_var_type.carbon +++ b/toolchain/check/testdata/return/fail_returned_var_type.carbon @@ -63,8 +63,8 @@ fn Mismatch() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_18.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_18.2: type = converted %int.make_type_32, %.loc11_18.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_type_mismatch.carbon b/toolchain/check/testdata/return/fail_type_mismatch.carbon index 1e1ccc39d3f5d..4f868970357bc 100644 --- a/toolchain/check/testdata/return/fail_type_mismatch.carbon +++ b/toolchain/check/testdata/return/fail_type_mismatch.carbon @@ -81,8 +81,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_value_missing.carbon b/toolchain/check/testdata/return/fail_value_missing.carbon index 9ca81a3cfe81b..81ca819dbad0a 100644 --- a/toolchain/check/testdata/return/fail_value_missing.carbon +++ b/toolchain/check/testdata/return/fail_value_missing.carbon @@ -56,8 +56,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_var_in_type.carbon b/toolchain/check/testdata/return/fail_var_in_type.carbon index 3e4bc6d563b27..fac049bf4affd 100644 --- a/toolchain/check/testdata/return/fail_var_in_type.carbon +++ b/toolchain/check/testdata/return/fail_var_in_type.carbon @@ -55,8 +55,8 @@ fn Six() -> x { return 6; } // CHECK:STDOUT: } { // CHECK:STDOUT: %x.ref: ref type = name_ref x, file.%x // CHECK:STDOUT: %.loc15_13: type = bind_value %x.ref -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/returned_var.carbon b/toolchain/check/testdata/return/returned_var.carbon index 39ce43617ebb4..2d29708ead694 100644 --- a/toolchain/check/testdata/return/returned_var.carbon +++ b/toolchain/check/testdata/return/returned_var.carbon @@ -73,8 +73,8 @@ fn G() -> i32 { // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc16: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -83,8 +83,8 @@ fn G() -> i32 { // CHECK:STDOUT: %int.make_type_32.loc21: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_11.1: type = value_of_initializer %int.make_type_32.loc21 [template = i32] // CHECK:STDOUT: %.loc21_11.2: type = converted %int.make_type_32.loc21, %.loc21_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/returned_var_scope.carbon b/toolchain/check/testdata/return/returned_var_scope.carbon index 88ac03f5cfe7f..933dad5b24430 100644 --- a/toolchain/check/testdata/return/returned_var_scope.carbon +++ b/toolchain/check/testdata/return/returned_var_scope.carbon @@ -75,8 +75,8 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_25.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_25.2: type = converted %int.make_type_32.loc11, %.loc11_25.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %EnclosingButAfter.decl: %EnclosingButAfter.type = fn_decl @EnclosingButAfter [template = constants.%EnclosingButAfter] { // CHECK:STDOUT: %b.patt: bool = binding_pattern b @@ -90,10 +90,10 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc21: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_34.1: type = value_of_initializer %int.make_type_32.loc21 [template = i32] // CHECK:STDOUT: %.loc21_34.2: type = converted %int.make_type_32.loc21, %.loc21_34.1 [template = i32] -// CHECK:STDOUT: %param.loc21_23: bool = param runtime_param0 -// CHECK:STDOUT: %b: bool = bind_name b, %param.loc21_23 -// CHECK:STDOUT: %param.loc21_31: i32 = param runtime_param1 -// CHECK:STDOUT: %return: ref i32 = return_slot %param.loc21_31 +// CHECK:STDOUT: %b.param: bool = param runtime_param0 +// CHECK:STDOUT: %b: bool = bind_name b, %b.param +// CHECK:STDOUT: %return.param: i32 = param runtime_param1 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/struct.carbon b/toolchain/check/testdata/return/struct.carbon index 08d69b1bd35e2..562c69fef5f9f 100644 --- a/toolchain/check/testdata/return/struct.carbon +++ b/toolchain/check/testdata/return/struct.carbon @@ -54,8 +54,8 @@ fn Main() -> {.a: i32} { // CHECK:STDOUT: %.loc11_19.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_19.2: type = converted %int.make_type_32, %.loc11_19.1 [template = i32] // CHECK:STDOUT: %.loc11_22: type = struct_type {.a: i32} [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/tuple.carbon b/toolchain/check/testdata/return/tuple.carbon index 9510d4f38202f..51bffcceb66c5 100644 --- a/toolchain/check/testdata/return/tuple.carbon +++ b/toolchain/check/testdata/return/tuple.carbon @@ -62,8 +62,8 @@ fn Main() -> (i32, i32) { // CHECK:STDOUT: %.loc12_23.4: type = value_of_initializer %int.make_type_32.loc12_20 [template = i32] // CHECK:STDOUT: %.loc12_23.5: type = converted %int.make_type_32.loc12_20, %.loc12_23.4 [template = i32] // CHECK:STDOUT: %.loc12_23.6: type = converted %.loc12_23.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/value.carbon b/toolchain/check/testdata/return/value.carbon index 4680a97771aed..748a1a8b22f4b 100644 --- a/toolchain/check/testdata/return/value.carbon +++ b/toolchain/check/testdata/return/value.carbon @@ -51,8 +51,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32, %.loc11_14.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/struct/fail_duplicate_name.carbon b/toolchain/check/testdata/struct/fail_duplicate_name.carbon index 4c769d1bfcb1b..76bacc8226df8 100644 --- a/toolchain/check/testdata/struct/fail_duplicate_name.carbon +++ b/toolchain/check/testdata/struct/fail_duplicate_name.carbon @@ -113,8 +113,8 @@ var y: {.b: i32, .c: i32} = {.b = 3, .b = 4}; // CHECK:STDOUT: %int.make_type_32.loc18_56: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc18_56.1: type = value_of_initializer %int.make_type_32.loc18_56 [template = i32] // CHECK:STDOUT: %.loc18_56.2: type = converted %int.make_type_32.loc18_56, %.loc18_56.1 [template = i32] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc27_13: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc27_13.1: type = value_of_initializer %int.make_type_32.loc27_13 [template = i32] diff --git a/toolchain/check/testdata/struct/import.carbon b/toolchain/check/testdata/struct/import.carbon index be5735433be50..b3f432ca5994d 100644 --- a/toolchain/check/testdata/struct/import.carbon +++ b/toolchain/check/testdata/struct/import.carbon @@ -143,8 +143,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %.loc8_27.1: type = value_of_initializer %int.make_type_32.loc8_27 [template = i32] // CHECK:STDOUT: %.loc8_27.2: type = converted %int.make_type_32.loc8_27, %.loc8_27.1 [template = i32] // CHECK:STDOUT: %.loc8_30: type = struct_type {.a: i32, .b: i32} [template = constants.%.11] -// CHECK:STDOUT: %param: %.11 = param runtime_param -// CHECK:STDOUT: %S.loc8_9.1: %.11 = bind_symbolic_name S, 0, %param [symbolic = %S.loc8_9.2 (constants.%S)] +// CHECK:STDOUT: %S.param: %.11 = param runtime_param +// CHECK:STDOUT: %S.loc8_9.1: %.11 = bind_symbolic_name S, 0, %S.param [symbolic = %S.loc8_9.2 (constants.%S)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: %C.3 = return_slot_pattern @@ -157,8 +157,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %struct: %.11 = struct_value (%.loc9_19, %.loc9_27) [template = constants.%struct.4] // CHECK:STDOUT: %.loc9_12: %.11 = converted %.loc9_28, %struct [template = constants.%struct.4] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%struct.4) [template = constants.%C.3] -// CHECK:STDOUT: %param: %C.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %C.3 = return_slot %param +// CHECK:STDOUT: %return.param: %C.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %C.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/struct/literal_member_access.carbon b/toolchain/check/testdata/struct/literal_member_access.carbon index 390e06a871652..411c5f3cb098d 100644 --- a/toolchain/check/testdata/struct/literal_member_access.carbon +++ b/toolchain/check/testdata/struct/literal_member_access.carbon @@ -69,8 +69,8 @@ fn F() -> i32 { // CHECK:STDOUT: %.loc11_34.1: type = value_of_initializer %int.make_type_32.loc11_34 [template = i32] // CHECK:STDOUT: %.loc11_34.2: type = converted %int.make_type_32.loc11_34, %.loc11_34.1 [template = i32] // CHECK:STDOUT: %.loc11_37: type = struct_type {.x: i32, .y: i32, .z: i32} [template = constants.%.2] -// CHECK:STDOUT: %param: %.2 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.2 = return_slot %param +// CHECK:STDOUT: %return.param: %.2 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.2 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -79,8 +79,8 @@ fn F() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_11.2: type = converted %int.make_type_32, %.loc13_11.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/struct/nested_struct_in_place.carbon b/toolchain/check/testdata/struct/nested_struct_in_place.carbon index ac2d2cc89d613..1e3b072ba8106 100644 --- a/toolchain/check/testdata/struct/nested_struct_in_place.carbon +++ b/toolchain/check/testdata/struct/nested_struct_in_place.carbon @@ -69,8 +69,8 @@ fn G() { // CHECK:STDOUT: %.loc11_25.6: type = value_of_initializer %int.make_type_32.loc11_22 [template = i32] // CHECK:STDOUT: %.loc11_25.7: type = converted %int.make_type_32.loc11_22, %.loc11_25.6 [template = i32] // CHECK:STDOUT: %.loc11_25.8: type = converted %.loc11_25.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/struct/reorder_fields.carbon b/toolchain/check/testdata/struct/reorder_fields.carbon index 9ab7ac65b47bd..53cd4b69d09bb 100644 --- a/toolchain/check/testdata/struct/reorder_fields.carbon +++ b/toolchain/check/testdata/struct/reorder_fields.carbon @@ -70,8 +70,8 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc11_17.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_17.2: type = converted %int.make_type_32, %.loc11_17.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %MakeF64.decl: %MakeF64.type = fn_decl @MakeF64 [template = constants.%MakeF64] { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern @@ -81,8 +81,8 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc12_17.1) [template = f64] // CHECK:STDOUT: %.loc12_17.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc12_17.3: type = converted %float.make_type, %.loc12_17.2 [template = f64] -// CHECK:STDOUT: %param: f64 = param runtime_param0 -// CHECK:STDOUT: %return: ref f64 = return_slot %param +// CHECK:STDOUT: %return.param: f64 = param runtime_param0 +// CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: %.3 = return_slot_pattern @@ -96,8 +96,8 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %.loc14_25.2: type = value_of_initializer %float.make_type.loc14 [template = f64] // CHECK:STDOUT: %.loc14_25.3: type = converted %float.make_type.loc14, %.loc14_25.2 [template = f64] // CHECK:STDOUT: %.loc14_28: type = struct_type {.a: i32, .b: f64} [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/tuple/access/return_value_access.carbon b/toolchain/check/testdata/tuple/access/return_value_access.carbon index ed9affce71d54..0587154428c9b 100644 --- a/toolchain/check/testdata/tuple/access/return_value_access.carbon +++ b/toolchain/check/testdata/tuple/access/return_value_access.carbon @@ -61,8 +61,8 @@ fn Run() -> i32 { // CHECK:STDOUT: %.loc11_16.2: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_16.3: type = converted %int.make_type_32, %.loc11_16.2 [template = i32] // CHECK:STDOUT: %.loc11_16.4: type = converted %.loc11_16.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %Run.decl: %Run.type = fn_decl @Run [template = constants.%Run] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -71,8 +71,8 @@ fn Run() -> i32 { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_13.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_13.2: type = converted %int.make_type_32, %.loc13_13.1 [template = i32] -// CHECK:STDOUT: %param: i32 = param runtime_param0 -// CHECK:STDOUT: %return: ref i32 = return_slot %param +// CHECK:STDOUT: %return.param: i32 = param runtime_param0 +// CHECK:STDOUT: %return: ref i32 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/tuple/import.carbon b/toolchain/check/testdata/tuple/import.carbon index 01089b7b98e94..32b909846b415 100644 --- a/toolchain/check/testdata/tuple/import.carbon +++ b/toolchain/check/testdata/tuple/import.carbon @@ -157,8 +157,8 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %.loc7_22.4: type = value_of_initializer %int.make_type_32.loc7_19 [template = i32] // CHECK:STDOUT: %.loc7_22.5: type = converted %int.make_type_32.loc7_19, %.loc7_22.4 [template = i32] // CHECK:STDOUT: %.loc7_22.6: type = converted %.loc7_22.1, constants.%.9 [template = constants.%.9] -// CHECK:STDOUT: %param: %.9 = param runtime_param -// CHECK:STDOUT: %X.loc7_9.1: %.9 = bind_symbolic_name X, 0, %param [symbolic = %X.loc7_9.2 (constants.%X)] +// CHECK:STDOUT: %X.param: %.9 = param runtime_param +// CHECK:STDOUT: %X.loc7_9.1: %.9 = bind_symbolic_name X, 0, %X.param [symbolic = %X.loc7_9.2 (constants.%X)] // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: %C.3 = return_slot_pattern @@ -171,8 +171,8 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %tuple: %.9 = tuple_value (%.loc9_14, %.loc9_17) [template = constants.%tuple.5] // CHECK:STDOUT: %.loc9_12: %.9 = converted %.loc9_18, %tuple [template = constants.%tuple.5] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%tuple.5) [template = constants.%C.3] -// CHECK:STDOUT: %param: %C.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %C.3 = return_slot %param +// CHECK:STDOUT: %return.param: %C.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %C.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon b/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon index 1a90027a7ce9d..a4007ee101235 100644 --- a/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon +++ b/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon @@ -83,8 +83,8 @@ fn H() { // CHECK:STDOUT: %.loc11_25.6: type = value_of_initializer %int.make_type_32.loc11_22 [template = i32] // CHECK:STDOUT: %.loc11_25.7: type = converted %int.make_type_32.loc11_22, %.loc11_25.6 [template = i32] // CHECK:STDOUT: %.loc11_25.8: type = converted %.loc11_25.1, constants.%.3 [template = constants.%.3] -// CHECK:STDOUT: %param: %.3 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.3 = return_slot %param +// CHECK:STDOUT: %return.param: %.3 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.3 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {} {} // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] {} {} diff --git a/toolchain/check/testdata/var/fail_not_copyable.carbon b/toolchain/check/testdata/var/fail_not_copyable.carbon index 69c48f3ea9865..0cbe611fbdbad 100644 --- a/toolchain/check/testdata/var/fail_not_copyable.carbon +++ b/toolchain/check/testdata/var/fail_not_copyable.carbon @@ -67,8 +67,8 @@ fn F(x: X) { // CHECK:STDOUT: %x.param_patt: %X = param_pattern %x.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %X.ref.loc14: type = name_ref X, file.%X.decl [template = constants.%X] -// CHECK:STDOUT: %param: %X = param runtime_param0 -// CHECK:STDOUT: %x: %X = bind_name x, %param +// CHECK:STDOUT: %x.param: %X = param runtime_param0 +// CHECK:STDOUT: %x: %X = bind_name x, %x.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/where_expr/constraints.carbon b/toolchain/check/testdata/where_expr/constraints.carbon index 363060ef80831..353d8da30dbcc 100644 --- a/toolchain/check/testdata/where_expr/constraints.carbon +++ b/toolchain/check/testdata/where_expr/constraints.carbon @@ -222,8 +222,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc11_21: type = where_expr %.Self [template = constants.%I.type] { // CHECK:STDOUT: requirement_equivalent %.Self.ref, %.loc11_37 // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %U.loc11_15.1: %I.type = bind_symbolic_name U, 0, %param [symbolic = %U.loc11_15.2 (constants.%U)] +// CHECK:STDOUT: %U.param: %I.type = param runtime_param +// CHECK:STDOUT: %U.loc11_15.1: %I.type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc11_15.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %Impls.decl: %Impls.type = fn_decl @Impls [template = constants.%Impls] { // CHECK:STDOUT: %V.patt.loc13_10.1: %J.type = symbolic_binding_pattern V, 0 [symbolic = %V.patt.loc13_10.2 (constants.%V.patt)] @@ -238,8 +238,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc13_16: type = where_expr %.Self [template = constants.%J.type] { // CHECK:STDOUT: requirement_impls %.loc13_22.2, %I.ref // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %J.type = param runtime_param -// CHECK:STDOUT: %V.loc13_10.1: %J.type = bind_symbolic_name V, 0, %param [symbolic = %V.loc13_10.2 (constants.%V)] +// CHECK:STDOUT: %V.param: %J.type = param runtime_param +// CHECK:STDOUT: %V.loc13_10.1: %J.type = bind_symbolic_name V, 0, %V.param [symbolic = %V.loc13_10.2 (constants.%V)] // CHECK:STDOUT: } // CHECK:STDOUT: %And.decl: %And.type = fn_decl @And [template = constants.%And] { // CHECK:STDOUT: %W.patt.loc15_8.1: %I.type = symbolic_binding_pattern W, 0 [symbolic = %W.patt.loc15_8.2 (constants.%W.patt)] @@ -258,8 +258,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: requirement_impls %.loc15_20.2, %J.ref // CHECK:STDOUT: requirement_equivalent %Member.ref, %.loc15_50 // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %W.loc15_8.1: %I.type = bind_symbolic_name W, 0, %param [symbolic = %W.loc15_8.2 (constants.%W)] +// CHECK:STDOUT: %W.param: %I.type = param runtime_param +// CHECK:STDOUT: %W.loc15_8.1: %I.type = bind_symbolic_name W, 0, %W.param [symbolic = %W.loc15_8.2 (constants.%W)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -402,8 +402,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc15_16: type = where_expr %.Self [template = constants.%N.type] { // CHECK:STDOUT: requirement_rewrite %P.ref, // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %N.type = param runtime_param -// CHECK:STDOUT: %T.loc15_10.1: %N.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc15_10.2 (constants.%T)] +// CHECK:STDOUT: %T.param: %N.type = param runtime_param +// CHECK:STDOUT: %T.loc15_10.1: %N.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc15_10.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -576,8 +576,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc18_30: type = where_expr %.Self [template = constants.%K.type] { // CHECK:STDOUT: requirement_impls , %M.ref // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %K.type = param runtime_param -// CHECK:STDOUT: %W.loc18_24.1: %K.type = bind_symbolic_name W, 0, %param [symbolic = %W.loc18_24.2 (constants.%W)] +// CHECK:STDOUT: %W.param: %K.type = param runtime_param +// CHECK:STDOUT: %W.loc18_24.1: %K.type = bind_symbolic_name W, 0, %W.param [symbolic = %W.loc18_24.2 (constants.%W)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -775,8 +775,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc16_30: type = where_expr %.Self [template = constants.%I.type] { // CHECK:STDOUT: requirement_rewrite %Member.ref, // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %X.loc16_24.1: %I.type = bind_symbolic_name X, 0, %param [symbolic = %X.loc16_24.2 (constants.%X)] +// CHECK:STDOUT: %X.param: %I.type = param runtime_param +// CHECK:STDOUT: %X.loc16_24.1: %I.type = bind_symbolic_name X, 0, %X.param [symbolic = %X.loc16_24.2 (constants.%X)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -930,8 +930,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc11_26: type = where_expr %.Self [template = type] { // CHECK:STDOUT: requirement_impls , type // CHECK:STDOUT: } -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc11_17.1: type = bind_symbolic_name U, 0, %param [symbolic = %U.loc11_17.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc11_17.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc11_17.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1078,8 +1078,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc11_26: type = where_expr %.Self [template = type] { // CHECK:STDOUT: requirement_impls %.Self.ref, // CHECK:STDOUT: } -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc11_17.1: type = bind_symbolic_name U, 0, %param [symbolic = %U.loc11_17.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc11_17.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc11_17.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1203,8 +1203,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc8_33: type = where_expr %.Self [template = type] { // CHECK:STDOUT: requirement_impls %.Self.ref, // CHECK:STDOUT: } -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %U.loc8_24.1: type = bind_symbolic_name U, 0, %param [symbolic = %U.loc8_24.2 (constants.%U)] +// CHECK:STDOUT: %U.param: type = param runtime_param +// CHECK:STDOUT: %U.loc8_24.1: type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc8_24.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1322,8 +1322,8 @@ fn NotEmptyStruct() { // CHECK:STDOUT: %.loc26_22: type = where_expr %.Self [template = constants.%J.type] { // CHECK:STDOUT: requirement_equivalent %.Self.ref, %.loc26_38 // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %J.type = param runtime_param -// CHECK:STDOUT: %Y.loc26_16.1: %J.type = bind_symbolic_name Y, 0, %param [symbolic = %Y.loc26_16.2 (constants.%Y)] +// CHECK:STDOUT: %Y.param: %J.type = param runtime_param +// CHECK:STDOUT: %Y.loc26_16.1: %J.type = bind_symbolic_name Y, 0, %Y.param [symbolic = %Y.loc26_16.2 (constants.%Y)] // CHECK:STDOUT: } // CHECK:STDOUT: %NotEmptyStruct.decl: %NotEmptyStruct.type = fn_decl @NotEmptyStruct [template = constants.%NotEmptyStruct] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/where_expr/designator.carbon b/toolchain/check/testdata/where_expr/designator.carbon index 2a0f9779f8302..1e8cbf46fff29 100644 --- a/toolchain/check/testdata/where_expr/designator.carbon +++ b/toolchain/check/testdata/where_expr/designator.carbon @@ -144,8 +144,8 @@ class D { // CHECK:STDOUT: %.loc8_21: type = where_expr %.Self [template = constants.%I.type] { // CHECK:STDOUT: requirement_equivalent %.Self.ref, %.loc8_37 // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %T.loc8_15.1: %I.type = bind_symbolic_name T, 0, %param [symbolic = %T.loc8_15.2 (constants.%T)] +// CHECK:STDOUT: %T.param: %I.type = param runtime_param +// CHECK:STDOUT: %T.loc8_15.1: %I.type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_15.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: %PeriodMember.decl: %PeriodMember.type = fn_decl @PeriodMember [template = constants.%PeriodMember] { // CHECK:STDOUT: %U.patt.loc10_17.1: %I.type = symbolic_binding_pattern U, 0 [symbolic = %U.patt.loc10_17.2 (constants.%U.patt)] @@ -159,8 +159,8 @@ class D { // CHECK:STDOUT: %.loc10_23: type = where_expr %.Self [template = constants.%I.type] { // CHECK:STDOUT: requirement_equivalent %Member.ref, %.loc10_41 // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %I.type = param runtime_param -// CHECK:STDOUT: %U.loc10_17.1: %I.type = bind_symbolic_name U, 0, %param [symbolic = %U.loc10_17.2 (constants.%U)] +// CHECK:STDOUT: %U.param: %I.type = param runtime_param +// CHECK:STDOUT: %U.loc10_17.1: %I.type = bind_symbolic_name U, 0, %U.param [symbolic = %U.loc10_17.2 (constants.%U)] // CHECK:STDOUT: } // CHECK:STDOUT: %TypeSelfImpls.decl: %TypeSelfImpls.type = fn_decl @TypeSelfImpls [template = constants.%TypeSelfImpls] { // CHECK:STDOUT: %V.patt.loc12_18.1: type = symbolic_binding_pattern V, 0 [symbolic = %V.patt.loc12_18.2 (constants.%V.patt)] @@ -172,8 +172,8 @@ class D { // CHECK:STDOUT: %.loc12: type = where_expr %.Self [template = type] { // CHECK:STDOUT: requirement_impls %.Self.ref, %I.ref // CHECK:STDOUT: } -// CHECK:STDOUT: %param: type = param runtime_param -// CHECK:STDOUT: %V.loc12_18.1: type = bind_symbolic_name V, 0, %param [symbolic = %V.loc12_18.2 (constants.%V)] +// CHECK:STDOUT: %V.param: type = param runtime_param +// CHECK:STDOUT: %V.loc12_18.1: type = bind_symbolic_name V, 0, %V.param [symbolic = %V.loc12_18.2 (constants.%V)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -273,8 +273,8 @@ class D { // CHECK:STDOUT: %.loc12_25: type = where_expr %.Self [template = constants.%J.type] { // CHECK:STDOUT: requirement_rewrite %Mismatch.ref, // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %J.type = param runtime_param -// CHECK:STDOUT: %W.loc12_19.1: %J.type = bind_symbolic_name W, 0, %param [symbolic = %W.loc12_19.2 (constants.%W)] +// CHECK:STDOUT: %W.param: %J.type = param runtime_param +// CHECK:STDOUT: %W.loc12_19.1: %J.type = bind_symbolic_name W, 0, %W.param [symbolic = %W.loc12_19.2 (constants.%W)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -334,8 +334,8 @@ class D { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc4_14.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc4_14.2: type = converted %.loc4_14.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -382,8 +382,8 @@ class D { // CHECK:STDOUT: } { // CHECK:STDOUT: %.loc4_14.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc4_14.2: type = converted %.loc4_14.1, constants.%.1 [template = constants.%.1] -// CHECK:STDOUT: %param: %.1 = param runtime_param0 -// CHECK:STDOUT: %return: ref %.1 = return_slot %param +// CHECK:STDOUT: %return.param: %.1 = param runtime_param0 +// CHECK:STDOUT: %return: ref %.1 = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: @@ -433,8 +433,8 @@ class D { // CHECK:STDOUT: %return.param_patt: %C = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [template = constants.%C] -// CHECK:STDOUT: %param: %C = param runtime_param0 -// CHECK:STDOUT: %return: ref %C = return_slot %param +// CHECK:STDOUT: %return.param: %C = param runtime_param0 +// CHECK:STDOUT: %return: ref %C = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc10: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: @@ -488,8 +488,8 @@ class D { // CHECK:STDOUT: %return.param_patt: = param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %.Self.ref: = name_ref .Self, [template = ] -// CHECK:STDOUT: %param: = param runtime_param0 -// CHECK:STDOUT: %return: ref = return_slot %param +// CHECK:STDOUT: %return.param: = param runtime_param0 +// CHECK:STDOUT: %return: ref = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %.loc9: = complete_type_witness %.2 [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/where_expr/fail_not_facet.carbon b/toolchain/check/testdata/where_expr/fail_not_facet.carbon index aaa79718d9f3b..5805130310a97 100644 --- a/toolchain/check/testdata/where_expr/fail_not_facet.carbon +++ b/toolchain/check/testdata/where_expr/fail_not_facet.carbon @@ -68,8 +68,8 @@ fn F(T:! i32 where .Self == bool); // CHECK:STDOUT: %.loc7_14: type = where_expr %.Self [template = ] { // CHECK:STDOUT: requirement_equivalent %.Self.ref, %bool.make_type // CHECK:STDOUT: } -// CHECK:STDOUT: %param: = param runtime_param -// CHECK:STDOUT: %T.loc7_6.1: = bind_symbolic_name T, 0, %param [symbolic = %T.loc7_6.2 (constants.%T)] +// CHECK:STDOUT: %T.param: = param runtime_param +// CHECK:STDOUT: %T.loc7_6.1: = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc7_6.2 (constants.%T)] // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/where_expr/non_generic.carbon b/toolchain/check/testdata/where_expr/non_generic.carbon index 1e70606cef332..3cae9e0d22a80 100644 --- a/toolchain/check/testdata/where_expr/non_generic.carbon +++ b/toolchain/check/testdata/where_expr/non_generic.carbon @@ -63,8 +63,8 @@ fn NotGenericF(U: I where .T == i32) {} // CHECK:STDOUT: %.loc14: type = where_expr %.Self [template = constants.%I.type] { // CHECK:STDOUT: requirement_equivalent %T.ref, %int.make_type_32 // CHECK:STDOUT: } -// CHECK:STDOUT: %param: %I.type = param runtime_param0 -// CHECK:STDOUT: %U: %I.type = bind_name U, %param +// CHECK:STDOUT: %U.param: %I.type = param runtime_param0 +// CHECK:STDOUT: %U: %I.type = bind_name U, %U.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/while/break_continue.carbon b/toolchain/check/testdata/while/break_continue.carbon index d86c020271bac..b4a975a2e4e52 100644 --- a/toolchain/check/testdata/while/break_continue.carbon +++ b/toolchain/check/testdata/while/break_continue.carbon @@ -92,8 +92,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc11_11.2: type = converted %bool.make_type, %.loc11_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -102,8 +102,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc12_11.2: type = converted %bool.make_type, %.loc12_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -112,8 +112,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc13_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc13_11.2: type = converted %bool.make_type, %.loc13_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -122,8 +122,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc14_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc14_11.2: type = converted %bool.make_type, %.loc14_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %E.decl: %E.type = fn_decl @E [template = constants.%E] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -132,8 +132,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc15_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc15_11.2: type = converted %bool.make_type, %.loc15_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -142,8 +142,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc16_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc16_11.2: type = converted %bool.make_type, %.loc16_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -152,8 +152,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc17_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc17_11.2: type = converted %bool.make_type, %.loc17_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern @@ -162,8 +162,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc18_11.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc18_11.2: type = converted %bool.make_type, %.loc18_11.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %While.decl: %While.type = fn_decl @While [template = constants.%While] {} {} // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/while/unreachable_end.carbon b/toolchain/check/testdata/while/unreachable_end.carbon index 761ff639153ad..0d6f0c353392d 100644 --- a/toolchain/check/testdata/while/unreachable_end.carbon +++ b/toolchain/check/testdata/while/unreachable_end.carbon @@ -73,8 +73,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc11_14.2: type = converted %bool.make_type, %.loc11_14.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] {} {} // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {} {} diff --git a/toolchain/check/testdata/while/while.carbon b/toolchain/check/testdata/while/while.carbon index 3c1ad0b954a22..49757b1d8b719 100644 --- a/toolchain/check/testdata/while/while.carbon +++ b/toolchain/check/testdata/while/while.carbon @@ -72,8 +72,8 @@ fn While() { // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %bool.make_type [template = bool] // CHECK:STDOUT: %.loc11_14.2: type = converted %bool.make_type, %.loc11_14.1 [template = bool] -// CHECK:STDOUT: %param: bool = param runtime_param0 -// CHECK:STDOUT: %return: ref bool = return_slot %param +// CHECK:STDOUT: %return.param: bool = param runtime_param0 +// CHECK:STDOUT: %return: ref bool = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] {} {} // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {} {} diff --git a/toolchain/sem_ir/formatter.cpp b/toolchain/sem_ir/formatter.cpp index 488f123acf5c9..cd14ca9b66bd2 100644 --- a/toolchain/sem_ir/formatter.cpp +++ b/toolchain/sem_ir/formatter.cpp @@ -780,6 +780,12 @@ class FormatterImpl { FormatReturnSlot(inst.dest_id); } + auto FormatInstRHS(Param inst) -> void { + FormatArgs(inst.runtime_index); + // Omit pretty_name because it's an implementation detail of + // pretty-printing. + } + auto FormatInstRHS(ReturnExpr ret) -> void { FormatArgs(ret.expr_id); if (ret.dest_id.is_valid()) { diff --git a/toolchain/sem_ir/inst_namer.cpp b/toolchain/sem_ir/inst_namer.cpp index 343626eddc51b..334e2dd64b504 100644 --- a/toolchain/sem_ir/inst_namer.cpp +++ b/toolchain/sem_ir/inst_namer.cpp @@ -530,9 +530,9 @@ auto InstNamer::CollectNamesInBlock(ScopeId scope_id, add_inst_name_id(sem_ir_.name_scopes().Get(inst.name_scope_id).name_id); continue; } - case InstKind::Param: { + case CARBON_KIND(Param inst): { // TODO: Find a way to use the name of the enclosing bind inst here. - add_inst_name("param"); + add_inst_name_id(inst.pretty_name, ".param"); continue; } case InstKind::ParamPattern: { diff --git a/toolchain/sem_ir/typed_insts.h b/toolchain/sem_ir/typed_insts.h index b6346a5728067..75bb93d49f9dc 100644 --- a/toolchain/sem_ir/typed_insts.h +++ b/toolchain/sem_ir/typed_insts.h @@ -833,6 +833,10 @@ struct Param { TypeId type_id; RuntimeParamIndex runtime_index; + + // A name to associate with this Param in pretty-printed IR. This is not + // necessarily unique, or even valid, and has no semantic significance. + NameId pretty_name; }; // A pattern that represents a parameter. It matches the same values as