|
4 | 4 | // UNSUPPORTED: CPU=armv7 && OS=ios
|
5 | 5 | // UNSUPPORTED: CPU=armv7s && OS=ios
|
6 | 6 |
|
7 |
| -// CHECK: @"$s4main5ValueVySSGWV" = linkonce_odr hidden constant %swift.vwtable { i8* bitcast (%swift.opaque* ([{{[0-9]+}} x i8]*, [{{[0-9]+}} x i8]*, %swift.type*)* @"$s4main5ValueVySSGwCP" to i8*), i8* bitcast (void (%swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwxx" to i8*), i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwcp" to i8*), i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwca" to i8*), i8* bitcast (i8* (i8*, i8*, %swift.type*)* @__swift_memcpy{{[0-9]+}}_[[ALIGNMENT]] to i8*), i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwta" to i8*), i8* bitcast (i32 (%swift.opaque*, i32, %swift.type*)* @"$s4main5ValueVySSGwet" to i8*), i8* bitcast (void (%swift.opaque*, i32, i32, %swift.type*)* @"$s4main5ValueVySSGwst" to i8*), [[INT]] {{[0-9]+}}, [[INT]] {{[0-9]+}}, i32 {{[0-9]+}}, i32 {{[0-9]+}} }, align [[ALIGNMENT]] |
| 7 | +// CHECK: @"$s4main5ValueVySSGWV" = linkonce_odr hidden constant %swift.vwtable { |
| 8 | +// CHECK-SAME: i8* bitcast (%swift.opaque* ([{{[0-9]+}} x i8]*, [{{[0-9]+}} x i8]*, %swift.type*)* @"$s4main5ValueVySSGwCP" to i8*), |
| 9 | +// CHECK-SAME: i8* bitcast (void (%swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwxx" to i8*), |
| 10 | +// CHECK-SAME: i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwcp" to i8*), |
| 11 | +// CHECK-SAME: i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwca" to i8*), |
| 12 | +// CHECK-SAME: i8* bitcast (i8* (i8*, i8*, %swift.type*)* @__swift_memcpy{{[0-9]+}}_[[ALIGNMENT]] to i8*), |
| 13 | +// CHECK-SAME: i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s4main5ValueVySSGwta" to i8*), |
| 14 | +// CHECK-SAME: i8* bitcast (i32 (%swift.opaque*, i32, %swift.type*)* @"$s4main5ValueVySSGwet" to i8*), |
| 15 | +// CHECK-SAME: i8* bitcast (void (%swift.opaque*, i32, i32, %swift.type*)* @"$s4main5ValueVySSGwst" to i8*), |
| 16 | +// CHECK-SAME: [[INT]] {{[0-9]+}}, |
| 17 | +// CHECK-SAME: [[INT]] {{[0-9]+}}, |
| 18 | +// CHECK-SAME: i32 {{[0-9]+}}, |
| 19 | +// CHECK-SAME: i32 {{[0-9]+}} |
| 20 | +// CHECK-SAME: }, |
| 21 | +// NOTE: ignore COMDAT on PE/COFF targets |
| 22 | +// CHECK-SAME: align [[ALIGNMENT]] |
| 23 | + |
8 | 24 | // CHECK: @"$s4main5ValueVySSGMf" = internal constant <{ i8**, [[INT]], %swift.type_descriptor*, %swift.type*, i32{{(, \[4 x i8\])?}}, i64 }> <{ i8** getelementptr inbounds (%swift.vwtable, %swift.vwtable* @"$s4main5ValueVySSGWV", i32 0, i32 0), [[INT]] 512, %swift.type_descriptor* bitcast (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8 }>* @"$s4main5ValueVMn" to %swift.type_descriptor*), %swift.type* @"$sSSN", i32 0{{(, \[4 x i8\] zeroinitializer)?}}, i64 3 }>, align [[ALIGNMENT]]
|
9 |
| -// CHECK: @"$sBi64_WV" = external global i8*, align [[ALIGNMENT]] |
10 |
| -// CHECK: @"$s4main5ValueVySdGMf" = internal constant <{ i8**, [[INT]], %swift.type_descriptor*, %swift.type*, i32{{(, \[4 x i8\])?}}, i64 }> <{ i8** @"$sBi64_WV", [[INT]] 512, %swift.type_descriptor* bitcast (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8 }>* @"$s4main5ValueVMn" to %swift.type_descriptor*), %swift.type* @"$sSdN", i32 0{{(, \[4 x i8\] zeroinitializer)?}}, i64 3 }>, align [[ALIGNMENT]] |
11 |
| -// CHECK: @"$s4main5ValueVySiGMf" = internal constant <{ i8**, [[INT]], %swift.type_descriptor*, %swift.type*, i32{{(, \[4 x i8\])?}}, i64 }> <{ i8** @"$sB[[INT]]_WV", [[INT]] 512, %swift.type_descriptor* bitcast (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8 }>* @"$s4main5ValueVMn" to %swift.type_descriptor*), %swift.type* @"$sSiN", i32 0{{(, \[4 x i8\] zeroinitializer)?}}, i64 3 }>, align [[ALIGNMENT]] |
| 25 | + |
| 26 | +// CHECK: @"$s4main5ValueVySdGMf" = internal constant <{ |
| 27 | +// CHECK-SAME: i8**, |
| 28 | +// CHECK-SAME: [[INT]], |
| 29 | +// CHECK-SAME: %swift.type_descriptor*, |
| 30 | +// CHECK-SAME: %swift.type*, |
| 31 | +// CHECK-SAME: i32{{(, \[4 x i8\])?}}, |
| 32 | +// CHECK-SAME: i64 |
| 33 | +// CHECK-SAME: }> <{ |
| 34 | +// i8** @"$sBi64_WV", |
| 35 | +// i8** getelementptr inbounds (%swift.vwtable, %swift.vwtable* @"$s4main5ValueVySdGWV", i32 0, i32 0), |
| 36 | +// CHECK-SAME: [[INT]] 512, |
| 37 | +// CHECK-SAME: %swift.type_descriptor* bitcast (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8 }>* @"$s4main5ValueVMn" to %swift.type_descriptor*), |
| 38 | +// CHECK-SAME: %swift.type* @"$sSdN", |
| 39 | +// CHECK-SAME: i32 0{{(, \[4 x i8\] zeroinitializer)?}}, |
| 40 | +// CHECK-SAME: i64 3 |
| 41 | +// CHECK-SAME: }>, align [[ALIGNMENT]] |
| 42 | + |
| 43 | +// CHECK: @"$s4main5ValueVySiGMf" = internal constant <{ |
| 44 | +// CHECK-SAME: i8**, |
| 45 | +// CHECK-SAME: [[INT]], |
| 46 | +// CHECK-SAME: %swift.type_descriptor*, |
| 47 | +// CHECK-SAME: %swift.type*, |
| 48 | +// CHECK-SAME: i32{{(, \[4 x i8\])?}}, |
| 49 | +// CHECK-SAME: i64 |
| 50 | +// CHECK-SAME: }> <{ |
| 51 | +// i8** @"$sB[[INT]]_WV", |
| 52 | +// i8** getelementptr inbounds (%swift.vwtable, %swift.vwtable* @"$s4main5ValueVySiGWV", i32 0, i32 0), |
| 53 | +// CHECK-SAME: [[INT]] 512, |
| 54 | +// CHECK-SAME: %swift.type_descriptor* bitcast (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8 }>* @"$s4main5ValueVMn" to %swift.type_descriptor*), |
| 55 | +// CHECK-SAME: %swift.type* @"$sSiN", |
| 56 | +// CHECK-SAME: i32 0{{(, \[4 x i8\] zeroinitializer)?}}, |
| 57 | +// CHECK-SAME: i64 3 |
| 58 | +// CHECK-SAME: }>, align [[ALIGNMENT]] |
| 59 | + |
12 | 60 | struct Value<First> {
|
13 | 61 | let first: First
|
14 | 62 | }
|
|
0 commit comments