1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
|
// RUN: %target-swift-emit-irgen -O \
// RUN: -disable-type-layout \
// RUN: %s \
// RUN: | \
// RUN: %IRGenFileCheck %s
@_silgen_name("external_symbol")
func external_symbol()
public protocol P {
static func foo()
}
public class C<T> {
deinit {
external_symbol()
}
}
public struct InnerDeinitingReleasableNC<T> : ~Copyable {
public let i1: Int
public let i2: Int
public let i3: Int
public let i4: Int
public let c1: C<T>
public let c2: C<T>
public let c3: C<T>
public let c4: C<T>
deinit {
external_symbol()
}
}
public struct InnerDeinitingDestructableNC<T> : ~Copyable {
public let t: T
public let i1: Int
public let i2: Int
public let i3: Int
public let i4: Int
public let c1: C<T>
public let c2: C<T>
public let c3: C<T>
public let c4: C<T>
deinit {
external_symbol()
}
}
public struct InnerDeinitingWithLayoutNC<T> : ~Copyable {
public let t: T
deinit {}
}
public struct InnerDeinitingWithoutLayoutNC<T>: ~Copyable {
public let ptr: Int
deinit {}
}
public struct OuterDeinitingNC_1<T> : ~Copyable {
public let i1: Int
public let c1: C<T>
public let i: InnerDeinitingReleasableNC<T>
deinit {
external_symbol()
}
}
public struct OuterNC_1<T> : ~Copyable {
public let i1: Int
public let c1: C<T>
public let i: InnerDeinitingReleasableNC<T>
}
public struct OuterNC_2<T> : ~Copyable {
public let i1: Int
public let c1: C<T>
public let i: InnerDeinitingDestructableNC<T>
}
public struct GenericContext_1<T> {
}
extension GenericContext_1 : P where T : P {
public static func foo() {
T.foo()
}
public struct OuterNC_1: ~Copyable {
let i: Inner_NC1
func doit() {
i.beinit()
}
}
public struct Inner_NC1: ~Copyable {
let t: T
let ptr: Int
deinit {
T.foo()
}
func beinit() {}
}
}
public enum OuterSinglePayloadNC_1<T>: ~Copyable {
case none
case some(InnerDeinitingWithoutLayoutNC<T>)
}
public enum OuterSinglePayloadNC_2<T>: ~Copyable {
case none
case some(InnerDeinitingReleasableNC<T>)
}
public enum OuterSinglePayloadNC_3<T>: ~Copyable {
case none
case some(InnerDeinitingDestructableNC<T>)
}
public enum OuterMultiPayloadNC_1<T>: ~Copyable {
case none
case some(InnerDeinitingWithLayoutNC<T>)
case some2(InnerDeinitingWithLayoutNC<T>)
}
public enum OuterMultiPayloadNC_2<T>: ~Copyable {
case none
case some(InnerDeinitingWithoutLayoutNC<T>)
case some2(InnerDeinitingWithoutLayoutNC<T>)
}
// FIXME: Uncomment.
public enum OuterMultiPayloadNC_3<T>: ~Copyable {
case none
case some(InnerDeinitingReleasableNC<T>)
case some2(InnerDeinitingReleasableNC<T>)
}
public enum OuterMultiPayloadNC_4<T>: ~Copyable {
case none
case some(InnerDeinitingDestructableNC<T>)
case some2(InnerDeinitingDestructableNC<T>)
}
// Destroyed value:
// - has deinit
// On lifetime end:
// - call deinit
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions22takeOuterDeinitingNC_1yyAA0efG2_1VyxGnlF"(
// CHECK-SAME: ptr{{.*}} %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: [[RESPONSE:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions18OuterDeinitingNC_1VMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[OUTER_DEINITING_NC_1_METADATA:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE]]
// CHECK: call{{.*}} @"$s24moveonly_value_functions18OuterDeinitingNC_1VfD"(
// CHECK-SAME: ptr [[OUTER_DEINITING_NC_1_METADATA]],
// CHECK-SAME: ptr{{.*}} %0)
// CHECK: }
public func takeOuterDeinitingNC_1<T>(_ t: consuming OuterDeinitingNC_1<T>) {
external_symbol()
}
// If the destroyed value has no deinit, is releasable, and contains a
// noncopyable value with a deinit, call the outlined release function.
// Destroyed value:
// - has NO deinit
// - contains value type with deinit
// - is releasable
// On lifetime end:
// - call outlined release function
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions13takeOuterNC_1yyAA0eF2_1VyxGnlF"(
// CHECK-SAME: ptr{{.*}} %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions9OuterNC_1VyxGlWOs"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// Verify that the outlined release function takes the metadata for the
// move-only-with-deinit type InnerDeinitingReleasableNC<T> and passes it along
// to that deinit.
// $s24moveonly_value_functions9OuterNC_1VyxGlWOs ---> outlined release of moveonly_value_functions.OuterNC_2<A>
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions9OuterNC_1VyxGlWOs"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// ...
// ...
// CHECK: [[RESPONSE:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions26InnerDeinitingReleasableNCVMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[INNER_DEINITING_RELEASABLE_NC_METADATA:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE]]
// CHECK: call swiftcc void @"$s24moveonly_value_functions26InnerDeinitingReleasableNCVfD"(
// CHECK-SAME: ptr [[INNER_DEINITING_RELEASABLE_NC_METADATA]],
// : ptr noalias nocapture swiftself dereferenceable(64) %deinit.arg)
// CHECK: }
public func takeOuterNC_1<T>(_ o: consuming OuterNC_1<T>) {
external_symbol()
}
// If the destroyed value has no deinit, is releasable, and contains a
// noncopyable value with a deinit, call the outlined destroy function.
// Destroyed value:
// - has NO deinit
// - contains value type with deinit
// - is NOT releasable
// On lifetime end:
// - call outlined destroy destroy
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions13takeOuterNC_2yyAA0eF2_2VyxGnlF"(
// CHECK-SAME: ptr{{.*}} %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK-NOT: @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"
// CHECK-NOT: @"$s24moveonly_value_functions9OuterNC_2VMa"
// CHECK: call{{.*}} @"$s24moveonly_value_functions9OuterNC_2VyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// Verify that the outlined destroy function takes the metadata for the
// move-only-with-deinit type InnerDeinitingDestructable<T> and passes it along
// to that deinit.
// $s24moveonly_value_functions9OuterNC_2VyxGlWOh ---> outlined destroy of moveonly_value_functions.OuterNC_2<A>
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions9OuterNC_2VyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// ...
// ...
// CHECK: [[RESPONSE:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"(
// : [[INT]] 0,
// CHECK-SAME: ptr %T)
// CHECK: [[INNER_DEINITING_DESTRUCTABLE_NC_METADATA:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE]]
// CHECK: call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVfD"(
// CHECK-SAME: ptr [[INNER_DEINITING_DESTRUCTABLE_NC_METADATA]],
// : ptr noalias swiftself %3)
// CHECK: }
public func takeOuterNC_2<T>(_ o: consuming OuterNC_2<T>) {
external_symbol()
}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions29takeGenericContext_1OuterNC_1yyAA0eF2_1VA2A1PRzlE0gH2_1Vyx_GnAaERzlF"(
// CHECK-SAME: ptr noalias %0,
// CHECK-SAME: ptr %T,
// CHECK-SAME: ptr %T.P)
// CHECK-SAME: {
// CHECK-NOT: @"$s24moveonly_value_functions16GenericContext_1VA2A1PRzlE9Inner_NC1VMa"
// CHECK-NOT: @"$s24moveonly_value_functions16GenericContext_1VA2A1PRzlE9OuterNC_1VMa"
// CHECK: call ptr @"$s24moveonly_value_functions16GenericContext_1VA2A1PRzlE9OuterNC_1Vyx_GAaDRzlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T,
// CHECK-SAME: ptr %T.P)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions16GenericContext_1VA2A1PRzlE9OuterNC_1Vyx_GAaDRzlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T,
// CHECK-SAME: ptr %T.P)
// CHECK-SAME: {
// CHECK: [[RESPONSE:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions16GenericContext_1VA2A1PRzlE9Inner_NC1VMa"(
// : i64 0,
// CHECK-SAME: ptr %T,
// CHECK-SAME: ptr %T.P)
// CHECK: [[GENERIC_CONTEXT_1_INNER_NC_1_METADATA:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE]], 0
// CHECK: call swiftcc void @"$s24moveonly_value_functions16GenericContext_1VA2A1PRzlE9Inner_NC1VfD"(
// CHECK-SAME: ptr [[GENERIC_CONTEXT_1_INNER_NC_1_METADATA]],
// CHECK-SAME: ptr noalias swiftself %0)
// CHECK: }
public func takeGenericContext_1OuterNC_1<T : P>(_ e: consuming GenericContext_1<T>.OuterNC_1) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions26takeOuterSinglePayloadNC_1yyAA0efgH2_1OyxGnlF"(
// : i64 %0,
// : i8 %1,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_1OyxGlWOe"(
// : i64 %0,
// : i1 %2,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_1OyxGlWOe"(
// : i64 %0,
// : i1 %1,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions29InnerDeinitingWithoutLayoutNCVfD"(
// : i64 %0,
// CHECK-SAME: ptr %T)
// CHECK: }
public func takeOuterSinglePayloadNC_1<T>(_ e: consuming OuterSinglePayloadNC_1<T>) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions26takeOuterSinglePayloadNC_2yyAA0efgH2_2OyxGnlF"(
// : ptr noalias nocapture dereferenceable(64) %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_2OyxGlWOs"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_2OyxGlWOs"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_2OyxGlWOe"(
// : i64 %2,
// : i64 %4,
// : i64 %6,
// : i64 %8,
// : i64 %10,
// : i64 %12,
// : i64 %14,
// : i64 %16,
// : ptr %T)
// CHECK: }
public func takeOuterSinglePayloadNC_2<T>(_ e: consuming OuterSinglePayloadNC_2<T>) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions26takeOuterSinglePayloadNC_3yyAA0efgH2_3OyxGnlF"(
// CHECK-SAME: ptr noalias %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK-NOT: @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"
// CHECK-NOT: @"$s24moveonly_value_functions22OuterSinglePayloadNC_3OMa"
// CHECK: call{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_3OyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions22OuterSinglePayloadNC_3OyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: [[RESPONSE:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[METADATA:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE:%[^,]+]], 0
// CHECK: call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVfD"(
// CHECK-SAME: ptr [[METADATA:%[^,]+]],
// : ptr noalias swiftself %0)
// CHECK: }
public func takeOuterSinglePayloadNC_3<T>(_ e: consuming OuterSinglePayloadNC_3<T>) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions25takeOuterMultiPayloadNC_1yyAA0efgH2_1OyxGnlF"(
// CHECK-SAME: ptr noalias %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK-NOT: @"$s24moveonly_value_functions26InnerDeinitingWithLayoutNCVMa"
// CHECK-NOT: @"$s24moveonly_value_functions21OuterMultiPayloadNC_1OMa"
// CHECK: call{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_1OyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_1OyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: [[RESPONSE1:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions26InnerDeinitingWithLayoutNCVMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[METADATA1:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE1]], 0
// CHECK: call{{.*}} @"$s24moveonly_value_functions26InnerDeinitingWithLayoutNCVfD"(
// CHECK-SAME: ptr [[METADATA1]],
// CHECK-SAME: ptr noalias swiftself %0)
// CHECK: [[RESPONSE2:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions26InnerDeinitingWithLayoutNCVMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[METADATA2:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE2]], 0
// CHECK: call{{.*}} @"$s24moveonly_value_functions26InnerDeinitingWithLayoutNCVfD"(
// CHECK-SAME: ptr [[METADATA2]],
// CHECK-SAME: ptr noalias swiftself %0)
// CHECK: }
public func takeOuterMultiPayloadNC_1<T>(_ e: consuming OuterMultiPayloadNC_1<T>) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions25takeOuterMultiPayloadNC_2yyAA0efgH2_2OyxGnlF"(
// : i64 %0,
// : i8 %1,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_2OyxGlWOe"(
// : i64 %0,
// : i8 %1,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_2OyxGlWOe"(
// : i64 %0,
// : i8 %1,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions29InnerDeinitingWithoutLayoutNCVfD"(
// : i64 %0,
// CHECK-SAME: ptr %T)
// CHECK: call{{.*}} @"$s24moveonly_value_functions29InnerDeinitingWithoutLayoutNCVfD"(
// : i64 %0,
// CHECK-SAME: ptr %T)
// CHECK: }
public func takeOuterMultiPayloadNC_2<T>(_ e: consuming OuterMultiPayloadNC_2<T>) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions25takeOuterMultiPayloadNC_3yyAA0efgH2_3OyxGnlF"(
// : ptr noalias nocapture dereferenceable(64) %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_3OyxGlWOs"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_3OyxGlWOs"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: call{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_3OyxGlWOe"(
// : i64 %2,
// : i64 %4,
// : i64 %6,
// : i64 %8,
// : i64 %10,
// : i64 %12,
// : i64 %14,
// : i64 %16,
// CHECK-SAME: ptr %T)
// CHECK: }
public func takeOuterMultiPayloadNC_3<T>(_ e: consuming OuterMultiPayloadNC_3<T>) {}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions25takeOuterMultiPayloadNC_4yyAA0efgH2_4OyxGnlF"(
// CHECK-SAME: ptr noalias %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK-NOT: @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"
// CHECK-NOT: @"$s24moveonly_value_functions21OuterMultiPayloadNC_4OMa"
// CHECK: call{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_4OyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK: }
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions21OuterMultiPayloadNC_4OyxGlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %T)
// CHECK-SAME: {
// CHECK: [[RESPONSE1:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[METADATA1:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE1]], 0
// CHECK: call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVfD"(
// CHECK-SAME: ptr [[METADATA1]],
// CHECK-SAME: ptr noalias swiftself %0)
// CHECK: [[RESPONSE2:%[^,]+]] = call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVMa"(
// : i64 0,
// CHECK-SAME: ptr %T)
// CHECK: [[METADATA2:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE2]], 0
// CHECK: call{{.*}} @"$s24moveonly_value_functions28InnerDeinitingDestructableNCVfD"(
// CHECK-SAME: ptr [[METADATA2]],
// CHECK-SAME: ptr noalias swiftself %0)
// CHECK: }
public func takeOuterMultiPayloadNC_4<T>(_ e: consuming OuterMultiPayloadNC_4<T>) {}
public struct EmptyDeinitingNC_1<Wrapped: ~Copyable>: ~Copyable {
deinit {}
}
public enum SinglePayloadNC_1<Element: Equatable>: ~Copyable {
case empty
case node(EmptyDeinitingNC_1<Self>, Element)
}
// CHECK-LABEL: define{{.*}} @"$s24moveonly_value_functions18EmptyDeinitingNC_1VyAA013SinglePayloadF2_1OyxGG_xtSQRzlWOh"(
// CHECK-SAME: ptr %0,
// CHECK-SAME: ptr %Element,
// CHECK-SAME: ptr %Element.Equatable)
// CHECK-SAME: {
// CHECK: [[RESPONSE:%[^,]+]] = call swiftcc %swift.metadata_response @"$s24moveonly_value_functions17SinglePayloadNC_1OMa"(
// : i64 0,
// CHECK-SAME: ptr %Element,
// CHECK-SAME: ptr %Element.Equatable)
// CHECK: [[METADATA:%[^,]+]] = extractvalue %swift.metadata_response [[RESPONSE]], 0
// CHECK: call swiftcc void @"$s24moveonly_value_functions18EmptyDeinitingNC_1VAARi_zrlEfD"(
// CHECK-SAME: ptr [[METADATA]])
// CHECK: }
|