|
@@ -114,15 +114,8 @@ fn G() {
|
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.cc9: type = class_type @HoldsType, @HoldsType(%T) [symbolic]
|
|
// CHECK:STDOUT: %HoldsType.cc9: type = class_type @HoldsType, @HoldsType(%T) [symbolic]
|
|
|
-// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.f6d: type = pattern_type auto [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.cc4: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.47e: type = ptr_type %HoldsType.cc9 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.c39: type = pattern_type %ptr.47e [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type.cd5: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.5e0: %HoldsType.as.Destroy.impl.Op.type.cd5 = struct_value () [symbolic]
|
|
|
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
|
-// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
|
// CHECK:STDOUT: %pattern_type.ec6: type = pattern_type %HoldsType.cc9 [symbolic]
|
|
// CHECK:STDOUT: %pattern_type.ec6: type = pattern_type %HoldsType.cc9 [symbolic]
|
|
|
// CHECK:STDOUT: %int_0: Core.IntLiteral = int_value 0 [concrete]
|
|
// CHECK:STDOUT: %int_0: Core.IntLiteral = int_value 0 [concrete]
|
|
|
// CHECK:STDOUT: %tuple.elem0: type = tuple_access %T, element0 [symbolic]
|
|
// CHECK:STDOUT: %tuple.elem0: type = tuple_access %T, element0 [symbolic]
|
|
@@ -132,11 +125,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: %require_complete.514: <witness> = require_complete_type %HoldsType.cc9 [symbolic]
|
|
// CHECK:STDOUT: %require_complete.514: <witness> = require_complete_type %HoldsType.cc9 [symbolic]
|
|
|
// CHECK:STDOUT: %require_complete.fec: <witness> = require_complete_type %tuple.elem0 [symbolic]
|
|
// CHECK:STDOUT: %require_complete.fec: <witness> = require_complete_type %tuple.elem0 [symbolic]
|
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.071: <witness> = impl_witness @C.%Destroy.impl_witness_table [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.019: type = ptr_type %C [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.44a: type = pattern_type %ptr.019 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.type: type = fn_type @C.as.Destroy.impl.Op [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op: %C.as.Destroy.impl.Op.type = struct_value () [concrete]
|
|
|
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %tuple: %tuple.type = tuple_value (%C) [concrete]
|
|
// CHECK:STDOUT: %tuple: %tuple.type = tuple_value (%C) [concrete]
|
|
@@ -146,12 +134,18 @@ fn G() {
|
|
|
// CHECK:STDOUT: %pattern_type.c48: type = pattern_type %C [concrete]
|
|
// CHECK:STDOUT: %pattern_type.c48: type = pattern_type %C [concrete]
|
|
|
// CHECK:STDOUT: %F.specific_fn: <specific function> = specific_function %F, @F(%tuple) [concrete]
|
|
// CHECK:STDOUT: %F.specific_fn: <specific function> = specific_function %F, @F(%tuple) [concrete]
|
|
|
// CHECK:STDOUT: %C.val: %C = struct_value () [concrete]
|
|
// CHECK:STDOUT: %C.val: %C = struct_value () [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.498: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%tuple) [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type.543: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%tuple) [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.2e3: %HoldsType.as.Destroy.impl.Op.type.543 = struct_value () [concrete]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanAggregateDestroy>> [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.be8: %type_where = facet_value %C, () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.075: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value.be8) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.b80: %AggregateT.as_type.as.Destroy.impl.Op.type.075 = struct_value () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %ptr.019: type = ptr_type %C [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.003: <specific function> = specific_function %AggregateT.as_type.as.Destroy.impl.Op.b80, @AggregateT.as_type.as.Destroy.impl.Op(%facet_value.be8) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.a52: %type_where = facet_value %HoldsType.c09, () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.6cc: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value.a52) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.f7f: %AggregateT.as_type.as.Destroy.impl.Op.type.6cc = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %ptr.79a: type = ptr_type %HoldsType.c09 [concrete]
|
|
// CHECK:STDOUT: %ptr.79a: type = ptr_type %HoldsType.c09 [concrete]
|
|
|
-// CHECK:STDOUT: %pattern_type.bb8: type = pattern_type %ptr.79a [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function %HoldsType.as.Destroy.impl.Op.2e3, @HoldsType.as.Destroy.impl.Op(%tuple) [concrete]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.89c: <specific function> = specific_function %AggregateT.as_type.as.Destroy.impl.Op.f7f, @AggregateT.as_type.as.Destroy.impl.Op(%facet_value.a52) [concrete]
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
// CHECK:STDOUT: imports {
|
|
@@ -214,62 +208,13 @@ fn G() {
|
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: generic impl @HoldsType.as.Destroy.impl(@HoldsType.%T.loc4_17.2: %tuple.type) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %tuple.type = bind_symbolic_name T, 0 [symbolic = %T (constants.%T)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType.cc9)]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T) [symbolic = %Destroy.impl_witness (constants.%Destroy.impl_witness.cc4)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T) [symbolic = %HoldsType.as.Destroy.impl.Op.type (constants.%HoldsType.as.Destroy.impl.Op.type.cd5)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type.cd5) = struct_value () [symbolic = %HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op.5e0)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl: @HoldsType.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.decl: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type.cd5) = fn_decl @HoldsType.as.Destroy.impl.Op [symbolic = @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op.5e0)] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.c39) = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.c39) = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_31.1: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.47e) = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_31.2: type = splice_block %Self.ref [symbolic = %HoldsType (constants.%HoldsType.cc9)] {
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_31.3: type = specific_constant constants.%HoldsType.cc9, @HoldsType(constants.%T) [symbolic = %HoldsType (constants.%HoldsType.cc9)]
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc4_31.3 [symbolic = %HoldsType (constants.%HoldsType.cc9)]
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: %self: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.47e) = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %HoldsType.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @HoldsType.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl @C.as.Destroy.impl: @C.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.decl: %C.as.Destroy.impl.Op.type = fn_decl @C.as.Destroy.impl.Op [concrete = constants.%C.as.Destroy.impl.Op] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: %pattern_type.44a = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: %pattern_type.44a = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc10: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: %ptr.019 = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: %self: %ptr.019 = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %C.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @C.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic class @HoldsType(%T.loc4_17.2: %tuple.type) {
|
|
// CHECK:STDOUT: generic class @HoldsType(%T.loc4_17.2: %tuple.type) {
|
|
|
// CHECK:STDOUT: %T.loc4_17.1: %tuple.type = bind_symbolic_name T, 0 [symbolic = %T.loc4_17.1 (constants.%T)]
|
|
// CHECK:STDOUT: %T.loc4_17.1: %tuple.type = bind_symbolic_name T, 0 [symbolic = %T.loc4_17.1 (constants.%T)]
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class {
|
|
// CHECK:STDOUT: class {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%HoldsType.cc9 [symbolic = @HoldsType.as.Destroy.impl.%HoldsType (constants.%HoldsType.cc9)]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @HoldsType.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.decl), @HoldsType.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(constants.%T) [symbolic = @HoldsType.as.Destroy.impl.%Destroy.impl_witness (constants.%Destroy.impl_witness.cc4)]
|
|
|
|
|
-// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !members:
|
|
// CHECK:STDOUT: !members:
|
|
@@ -278,28 +223,13 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @C {
|
|
// CHECK:STDOUT: class @C {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @C.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@C.as.Destroy.impl.%C.as.Destroy.impl.Op.decl), @C.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.071]
|
|
|
|
|
-// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !members:
|
|
// CHECK:STDOUT: !members:
|
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: generic fn @HoldsType.as.Destroy.impl.Op(@HoldsType.%T.loc4_17.2: %tuple.type) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %tuple.type = bind_symbolic_name T, 0 [symbolic = %T (constants.%T)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType.cc9)]
|
|
|
|
|
-// CHECK:STDOUT: %ptr: type = ptr_type %HoldsType [symbolic = %ptr (constants.%ptr.47e)]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type: type = pattern_type %ptr [symbolic = %pattern_type (constants.%pattern_type.c39)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: fn(%self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.47e)) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic fn @F(%T.loc8_6.2: %tuple.type) {
|
|
// CHECK:STDOUT: generic fn @F(%T.loc8_6.2: %tuple.type) {
|
|
|
// CHECK:STDOUT: %T.loc8_6.1: %tuple.type = bind_symbolic_name T, 0 [symbolic = %T.loc8_6.1 (constants.%T)]
|
|
// CHECK:STDOUT: %T.loc8_6.1: %tuple.type = bind_symbolic_name T, 0 [symbolic = %T.loc8_6.1 (constants.%T)]
|
|
|
// CHECK:STDOUT: %HoldsType.loc8_34.1: type = class_type @HoldsType, @HoldsType(%T.loc8_6.1) [symbolic = %HoldsType.loc8_34.1 (constants.%HoldsType.cc9)]
|
|
// CHECK:STDOUT: %HoldsType.loc8_34.1: type = class_type @HoldsType, @HoldsType(%T.loc8_6.1) [symbolic = %HoldsType.loc8_34.1 (constants.%HoldsType.cc9)]
|
|
@@ -317,8 +247,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @C.as.Destroy.impl.Op(%self.param: %ptr.019) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: fn @G() {
|
|
// CHECK:STDOUT: fn @G() {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
|
|
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
|
|
@@ -342,14 +270,20 @@ fn G() {
|
|
|
// CHECK:STDOUT: %.loc13_30.5: ref %C = converted %.loc13_30.1, %.loc13_30.4
|
|
// CHECK:STDOUT: %.loc13_30.5: ref %C = converted %.loc13_30.1, %.loc13_30.4
|
|
|
// CHECK:STDOUT: %.loc13_30.6: %C = bind_value %.loc13_30.5
|
|
// CHECK:STDOUT: %.loc13_30.6: %C = bind_value %.loc13_30.5
|
|
|
// CHECK:STDOUT: %F.call: init %empty_tuple.type = call %F.specific_fn(%.loc13_8.2, %.loc13_30.6)
|
|
// CHECK:STDOUT: %F.call: init %empty_tuple.type = call %F.specific_fn(%.loc13_8.2, %.loc13_30.6)
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc13_30.4, constants.%C.as.Destroy.impl.Op
|
|
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.loc13_30: %type_where = facet_value constants.%C, () [concrete = constants.%facet_value.be8]
|
|
|
|
|
+// CHECK:STDOUT: %.loc13_30.7: %type_where = converted constants.%C, %facet_value.loc13_30 [concrete = constants.%facet_value.be8]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.bound.loc13_30: <bound method> = bound_method %.loc13_30.4, constants.%AggregateT.as_type.as.Destroy.impl.Op.b80
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.1: <specific function> = specific_function constants.%AggregateT.as_type.as.Destroy.impl.Op.b80, @AggregateT.as_type.as.Destroy.impl.Op(constants.%facet_value.be8) [concrete = constants.%AggregateT.as_type.as.Destroy.impl.Op.specific_fn.003]
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc13_30: <bound method> = bound_method %.loc13_30.4, %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.1
|
|
|
// CHECK:STDOUT: %addr.loc13_30: %ptr.019 = addr_of %.loc13_30.4
|
|
// CHECK:STDOUT: %addr.loc13_30: %ptr.019 = addr_of %.loc13_30.4
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.call: init %empty_tuple.type = call %C.as.Destroy.impl.Op.bound(%addr.loc13_30)
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc13_6.4, constants.%HoldsType.as.Destroy.impl.Op.2e3
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function constants.%HoldsType.as.Destroy.impl.Op.2e3, @HoldsType.as.Destroy.impl.Op(constants.%tuple) [concrete = constants.%HoldsType.as.Destroy.impl.Op.specific_fn]
|
|
|
|
|
-// CHECK:STDOUT: %bound_method: <bound method> = bound_method %.loc13_6.4, %HoldsType.as.Destroy.impl.Op.specific_fn
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.call.loc13_30: init %empty_tuple.type = call %bound_method.loc13_30(%addr.loc13_30)
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.loc13_6: %type_where = facet_value constants.%HoldsType.c09, () [concrete = constants.%facet_value.a52]
|
|
|
|
|
+// CHECK:STDOUT: %.loc13_6.5: %type_where = converted constants.%HoldsType.c09, %facet_value.loc13_6 [concrete = constants.%facet_value.a52]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.bound.loc13_6: <bound method> = bound_method %.loc13_6.4, constants.%AggregateT.as_type.as.Destroy.impl.Op.f7f
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.2: <specific function> = specific_function constants.%AggregateT.as_type.as.Destroy.impl.Op.f7f, @AggregateT.as_type.as.Destroy.impl.Op(constants.%facet_value.a52) [concrete = constants.%AggregateT.as_type.as.Destroy.impl.Op.specific_fn.89c]
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc13_6: <bound method> = bound_method %.loc13_6.4, %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.2
|
|
|
// CHECK:STDOUT: %addr.loc13_6: %ptr.79a = addr_of %.loc13_6.4
|
|
// CHECK:STDOUT: %addr.loc13_6: %ptr.79a = addr_of %.loc13_6.4
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.call: init %empty_tuple.type = call %bound_method(%addr.loc13_6)
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.call.loc13_6: init %empty_tuple.type = call %bound_method.loc13_6(%addr.loc13_6)
|
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -359,19 +293,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%T) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.cc9
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.cc4
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%T) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.cc9
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.47e
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.c39
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: specific @F(constants.%T) {
|
|
// CHECK:STDOUT: specific @F(constants.%T) {
|
|
|
// CHECK:STDOUT: %T.loc8_6.1 => constants.%T
|
|
// CHECK:STDOUT: %T.loc8_6.1 => constants.%T
|
|
|
// CHECK:STDOUT: %HoldsType.loc8_34.1 => constants.%HoldsType.cc9
|
|
// CHECK:STDOUT: %HoldsType.loc8_34.1 => constants.%HoldsType.cc9
|
|
@@ -394,25 +315,8 @@ fn G() {
|
|
|
// CHECK:STDOUT: %pattern_type.loc8_37 => constants.%pattern_type.c48
|
|
// CHECK:STDOUT: %pattern_type.loc8_37 => constants.%pattern_type.c48
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
-// CHECK:STDOUT: %require_complete.loc8_21 => constants.%complete_type
|
|
|
|
|
-// CHECK:STDOUT: %require_complete.loc8_38 => constants.%complete_type
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%tuple) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%tuple
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.c09
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.498
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type => constants.%HoldsType.as.Destroy.impl.Op.type.543
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op => constants.%HoldsType.as.Destroy.impl.Op.2e3
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%tuple) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%tuple
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.c09
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.79a
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.bb8
|
|
|
|
|
|
|
+// CHECK:STDOUT: %require_complete.loc8_21 => constants.%complete_type.357
|
|
|
|
|
+// CHECK:STDOUT: %require_complete.loc8_38 => constants.%complete_type.357
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- struct_access.carbon
|
|
// CHECK:STDOUT: --- struct_access.carbon
|
|
@@ -427,15 +331,8 @@ fn G() {
|
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.843: type = class_type @HoldsType, @HoldsType(%T) [symbolic]
|
|
// CHECK:STDOUT: %HoldsType.843: type = class_type @HoldsType, @HoldsType(%T) [symbolic]
|
|
|
-// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.f6d: type = pattern_type auto [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.c73: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.ca6: type = ptr_type %HoldsType.843 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.051: type = pattern_type %ptr.ca6 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type.73f: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.266: %HoldsType.as.Destroy.impl.Op.type.73f = struct_value () [symbolic]
|
|
|
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
|
-// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
|
// CHECK:STDOUT: %pattern_type.aa4: type = pattern_type %HoldsType.843 [symbolic]
|
|
// CHECK:STDOUT: %pattern_type.aa4: type = pattern_type %HoldsType.843 [symbolic]
|
|
|
// CHECK:STDOUT: %.20a: type = struct_access %T, element0 [symbolic]
|
|
// CHECK:STDOUT: %.20a: type = struct_access %T, element0 [symbolic]
|
|
|
// CHECK:STDOUT: %pattern_type.9f0: type = pattern_type %.20a [symbolic]
|
|
// CHECK:STDOUT: %pattern_type.9f0: type = pattern_type %.20a [symbolic]
|
|
@@ -444,11 +341,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: %require_complete.b19: <witness> = require_complete_type %HoldsType.843 [symbolic]
|
|
// CHECK:STDOUT: %require_complete.b19: <witness> = require_complete_type %HoldsType.843 [symbolic]
|
|
|
// CHECK:STDOUT: %require_complete.1b9: <witness> = require_complete_type %.20a [symbolic]
|
|
// CHECK:STDOUT: %require_complete.1b9: <witness> = require_complete_type %.20a [symbolic]
|
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.071: <witness> = impl_witness @C.%Destroy.impl_witness_table [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.019: type = ptr_type %C [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.44a: type = pattern_type %ptr.019 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.type: type = fn_type @C.as.Destroy.impl.Op [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op: %C.as.Destroy.impl.Op.type = struct_value () [concrete]
|
|
|
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %struct: %struct_type.t = struct_value (%C) [concrete]
|
|
// CHECK:STDOUT: %struct: %struct_type.t = struct_value (%C) [concrete]
|
|
@@ -458,12 +350,18 @@ fn G() {
|
|
|
// CHECK:STDOUT: %pattern_type.c48: type = pattern_type %C [concrete]
|
|
// CHECK:STDOUT: %pattern_type.c48: type = pattern_type %C [concrete]
|
|
|
// CHECK:STDOUT: %F.specific_fn: <specific function> = specific_function %F, @F(%struct) [concrete]
|
|
// CHECK:STDOUT: %F.specific_fn: <specific function> = specific_function %F, @F(%struct) [concrete]
|
|
|
// CHECK:STDOUT: %C.val: %C = struct_value () [concrete]
|
|
// CHECK:STDOUT: %C.val: %C = struct_value () [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.df5: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%struct) [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type.db4: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%struct) [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.7ed: %HoldsType.as.Destroy.impl.Op.type.db4 = struct_value () [concrete]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanAggregateDestroy>> [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.be8: %type_where = facet_value %C, () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.075: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value.be8) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.b80: %AggregateT.as_type.as.Destroy.impl.Op.type.075 = struct_value () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %ptr.019: type = ptr_type %C [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.003: <specific function> = specific_function %AggregateT.as_type.as.Destroy.impl.Op.b80, @AggregateT.as_type.as.Destroy.impl.Op(%facet_value.be8) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.451: %type_where = facet_value %HoldsType.705, () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.971: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value.451) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.6c7: %AggregateT.as_type.as.Destroy.impl.Op.type.971 = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %ptr.5d1: type = ptr_type %HoldsType.705 [concrete]
|
|
// CHECK:STDOUT: %ptr.5d1: type = ptr_type %HoldsType.705 [concrete]
|
|
|
-// CHECK:STDOUT: %pattern_type.c97: type = pattern_type %ptr.5d1 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function %HoldsType.as.Destroy.impl.Op.7ed, @HoldsType.as.Destroy.impl.Op(%struct) [concrete]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.cd1: <specific function> = specific_function %AggregateT.as_type.as.Destroy.impl.Op.6c7, @AggregateT.as_type.as.Destroy.impl.Op(%facet_value.451) [concrete]
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
// CHECK:STDOUT: imports {
|
|
@@ -523,62 +421,13 @@ fn G() {
|
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: generic impl @HoldsType.as.Destroy.impl(@HoldsType.%T.loc4_17.2: %struct_type.t) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %struct_type.t = bind_symbolic_name T, 0 [symbolic = %T (constants.%T)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType.843)]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T) [symbolic = %Destroy.impl_witness (constants.%Destroy.impl_witness.c73)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T) [symbolic = %HoldsType.as.Destroy.impl.Op.type (constants.%HoldsType.as.Destroy.impl.Op.type.73f)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type.73f) = struct_value () [symbolic = %HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op.266)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl: @HoldsType.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.decl: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type.73f) = fn_decl @HoldsType.as.Destroy.impl.Op [symbolic = @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op.266)] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.051) = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.051) = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_33.1: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.ca6) = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_33.2: type = splice_block %Self.ref [symbolic = %HoldsType (constants.%HoldsType.843)] {
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_33.3: type = specific_constant constants.%HoldsType.843, @HoldsType(constants.%T) [symbolic = %HoldsType (constants.%HoldsType.843)]
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc4_33.3 [symbolic = %HoldsType (constants.%HoldsType.843)]
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: %self: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.ca6) = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %HoldsType.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @HoldsType.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl @C.as.Destroy.impl: @C.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.decl: %C.as.Destroy.impl.Op.type = fn_decl @C.as.Destroy.impl.Op [concrete = constants.%C.as.Destroy.impl.Op] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: %pattern_type.44a = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: %pattern_type.44a = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc10: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: %ptr.019 = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: %self: %ptr.019 = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %C.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @C.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic class @HoldsType(%T.loc4_17.2: %struct_type.t) {
|
|
// CHECK:STDOUT: generic class @HoldsType(%T.loc4_17.2: %struct_type.t) {
|
|
|
// CHECK:STDOUT: %T.loc4_17.1: %struct_type.t = bind_symbolic_name T, 0 [symbolic = %T.loc4_17.1 (constants.%T)]
|
|
// CHECK:STDOUT: %T.loc4_17.1: %struct_type.t = bind_symbolic_name T, 0 [symbolic = %T.loc4_17.1 (constants.%T)]
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class {
|
|
// CHECK:STDOUT: class {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%HoldsType.843 [symbolic = @HoldsType.as.Destroy.impl.%HoldsType (constants.%HoldsType.843)]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @HoldsType.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.decl), @HoldsType.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(constants.%T) [symbolic = @HoldsType.as.Destroy.impl.%Destroy.impl_witness (constants.%Destroy.impl_witness.c73)]
|
|
|
|
|
-// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !members:
|
|
// CHECK:STDOUT: !members:
|
|
@@ -587,28 +436,13 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @C {
|
|
// CHECK:STDOUT: class @C {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @C.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@C.as.Destroy.impl.%C.as.Destroy.impl.Op.decl), @C.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.071]
|
|
|
|
|
-// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !members:
|
|
// CHECK:STDOUT: !members:
|
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: generic fn @HoldsType.as.Destroy.impl.Op(@HoldsType.%T.loc4_17.2: %struct_type.t) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %struct_type.t = bind_symbolic_name T, 0 [symbolic = %T (constants.%T)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType.843)]
|
|
|
|
|
-// CHECK:STDOUT: %ptr: type = ptr_type %HoldsType [symbolic = %ptr (constants.%ptr.ca6)]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type: type = pattern_type %ptr [symbolic = %pattern_type (constants.%pattern_type.051)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: fn(%self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.ca6)) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic fn @F(%T.loc8_6.2: %struct_type.t) {
|
|
// CHECK:STDOUT: generic fn @F(%T.loc8_6.2: %struct_type.t) {
|
|
|
// CHECK:STDOUT: %T.loc8_6.1: %struct_type.t = bind_symbolic_name T, 0 [symbolic = %T.loc8_6.1 (constants.%T)]
|
|
// CHECK:STDOUT: %T.loc8_6.1: %struct_type.t = bind_symbolic_name T, 0 [symbolic = %T.loc8_6.1 (constants.%T)]
|
|
|
// CHECK:STDOUT: %HoldsType.loc8_36.1: type = class_type @HoldsType, @HoldsType(%T.loc8_6.1) [symbolic = %HoldsType.loc8_36.1 (constants.%HoldsType.843)]
|
|
// CHECK:STDOUT: %HoldsType.loc8_36.1: type = class_type @HoldsType, @HoldsType(%T.loc8_6.1) [symbolic = %HoldsType.loc8_36.1 (constants.%HoldsType.843)]
|
|
@@ -626,8 +460,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @C.as.Destroy.impl.Op(%self.param: %ptr.019) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: fn @G() {
|
|
// CHECK:STDOUT: fn @G() {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
|
|
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
|
|
@@ -651,14 +483,20 @@ fn G() {
|
|
|
// CHECK:STDOUT: %.loc13_33.5: ref %C = converted %.loc13_33.1, %.loc13_33.4
|
|
// CHECK:STDOUT: %.loc13_33.5: ref %C = converted %.loc13_33.1, %.loc13_33.4
|
|
|
// CHECK:STDOUT: %.loc13_33.6: %C = bind_value %.loc13_33.5
|
|
// CHECK:STDOUT: %.loc13_33.6: %C = bind_value %.loc13_33.5
|
|
|
// CHECK:STDOUT: %F.call: init %empty_tuple.type = call %F.specific_fn(%.loc13_8.2, %.loc13_33.6)
|
|
// CHECK:STDOUT: %F.call: init %empty_tuple.type = call %F.specific_fn(%.loc13_8.2, %.loc13_33.6)
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc13_33.4, constants.%C.as.Destroy.impl.Op
|
|
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.loc13_33: %type_where = facet_value constants.%C, () [concrete = constants.%facet_value.be8]
|
|
|
|
|
+// CHECK:STDOUT: %.loc13_33.7: %type_where = converted constants.%C, %facet_value.loc13_33 [concrete = constants.%facet_value.be8]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.bound.loc13_33: <bound method> = bound_method %.loc13_33.4, constants.%AggregateT.as_type.as.Destroy.impl.Op.b80
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.1: <specific function> = specific_function constants.%AggregateT.as_type.as.Destroy.impl.Op.b80, @AggregateT.as_type.as.Destroy.impl.Op(constants.%facet_value.be8) [concrete = constants.%AggregateT.as_type.as.Destroy.impl.Op.specific_fn.003]
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc13_33: <bound method> = bound_method %.loc13_33.4, %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.1
|
|
|
// CHECK:STDOUT: %addr.loc13_33: %ptr.019 = addr_of %.loc13_33.4
|
|
// CHECK:STDOUT: %addr.loc13_33: %ptr.019 = addr_of %.loc13_33.4
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.call: init %empty_tuple.type = call %C.as.Destroy.impl.Op.bound(%addr.loc13_33)
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc13_6.4, constants.%HoldsType.as.Destroy.impl.Op.7ed
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function constants.%HoldsType.as.Destroy.impl.Op.7ed, @HoldsType.as.Destroy.impl.Op(constants.%struct) [concrete = constants.%HoldsType.as.Destroy.impl.Op.specific_fn]
|
|
|
|
|
-// CHECK:STDOUT: %bound_method: <bound method> = bound_method %.loc13_6.4, %HoldsType.as.Destroy.impl.Op.specific_fn
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.call.loc13_33: init %empty_tuple.type = call %bound_method.loc13_33(%addr.loc13_33)
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.loc13_6: %type_where = facet_value constants.%HoldsType.705, () [concrete = constants.%facet_value.451]
|
|
|
|
|
+// CHECK:STDOUT: %.loc13_6.5: %type_where = converted constants.%HoldsType.705, %facet_value.loc13_6 [concrete = constants.%facet_value.451]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.bound.loc13_6: <bound method> = bound_method %.loc13_6.4, constants.%AggregateT.as_type.as.Destroy.impl.Op.6c7
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.2: <specific function> = specific_function constants.%AggregateT.as_type.as.Destroy.impl.Op.6c7, @AggregateT.as_type.as.Destroy.impl.Op(constants.%facet_value.451) [concrete = constants.%AggregateT.as_type.as.Destroy.impl.Op.specific_fn.cd1]
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc13_6: <bound method> = bound_method %.loc13_6.4, %AggregateT.as_type.as.Destroy.impl.Op.specific_fn.2
|
|
|
// CHECK:STDOUT: %addr.loc13_6: %ptr.5d1 = addr_of %.loc13_6.4
|
|
// CHECK:STDOUT: %addr.loc13_6: %ptr.5d1 = addr_of %.loc13_6.4
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.call: init %empty_tuple.type = call %bound_method(%addr.loc13_6)
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.call.loc13_6: init %empty_tuple.type = call %bound_method.loc13_6(%addr.loc13_6)
|
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -668,19 +506,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%T) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.843
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.c73
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%T) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.843
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.ca6
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.051
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: specific @F(constants.%T) {
|
|
// CHECK:STDOUT: specific @F(constants.%T) {
|
|
|
// CHECK:STDOUT: %T.loc8_6.1 => constants.%T
|
|
// CHECK:STDOUT: %T.loc8_6.1 => constants.%T
|
|
|
// CHECK:STDOUT: %HoldsType.loc8_36.1 => constants.%HoldsType.843
|
|
// CHECK:STDOUT: %HoldsType.loc8_36.1 => constants.%HoldsType.843
|
|
@@ -703,25 +528,8 @@ fn G() {
|
|
|
// CHECK:STDOUT: %pattern_type.loc8_39 => constants.%pattern_type.c48
|
|
// CHECK:STDOUT: %pattern_type.loc8_39 => constants.%pattern_type.c48
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
-// CHECK:STDOUT: %require_complete.loc8_23 => constants.%complete_type
|
|
|
|
|
-// CHECK:STDOUT: %require_complete.loc8_40 => constants.%complete_type
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%struct) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%struct
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.705
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.df5
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type => constants.%HoldsType.as.Destroy.impl.Op.type.db4
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op => constants.%HoldsType.as.Destroy.impl.Op.7ed
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%struct) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%struct
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.705
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.5d1
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.c97
|
|
|
|
|
|
|
+// CHECK:STDOUT: %require_complete.loc8_23 => constants.%complete_type.357
|
|
|
|
|
+// CHECK:STDOUT: %require_complete.loc8_40 => constants.%complete_type.357
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_todo_class_access.carbon
|
|
// CHECK:STDOUT: --- fail_todo_class_access.carbon
|
|
@@ -729,15 +537,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: constants {
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %Class: type = class_type @Class [concrete]
|
|
// CHECK:STDOUT: %Class: type = class_type @Class [concrete]
|
|
|
// CHECK:STDOUT: %Class.elem: type = unbound_element_type %Class, type [concrete]
|
|
// CHECK:STDOUT: %Class.elem: type = unbound_element_type %Class, type [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.Op.type: type = fn_type @Destroy.Op [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.f6d: type = pattern_type auto [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.955: <witness> = impl_witness @Class.%Destroy.impl_witness_table [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.e71: type = ptr_type %Class [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.796: type = pattern_type %ptr.e71 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Class.as.Destroy.impl.Op.type: type = fn_type @Class.as.Destroy.impl.Op [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Class.as.Destroy.impl.Op: %Class.as.Destroy.impl.Op.type = struct_value () [concrete]
|
|
|
|
|
// CHECK:STDOUT: %struct_type.t: type = struct_type {.t: type} [concrete]
|
|
// CHECK:STDOUT: %struct_type.t: type = struct_type {.t: type} [concrete]
|
|
|
// CHECK:STDOUT: %complete_type.509: <witness> = complete_type_witness %struct_type.t [concrete]
|
|
// CHECK:STDOUT: %complete_type.509: <witness> = complete_type_witness %struct_type.t [concrete]
|
|
|
// CHECK:STDOUT: %type: type = facet_type <type> [concrete]
|
|
// CHECK:STDOUT: %type: type = facet_type <type> [concrete]
|
|
@@ -745,13 +544,9 @@ fn G() {
|
|
|
// CHECK:STDOUT: %T.0de: %Class = bind_symbolic_name T, 0 [symbolic]
|
|
// CHECK:STDOUT: %T.0de: %Class = bind_symbolic_name T, 0 [symbolic]
|
|
|
// CHECK:STDOUT: %pattern_type.761: type = pattern_type %Class [concrete]
|
|
// CHECK:STDOUT: %pattern_type.761: type = pattern_type %Class [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.type: type = generic_class_type @HoldsType [concrete]
|
|
// CHECK:STDOUT: %HoldsType.type: type = generic_class_type @HoldsType [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.f95cf2.1: type = class_type @HoldsType, @HoldsType(%T.0de) [symbolic]
|
|
// CHECK:STDOUT: %HoldsType.f95cf2.1: type = class_type @HoldsType, @HoldsType(%T.0de) [symbolic]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.c42b5c.1: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T.0de) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.deb697.1: type = ptr_type %HoldsType.f95cf2.1 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.dc9093.1: type = pattern_type %ptr.deb697.1 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type.d19c2c.1: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T.0de) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.044431.1: %HoldsType.as.Destroy.impl.Op.type.d19c2c.1 = struct_value () [symbolic]
|
|
|
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
|
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
|
// CHECK:STDOUT: %pattern_type.937: type = pattern_type %HoldsType.f95cf2.1 [symbolic]
|
|
// CHECK:STDOUT: %pattern_type.937: type = pattern_type %HoldsType.f95cf2.1 [symbolic]
|
|
@@ -760,11 +555,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %require_complete.8fa644.1: <witness> = require_complete_type %HoldsType.f95cf2.1 [symbolic]
|
|
// CHECK:STDOUT: %require_complete.8fa644.1: <witness> = require_complete_type %HoldsType.f95cf2.1 [symbolic]
|
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.071: <witness> = impl_witness @C.%Destroy.impl_witness_table [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.019: type = ptr_type %C [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.44a: type = pattern_type %ptr.019 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.type: type = fn_type @C.as.Destroy.impl.Op [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op: %C.as.Destroy.impl.Op.type = struct_value () [concrete]
|
|
|
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %c: %Class = bind_symbolic_name c, 0 [symbolic]
|
|
// CHECK:STDOUT: %c: %Class = bind_symbolic_name c, 0 [symbolic]
|
|
@@ -779,27 +569,34 @@ fn G() {
|
|
|
// CHECK:STDOUT: %Class.val: %Class = struct_value (%C) [concrete]
|
|
// CHECK:STDOUT: %Class.val: %Class = struct_value (%C) [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.f95cf2.2: type = class_type @HoldsType, @HoldsType(%c) [symbolic]
|
|
// CHECK:STDOUT: %HoldsType.f95cf2.2: type = class_type @HoldsType, @HoldsType(%c) [symbolic]
|
|
|
// CHECK:STDOUT: %HoldsType.val: %HoldsType.f95cf2.2 = struct_value () [symbolic]
|
|
// CHECK:STDOUT: %HoldsType.val: %HoldsType.f95cf2.2 = struct_value () [symbolic]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.c42b5c.2: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%c) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type.d19c2c.2: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%c) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.044431.2: %HoldsType.as.Destroy.impl.Op.type.d19c2c.2 = struct_value () [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.facet.792009.2: %Destroy.type = facet_value %HoldsType.f95cf2.2, (%Destroy.impl_witness.c42b5c.2) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %.efe: type = fn_type_with_self_type %Destroy.Op.type, %Destroy.facet.792009.2 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.deb697.2: type = ptr_type %HoldsType.f95cf2.2 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.dc9093.2: type = pattern_type %ptr.deb697.2 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function %HoldsType.as.Destroy.impl.Op.044431.2, @HoldsType.as.Destroy.impl.Op(%c) [symbolic]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.Op.type: type = fn_type @Destroy.Op [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanAggregateDestroy>> [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.1b5: %type_where = facet_value %HoldsType.f95cf2.2, () [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %ptr.deb: type = ptr_type %HoldsType.f95cf2.2 [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.lookup_impl_witness.c18: <witness> = lookup_impl_witness %HoldsType.f95cf2.2, @Destroy [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.facet.1db: %Destroy.type = facet_value %HoldsType.f95cf2.2, (%Destroy.lookup_impl_witness.c18) [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %.da5: type = fn_type_with_self_type %Destroy.Op.type, %Destroy.facet.1db [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %impl.elem0.9e0: %.da5 = impl_witness_access %Destroy.lookup_impl_witness.c18, element0 [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %specific_impl_fn.106: <specific function> = specific_impl_function %impl.elem0.9e0, @Destroy.Op(%Destroy.facet.1db) [symbolic]
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.d3d: %type_where = facet_value %Class, () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.bd3: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value.d3d) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.7c2: %AggregateT.as_type.as.Destroy.impl.Op.type.bd3 = struct_value () [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %ptr.e71: type = ptr_type %Class [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function %AggregateT.as_type.as.Destroy.impl.Op.7c2, @AggregateT.as_type.as.Destroy.impl.Op(%facet_value.d3d) [concrete]
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
// CHECK:STDOUT: imports {
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
|
|
|
-// CHECK:STDOUT: .Destroy = %Core.Destroy
|
|
|
|
|
// CHECK:STDOUT: .Copy = %Core.Copy
|
|
// CHECK:STDOUT: .Copy = %Core.Copy
|
|
|
|
|
+// CHECK:STDOUT: .Destroy = %Core.Destroy
|
|
|
// CHECK:STDOUT: import Core//prelude
|
|
// CHECK:STDOUT: import Core//prelude
|
|
|
// CHECK:STDOUT: import Core//prelude/...
|
|
// CHECK:STDOUT: import Core//prelude/...
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
|
|
|
|
|
// CHECK:STDOUT: %Core.Copy: type = import_ref Core//prelude/parts/copy, Copy, loaded [concrete = constants.%Copy.type]
|
|
// CHECK:STDOUT: %Core.Copy: type = import_ref Core//prelude/parts/copy, Copy, loaded [concrete = constants.%Copy.type]
|
|
|
// CHECK:STDOUT: %Core.import_ref.f97: %type.as.Copy.impl.Op.type = import_ref Core//prelude/parts/copy, loc40_31, loaded [concrete = constants.%type.as.Copy.impl.Op]
|
|
// CHECK:STDOUT: %Core.import_ref.f97: %type.as.Copy.impl.Op.type = import_ref Core//prelude/parts/copy, loc40_31, loaded [concrete = constants.%type.as.Copy.impl.Op]
|
|
|
// CHECK:STDOUT: %Copy.impl_witness_table.40f = impl_witness_table (%Core.import_ref.f97), @type.as.Copy.impl [concrete]
|
|
// CHECK:STDOUT: %Copy.impl_witness_table.40f = impl_witness_table (%Core.import_ref.f97), @type.as.Copy.impl [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
// CHECK:STDOUT: file {
|
|
@@ -854,73 +651,8 @@ fn G() {
|
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: impl @Class.as.Destroy.impl: @Class.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %Class.as.Destroy.impl.Op.decl: %Class.as.Destroy.impl.Op.type = fn_decl @Class.as.Destroy.impl.Op [concrete = constants.%Class.as.Destroy.impl.Op] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: %pattern_type.796 = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: %pattern_type.796 = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc4: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: %ptr.e71 = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Class [concrete = constants.%Class]
|
|
|
|
|
-// CHECK:STDOUT: %self: %ptr.e71 = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %Class.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @Class.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: generic impl @HoldsType.as.Destroy.impl(@HoldsType.%T.loc8_17.2: %Class) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %Class = bind_symbolic_name T, 0 [symbolic = %T (constants.%T.0de)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType.f95cf2.1)]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T) [symbolic = %Destroy.impl_witness (constants.%Destroy.impl_witness.c42b5c.1)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T) [symbolic = %HoldsType.as.Destroy.impl.Op.type (constants.%HoldsType.as.Destroy.impl.Op.type.d19c2c.1)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type.d19c2c.1) = struct_value () [symbolic = %HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op.044431.1)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl: @HoldsType.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.decl: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type.d19c2c.1) = fn_decl @HoldsType.as.Destroy.impl.Op [symbolic = @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op.044431.1)] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.dc9093.1) = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.dc9093.1) = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc8_28.1: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.deb697.1) = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %.loc8_28.2: type = splice_block %Self.ref [symbolic = %HoldsType (constants.%HoldsType.f95cf2.1)] {
|
|
|
|
|
-// CHECK:STDOUT: %.loc8_28.3: type = specific_constant constants.%HoldsType.f95cf2.1, @HoldsType(constants.%T.0de) [symbolic = %HoldsType (constants.%HoldsType.f95cf2.1)]
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc8_28.3 [symbolic = %HoldsType (constants.%HoldsType.f95cf2.1)]
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: %self: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.deb697.1) = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %HoldsType.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @HoldsType.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl @C.as.Destroy.impl: @C.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.decl: %C.as.Destroy.impl.Op.type = fn_decl @C.as.Destroy.impl.Op [concrete = constants.%C.as.Destroy.impl.Op] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: %pattern_type.44a = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: %pattern_type.44a = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc23: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: %ptr.019 = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: %self: %ptr.019 = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %C.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @C.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: class @Class {
|
|
// CHECK:STDOUT: class @Class {
|
|
|
// CHECK:STDOUT: %.loc5: %Class.elem = field_decl t, element0 [concrete]
|
|
// CHECK:STDOUT: %.loc5: %Class.elem = field_decl t, element0 [concrete]
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%Class [concrete = constants.%Class]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @Class.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@Class.as.Destroy.impl.%Class.as.Destroy.impl.Op.decl), @Class.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.955]
|
|
|
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%struct_type.t [concrete = constants.%complete_type.509]
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%struct_type.t [concrete = constants.%complete_type.509]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -935,10 +667,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class {
|
|
// CHECK:STDOUT: class {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%HoldsType.f95cf2.1 [symbolic = @HoldsType.as.Destroy.impl.%HoldsType (constants.%HoldsType.f95cf2.1)]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @HoldsType.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.decl), @HoldsType.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(constants.%T.0de) [symbolic = @HoldsType.as.Destroy.impl.%Destroy.impl_witness (constants.%Destroy.impl_witness.c42b5c.1)]
|
|
|
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -948,10 +676,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @C {
|
|
// CHECK:STDOUT: class @C {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @C.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@C.as.Destroy.impl.%C.as.Destroy.impl.Op.decl), @C.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.071]
|
|
|
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -959,19 +683,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @Class.as.Destroy.impl.Op(%self.param: %ptr.e71) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: generic fn @HoldsType.as.Destroy.impl.Op(@HoldsType.%T.loc8_17.2: %Class) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %Class = bind_symbolic_name T, 0 [symbolic = %T (constants.%T.0de)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType.f95cf2.1)]
|
|
|
|
|
-// CHECK:STDOUT: %ptr: type = ptr_type %HoldsType [symbolic = %ptr (constants.%ptr.deb697.1)]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type: type = pattern_type %ptr [symbolic = %pattern_type (constants.%pattern_type.dc9093.1)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: fn(%self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.deb697.1)) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic fn @F(%T.loc21_6.2: %Class) {
|
|
// CHECK:STDOUT: generic fn @F(%T.loc21_6.2: %Class) {
|
|
|
// CHECK:STDOUT: %T.loc21_6.1: %Class = bind_symbolic_name T, 0 [symbolic = %T.loc21_6.1 (constants.%T.0de)]
|
|
// CHECK:STDOUT: %T.loc21_6.1: %Class = bind_symbolic_name T, 0 [symbolic = %T.loc21_6.1 (constants.%T.0de)]
|
|
|
// CHECK:STDOUT: %HoldsType.loc21_31.1: type = class_type @HoldsType, @HoldsType(%T.loc21_6.1) [symbolic = %HoldsType.loc21_31.1 (constants.%HoldsType.f95cf2.1)]
|
|
// CHECK:STDOUT: %HoldsType.loc21_31.1: type = class_type @HoldsType, @HoldsType(%T.loc21_6.1) [symbolic = %HoldsType.loc21_31.1 (constants.%HoldsType.f95cf2.1)]
|
|
@@ -987,8 +698,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @C.as.Destroy.impl.Op(%self.param: %ptr.019) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: fn @G() {
|
|
// CHECK:STDOUT: fn @G() {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: name_binding_decl {
|
|
// CHECK:STDOUT: name_binding_decl {
|
|
@@ -998,8 +707,8 @@ fn G() {
|
|
|
// CHECK:STDOUT: %.loc26_26.1: %struct_type.t = struct_literal (%C.ref)
|
|
// CHECK:STDOUT: %.loc26_26.1: %struct_type.t = struct_literal (%C.ref)
|
|
|
// CHECK:STDOUT: %Class.ref.loc26_31: type = name_ref Class, file.%Class.decl [concrete = constants.%Class]
|
|
// CHECK:STDOUT: %Class.ref.loc26_31: type = name_ref Class, file.%Class.decl [concrete = constants.%Class]
|
|
|
// CHECK:STDOUT: %impl.elem0.loc26: %.98f = impl_witness_access constants.%Copy.impl_witness.de9, element0 [concrete = constants.%type.as.Copy.impl.Op]
|
|
// CHECK:STDOUT: %impl.elem0.loc26: %.98f = impl_witness_access constants.%Copy.impl_witness.de9, element0 [concrete = constants.%type.as.Copy.impl.Op]
|
|
|
-// CHECK:STDOUT: %bound_method.loc26: <bound method> = bound_method %C.ref, %impl.elem0.loc26 [concrete = constants.%type.as.Copy.impl.Op.bound]
|
|
|
|
|
-// CHECK:STDOUT: %type.as.Copy.impl.Op.call: init type = call %bound_method.loc26(%C.ref) [concrete = constants.%C]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc26_25: <bound method> = bound_method %C.ref, %impl.elem0.loc26 [concrete = constants.%type.as.Copy.impl.Op.bound]
|
|
|
|
|
+// CHECK:STDOUT: %type.as.Copy.impl.Op.call: init type = call %bound_method.loc26_25(%C.ref) [concrete = constants.%C]
|
|
|
// CHECK:STDOUT: %.loc26_26.2: ref %Class = temporary_storage
|
|
// CHECK:STDOUT: %.loc26_26.2: ref %Class = temporary_storage
|
|
|
// CHECK:STDOUT: %.loc26_26.3: ref type = class_element_access %.loc26_26.2, element0
|
|
// CHECK:STDOUT: %.loc26_26.3: ref type = class_element_access %.loc26_26.2, element0
|
|
|
// CHECK:STDOUT: %.loc26_26.4: init type = initialize_from %type.as.Copy.impl.Op.call to %.loc26_26.3 [concrete = constants.%C]
|
|
// CHECK:STDOUT: %.loc26_26.4: init type = initialize_from %type.as.Copy.impl.Op.call to %.loc26_26.3 [concrete = constants.%C]
|
|
@@ -1022,15 +731,21 @@ fn G() {
|
|
|
// CHECK:STDOUT: %.loc27_6.4: ref %HoldsType.f95cf2.2 = temporary %.loc27_6.2, %.loc27_6.3
|
|
// CHECK:STDOUT: %.loc27_6.4: ref %HoldsType.f95cf2.2 = temporary %.loc27_6.2, %.loc27_6.3
|
|
|
// CHECK:STDOUT: %.loc27_8: ref %HoldsType.f95cf2.2 = converted %.loc27_6.1, %.loc27_6.4
|
|
// CHECK:STDOUT: %.loc27_8: ref %HoldsType.f95cf2.2 = converted %.loc27_6.1, %.loc27_6.4
|
|
|
// CHECK:STDOUT: %.loc27_26: %empty_struct_type = struct_literal ()
|
|
// CHECK:STDOUT: %.loc27_26: %empty_struct_type = struct_literal ()
|
|
|
-// CHECK:STDOUT: %impl.elem0.loc27: %.efe = impl_witness_access constants.%Destroy.impl_witness.c42b5c.2, element0 [symbolic = constants.%HoldsType.as.Destroy.impl.Op.044431.2]
|
|
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.loc27: %type_where = facet_value constants.%HoldsType.f95cf2.2, () [symbolic = constants.%facet_value.1b5]
|
|
|
|
|
+// CHECK:STDOUT: %.loc27_6.5: %type_where = converted constants.%HoldsType.f95cf2.2, %facet_value.loc27 [symbolic = constants.%facet_value.1b5]
|
|
|
|
|
+// CHECK:STDOUT: %impl.elem0.loc27: %.da5 = impl_witness_access constants.%Destroy.lookup_impl_witness.c18, element0 [symbolic = constants.%impl.elem0.9e0]
|
|
|
// CHECK:STDOUT: %bound_method.loc27_6.1: <bound method> = bound_method %.loc27_6.4, %impl.elem0.loc27
|
|
// CHECK:STDOUT: %bound_method.loc27_6.1: <bound method> = bound_method %.loc27_6.4, %impl.elem0.loc27
|
|
|
-// CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0.loc27, @HoldsType.as.Destroy.impl.Op(constants.%c) [symbolic = constants.%HoldsType.as.Destroy.impl.Op.specific_fn]
|
|
|
|
|
-// CHECK:STDOUT: %bound_method.loc27_6.2: <bound method> = bound_method %.loc27_6.4, %specific_fn
|
|
|
|
|
-// CHECK:STDOUT: %addr.loc27: %ptr.deb697.2 = addr_of %.loc27_6.4
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.call: init %empty_tuple.type = call %bound_method.loc27_6.2(%addr.loc27)
|
|
|
|
|
-// CHECK:STDOUT: %Class.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc26_26.6, constants.%Class.as.Destroy.impl.Op
|
|
|
|
|
|
|
+// CHECK:STDOUT: %specific_impl_fn: <specific function> = specific_impl_function %impl.elem0.loc27, @Destroy.Op(constants.%Destroy.facet.1db) [symbolic = constants.%specific_impl_fn.106]
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc27_6.2: <bound method> = bound_method %.loc27_6.4, %specific_impl_fn
|
|
|
|
|
+// CHECK:STDOUT: %addr.loc27: %ptr.deb = addr_of %.loc27_6.4
|
|
|
|
|
+// CHECK:STDOUT: %.loc27_6.6: init %empty_tuple.type = call %bound_method.loc27_6.2(%addr.loc27)
|
|
|
|
|
+// CHECK:STDOUT: %facet_value.loc26: %type_where = facet_value constants.%Class, () [concrete = constants.%facet_value.d3d]
|
|
|
|
|
+// CHECK:STDOUT: %.loc26_26.7: %type_where = converted constants.%Class, %facet_value.loc26 [concrete = constants.%facet_value.d3d]
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc26_26.6, constants.%AggregateT.as_type.as.Destroy.impl.Op.7c2
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function constants.%AggregateT.as_type.as.Destroy.impl.Op.7c2, @AggregateT.as_type.as.Destroy.impl.Op(constants.%facet_value.d3d) [concrete = constants.%AggregateT.as_type.as.Destroy.impl.Op.specific_fn]
|
|
|
|
|
+// CHECK:STDOUT: %bound_method.loc26_26: <bound method> = bound_method %.loc26_26.6, %AggregateT.as_type.as.Destroy.impl.Op.specific_fn
|
|
|
// CHECK:STDOUT: %addr.loc26: %ptr.e71 = addr_of %.loc26_26.6
|
|
// CHECK:STDOUT: %addr.loc26: %ptr.e71 = addr_of %.loc26_26.6
|
|
|
-// CHECK:STDOUT: %Class.as.Destroy.impl.Op.call: init %empty_tuple.type = call %Class.as.Destroy.impl.Op.bound(%addr.loc26)
|
|
|
|
|
|
|
+// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.call: init %empty_tuple.type = call %bound_method.loc26_26(%addr.loc26)
|
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -1040,19 +755,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%T.0de) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T.0de
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.f95cf2.1
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.c42b5c.1
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%T.0de) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T.0de
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.f95cf2.1
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.deb697.1
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.dc9093.1
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: specific @F(constants.%T.0de) {
|
|
// CHECK:STDOUT: specific @F(constants.%T.0de) {
|
|
|
// CHECK:STDOUT: %T.loc21_6.1 => constants.%T.0de
|
|
// CHECK:STDOUT: %T.loc21_6.1 => constants.%T.0de
|
|
|
// CHECK:STDOUT: %HoldsType.loc21_31.1 => constants.%HoldsType.f95cf2.1
|
|
// CHECK:STDOUT: %HoldsType.loc21_31.1 => constants.%HoldsType.f95cf2.1
|
|
@@ -1066,23 +768,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%c) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%c
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.f95cf2.2
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.c42b5c.2
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type => constants.%HoldsType.as.Destroy.impl.Op.type.d19c2c.2
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op => constants.%HoldsType.as.Destroy.impl.Op.044431.2
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%c) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%c
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType.f95cf2.2
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.deb697.2
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.dc9093.2
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: --- fail_todo_array_index.carbon
|
|
// CHECK:STDOUT: --- fail_todo_array_index.carbon
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
// CHECK:STDOUT: constants {
|
|
@@ -1096,16 +781,9 @@ fn G() {
|
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %HoldsType.generic: %HoldsType.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T.eb6) [symbolic]
|
|
// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T.eb6) [symbolic]
|
|
|
-// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.f6d: type = pattern_type auto [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.fc1: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T.eb6) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.ea3: type = ptr_type %array_type [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.998: type = ptr_type %HoldsType [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.34f: type = pattern_type %ptr.998 [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T.eb6) [symbolic]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op: %HoldsType.as.Destroy.impl.Op.type = struct_value () [symbolic]
|
|
|
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
|
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %ptr.ea3: type = ptr_type %array_type [concrete]
|
|
|
// CHECK:STDOUT: %pattern_type.142: type = pattern_type %HoldsType [symbolic]
|
|
// CHECK:STDOUT: %pattern_type.142: type = pattern_type %HoldsType [symbolic]
|
|
|
// CHECK:STDOUT: %int_0.5c6: Core.IntLiteral = int_value 0 [concrete]
|
|
// CHECK:STDOUT: %int_0.5c6: Core.IntLiteral = int_value 0 [concrete]
|
|
|
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
|
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
|
@@ -1132,11 +810,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %require_complete.640: <witness> = require_complete_type %HoldsType [symbolic]
|
|
// CHECK:STDOUT: %require_complete.640: <witness> = require_complete_type %HoldsType [symbolic]
|
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness.071: <witness> = impl_witness @C.%Destroy.impl_witness_table [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %ptr.019: type = ptr_type %C [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type.44a: type = pattern_type %ptr.019 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.type: type = fn_type @C.as.Destroy.impl.Op [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op: %C.as.Destroy.impl.Op.type = struct_value () [concrete]
|
|
|
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
|
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %tuple.type.85c: type = tuple_type (type) [concrete]
|
|
// CHECK:STDOUT: %tuple.type.85c: type = tuple_type (type) [concrete]
|
|
@@ -1149,6 +822,7 @@ fn G() {
|
|
|
// CHECK:STDOUT: %type.as.Copy.impl.Op: %type.as.Copy.impl.Op.type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %type.as.Copy.impl.Op: %type.as.Copy.impl.Op.type = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %type.as.Copy.impl.Op.bound: <bound method> = bound_method %C, %type.as.Copy.impl.Op [concrete]
|
|
// CHECK:STDOUT: %type.as.Copy.impl.Op.bound: <bound method> = bound_method %C, %type.as.Copy.impl.Op [concrete]
|
|
|
// CHECK:STDOUT: %array: %array_type = tuple_value (%C) [concrete]
|
|
// CHECK:STDOUT: %array: %array_type = tuple_value (%C) [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
|
|
|
// CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanAggregateDestroy>> [concrete]
|
|
// CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanAggregateDestroy>> [concrete]
|
|
|
// CHECK:STDOUT: %facet_value: %type_where = facet_value %array_type, () [concrete]
|
|
// CHECK:STDOUT: %facet_value: %type_where = facet_value %array_type, () [concrete]
|
|
|
// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.9e6: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value) [concrete]
|
|
// CHECK:STDOUT: %AggregateT.as_type.as.Destroy.impl.Op.type.9e6: type = fn_type @AggregateT.as_type.as.Destroy.impl.Op, @AggregateT.as_type.as.Destroy.impl(%facet_value) [concrete]
|
|
@@ -1158,14 +832,13 @@ fn G() {
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
// CHECK:STDOUT: imports {
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
|
|
|
-// CHECK:STDOUT: .Destroy = %Core.Destroy
|
|
|
|
|
// CHECK:STDOUT: .Int = %Core.Int
|
|
// CHECK:STDOUT: .Int = %Core.Int
|
|
|
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
|
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
|
|
// CHECK:STDOUT: .Copy = %Core.Copy
|
|
// CHECK:STDOUT: .Copy = %Core.Copy
|
|
|
|
|
+// CHECK:STDOUT: .Destroy = %Core.Destroy
|
|
|
// CHECK:STDOUT: import Core//prelude
|
|
// CHECK:STDOUT: import Core//prelude
|
|
|
// CHECK:STDOUT: import Core//prelude/...
|
|
// CHECK:STDOUT: import Core//prelude/...
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
|
|
|
|
|
// CHECK:STDOUT: %Core.Int: %Int.type = import_ref Core//prelude/parts/int, Int, loaded [concrete = constants.%Int.generic]
|
|
// CHECK:STDOUT: %Core.Int: %Int.type = import_ref Core//prelude/parts/int, Int, loaded [concrete = constants.%Int.generic]
|
|
|
// CHECK:STDOUT: %Core.ImplicitAs: %ImplicitAs.type.cc7 = import_ref Core//prelude/parts/as, ImplicitAs, loaded [concrete = constants.%ImplicitAs.generic]
|
|
// CHECK:STDOUT: %Core.ImplicitAs: %ImplicitAs.type.cc7 = import_ref Core//prelude/parts/as, ImplicitAs, loaded [concrete = constants.%ImplicitAs.generic]
|
|
|
// CHECK:STDOUT: %Core.import_ref.ee7: @Core.IntLiteral.as.ImplicitAs.impl.%Core.IntLiteral.as.ImplicitAs.impl.Convert.type (%Core.IntLiteral.as.ImplicitAs.impl.Convert.type.340) = import_ref Core//prelude/parts/int, loc23_39, loaded [symbolic = @Core.IntLiteral.as.ImplicitAs.impl.%Core.IntLiteral.as.ImplicitAs.impl.Convert (constants.%Core.IntLiteral.as.ImplicitAs.impl.Convert.1c0)]
|
|
// CHECK:STDOUT: %Core.import_ref.ee7: @Core.IntLiteral.as.ImplicitAs.impl.%Core.IntLiteral.as.ImplicitAs.impl.Convert.type (%Core.IntLiteral.as.ImplicitAs.impl.Convert.type.340) = import_ref Core//prelude/parts/int, loc23_39, loaded [symbolic = @Core.IntLiteral.as.ImplicitAs.impl.%Core.IntLiteral.as.ImplicitAs.impl.Convert (constants.%Core.IntLiteral.as.ImplicitAs.impl.Convert.1c0)]
|
|
@@ -1173,6 +846,7 @@ fn G() {
|
|
|
// CHECK:STDOUT: %Core.Copy: type = import_ref Core//prelude/parts/copy, Copy, loaded [concrete = constants.%Copy.type]
|
|
// CHECK:STDOUT: %Core.Copy: type = import_ref Core//prelude/parts/copy, Copy, loaded [concrete = constants.%Copy.type]
|
|
|
// CHECK:STDOUT: %Core.import_ref.f97: %type.as.Copy.impl.Op.type = import_ref Core//prelude/parts/copy, loc40_31, loaded [concrete = constants.%type.as.Copy.impl.Op]
|
|
// CHECK:STDOUT: %Core.import_ref.f97: %type.as.Copy.impl.Op.type = import_ref Core//prelude/parts/copy, loc40_31, loaded [concrete = constants.%type.as.Copy.impl.Op]
|
|
|
// CHECK:STDOUT: %Copy.impl_witness_table.40f = impl_witness_table (%Core.import_ref.f97), @type.as.Copy.impl [concrete]
|
|
// CHECK:STDOUT: %Copy.impl_witness_table.40f = impl_witness_table (%Core.import_ref.f97), @type.as.Copy.impl [concrete]
|
|
|
|
|
+// CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
// CHECK:STDOUT: file {
|
|
@@ -1237,61 +911,12 @@ fn G() {
|
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
// CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: generic impl @HoldsType.as.Destroy.impl(@HoldsType.%T.loc4_17.2: %array_type) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %array_type = bind_symbolic_name T, 0 [symbolic = %T (constants.%T.eb6)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType)]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness @HoldsType.%Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(%T) [symbolic = %Destroy.impl_witness (constants.%Destroy.impl_witness.fc1)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.type: type = fn_type @HoldsType.as.Destroy.impl.Op, @HoldsType.as.Destroy.impl(%T) [symbolic = %HoldsType.as.Destroy.impl.Op.type (constants.%HoldsType.as.Destroy.impl.Op.type)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type) = struct_value () [symbolic = %HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl: @HoldsType.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType.as.Destroy.impl.Op.decl: @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.type (%HoldsType.as.Destroy.impl.Op.type) = fn_decl @HoldsType.as.Destroy.impl.Op [symbolic = @HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op (constants.%HoldsType.as.Destroy.impl.Op)] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.34f) = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: @HoldsType.as.Destroy.impl.Op.%pattern_type (%pattern_type.34f) = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_37.1: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.998) = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_37.2: type = splice_block %Self.ref [symbolic = %HoldsType (constants.%HoldsType)] {
|
|
|
|
|
-// CHECK:STDOUT: %.loc4_37.3: type = specific_constant constants.%HoldsType, @HoldsType(constants.%T.eb6) [symbolic = %HoldsType (constants.%HoldsType)]
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, %.loc4_37.3 [symbolic = %HoldsType (constants.%HoldsType)]
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: %self: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.998) = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %HoldsType.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @HoldsType.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: impl @C.as.Destroy.impl: @C.%Self.ref as constants.%Destroy.type {
|
|
|
|
|
-// CHECK:STDOUT: %C.as.Destroy.impl.Op.decl: %C.as.Destroy.impl.Op.type = fn_decl @C.as.Destroy.impl.Op [concrete = constants.%C.as.Destroy.impl.Op] {
|
|
|
|
|
-// CHECK:STDOUT: %self.patt: %pattern_type.44a = binding_pattern self [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %self.param_patt: %pattern_type.44a = value_param_pattern %self.patt, call_param0 [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %.loc14: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
|
|
|
|
|
-// CHECK:STDOUT: } {
|
|
|
|
|
-// CHECK:STDOUT: %self.param: %ptr.019 = value_param call_param0
|
|
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: %self: %ptr.019 = bind_name self, %self.param
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !members:
|
|
|
|
|
-// CHECK:STDOUT: .Op = %C.as.Destroy.impl.Op.decl
|
|
|
|
|
-// CHECK:STDOUT: witness = @C.%Destroy.impl_witness
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic class @HoldsType(%T.loc4_17.2: %array_type) {
|
|
// CHECK:STDOUT: generic class @HoldsType(%T.loc4_17.2: %array_type) {
|
|
|
// CHECK:STDOUT: %T.loc4_17.1: %array_type = bind_symbolic_name T, 0 [symbolic = %T.loc4_17.1 (constants.%T.eb6)]
|
|
// CHECK:STDOUT: %T.loc4_17.1: %array_type = bind_symbolic_name T, 0 [symbolic = %T.loc4_17.1 (constants.%T.eb6)]
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class {
|
|
// CHECK:STDOUT: class {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%HoldsType [symbolic = @HoldsType.as.Destroy.impl.%HoldsType (constants.%HoldsType)]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @HoldsType.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@HoldsType.as.Destroy.impl.%HoldsType.as.Destroy.impl.Op.decl), @HoldsType.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table, @HoldsType.as.Destroy.impl(constants.%T.eb6) [symbolic = @HoldsType.as.Destroy.impl.%Destroy.impl_witness (constants.%Destroy.impl_witness.fc1)]
|
|
|
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -1301,10 +926,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @C {
|
|
// CHECK:STDOUT: class @C {
|
|
|
-// CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
|
|
|
|
|
-// CHECK:STDOUT: impl_decl @C.as.Destroy.impl [concrete] {} {}
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@C.as.Destroy.impl.%C.as.Destroy.impl.Op.decl), @C.as.Destroy.impl [concrete]
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.071]
|
|
|
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
|
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
// CHECK:STDOUT: complete_type_witness = %complete_type
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
@@ -1312,17 +933,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
// CHECK:STDOUT: .Self = constants.%C
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: generic fn @HoldsType.as.Destroy.impl.Op(@HoldsType.%T.loc4_17.2: %array_type) {
|
|
|
|
|
-// CHECK:STDOUT: %T: %array_type = bind_symbolic_name T, 0 [symbolic = %T (constants.%T.eb6)]
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType: type = class_type @HoldsType, @HoldsType(%T) [symbolic = %HoldsType (constants.%HoldsType)]
|
|
|
|
|
-// CHECK:STDOUT: %ptr: type = ptr_type %HoldsType [symbolic = %ptr (constants.%ptr.998)]
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type: type = pattern_type %ptr [symbolic = %pattern_type (constants.%pattern_type.34f)]
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: !definition:
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: fn(%self.param: @HoldsType.as.Destroy.impl.Op.%ptr (%ptr.998)) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: generic fn @F(%T.loc12_6.2: %array_type) {
|
|
// CHECK:STDOUT: generic fn @F(%T.loc12_6.2: %array_type) {
|
|
|
// CHECK:STDOUT: %T.loc12_6.1: %array_type = bind_symbolic_name T, 0 [symbolic = %T.loc12_6.1 (constants.%T.eb6)]
|
|
// CHECK:STDOUT: %T.loc12_6.1: %array_type = bind_symbolic_name T, 0 [symbolic = %T.loc12_6.1 (constants.%T.eb6)]
|
|
|
// CHECK:STDOUT: %HoldsType.loc12_40.1: type = class_type @HoldsType, @HoldsType(%T.loc12_6.1) [symbolic = %HoldsType.loc12_40.1 (constants.%HoldsType)]
|
|
// CHECK:STDOUT: %HoldsType.loc12_40.1: type = class_type @HoldsType, @HoldsType(%T.loc12_6.1) [symbolic = %HoldsType.loc12_40.1 (constants.%HoldsType)]
|
|
@@ -1337,8 +947,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @C.as.Destroy.impl.Op(%self.param: %ptr.019) = "no_op";
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: fn @G() {
|
|
// CHECK:STDOUT: fn @G() {
|
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: !entry:
|
|
|
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
|
|
// CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
|
|
@@ -1376,19 +984,6 @@ fn G() {
|
|
|
// CHECK:STDOUT: !definition:
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl(constants.%T.eb6) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T.eb6
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType
|
|
|
|
|
-// CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.fc1
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
-// CHECK:STDOUT: specific @HoldsType.as.Destroy.impl.Op(constants.%T.eb6) {
|
|
|
|
|
-// CHECK:STDOUT: %T => constants.%T.eb6
|
|
|
|
|
-// CHECK:STDOUT: %HoldsType => constants.%HoldsType
|
|
|
|
|
-// CHECK:STDOUT: %ptr => constants.%ptr.998
|
|
|
|
|
-// CHECK:STDOUT: %pattern_type => constants.%pattern_type.34f
|
|
|
|
|
-// CHECK:STDOUT: }
|
|
|
|
|
-// CHECK:STDOUT:
|
|
|
|
|
// CHECK:STDOUT: specific @F(constants.%T.eb6) {
|
|
// CHECK:STDOUT: specific @F(constants.%T.eb6) {
|
|
|
// CHECK:STDOUT: %T.loc12_6.1 => constants.%T.eb6
|
|
// CHECK:STDOUT: %T.loc12_6.1 => constants.%T.eb6
|
|
|
// CHECK:STDOUT: %HoldsType.loc12_40.1 => constants.%HoldsType
|
|
// CHECK:STDOUT: %HoldsType.loc12_40.1 => constants.%HoldsType
|