@@ -30,7 +30,7 @@ func genericOverload<T>(_: T?) {}
30
30
func genericOptional< T> ( _: T ? ) { }
31
31
func genericNoOptional< T> ( _: T ) { }
32
32
33
- // CHECK-LABEL: sil hidden @$s7ranking22propertyVersusFunctionyyAA1P_p_xtAaCRzlF
33
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking22propertyVersusFunctionyyAA1P_p_xtAaCRzlF
34
34
func propertyVersusFunction< T : P > ( _ p: P , _ t: T ) {
35
35
// CHECK: witness_method $@opened("{{.*}}") P, #P.p!getter.1
36
36
let _ = p. p
@@ -149,7 +149,7 @@ func f1(_ a: A) -> A { return a }
149
149
func f1( _ b: B ) -> B { return b }
150
150
151
151
func testDerived( b: B ) {
152
- // CHECK-LABEL: sil hidden @$s7ranking11testDerived1byAA1BC_tF
152
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking11testDerived1byAA1BC_tF
153
153
// CHECK: function_ref @$s7ranking2f1yAA1BCADF
154
154
// CHECK: function_ref @$s7ranking2f0yyxlF
155
155
f0 ( f1 ( b) )
@@ -191,47 +191,47 @@ extension GenericClass {
191
191
192
192
// Make sure we favour the class implementation over the protocol requirement.
193
193
194
- // CHECK-LABEL: sil hidden @$s7ranking32testGenericPropertyProtocolClassyyxAA1YCRbzAA1XRzlF
194
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking32testGenericPropertyProtocolClassyyxAA1YCRbzAA1XRzlF
195
195
func testGenericPropertyProtocolClass< T : X & Y > ( _ t: T ) {
196
196
_ = t. foo // CHECK: class_method {{%.*}} : $Y, #Y.foo!getter.1
197
197
_ = t. bar // CHECK: function_ref @$s7ranking1YC3barSivg
198
198
_ = t. baz ( ) // CHECK: class_method {{%.*}} : $Y, #Y.baz
199
199
_ = t [ " " ] // CHECK: class_method {{%.*}} : $Y, #Y.subscript!getter.1
200
200
}
201
201
202
- // CHECK-LABEL: sil hidden @$s7ranking36testExistentialPropertyProtocolClassyyAA1X_AA1YCXcF
202
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking36testExistentialPropertyProtocolClassyyAA1X_AA1YCXcF
203
203
func testExistentialPropertyProtocolClass( _ t: X & Y ) {
204
204
_ = t. foo // CHECK: class_method {{%.*}} : $Y, #Y.foo!getter.1
205
205
_ = t. bar // CHECK: function_ref @$s7ranking1YC3barSivg
206
206
_ = t. baz ( ) // CHECK: class_method {{%.*}} : $Y, #Y.baz
207
207
_ = t [ " " ] // CHECK: class_method {{%.*}} : $Y, #Y.subscript!getter.1
208
208
}
209
209
210
- // CHECK-LABEL: sil hidden @$s7ranking46testGenericPropertySubclassConstrainedProtocolyyxAA1ZRzlF
210
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking46testGenericPropertySubclassConstrainedProtocolyyxAA1ZRzlF
211
211
func testGenericPropertySubclassConstrainedProtocol< T : Z > ( _ t: T ) {
212
212
_ = t. foo // CHECK: class_method {{%.*}} : $Y, #Y.foo!getter.1
213
213
_ = t. bar // CHECK: function_ref @$s7ranking1YC3barSivg
214
214
_ = t. baz ( ) // CHECK: class_method {{%.*}} : $Y, #Y.baz
215
215
_ = t [ " " ] // CHECK: class_method {{%.*}} : $Y, #Y.subscript!getter.1
216
216
}
217
217
218
- // CHECK-LABEL: sil hidden @$s7ranking50testExistentialPropertySubclassConstrainedProtocolyyAA1Z_pF
218
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking50testExistentialPropertySubclassConstrainedProtocolyyAA1Z_pF
219
219
func testExistentialPropertySubclassConstrainedProtocol( _ t: Z ) {
220
220
_ = t. foo // CHECK: class_method {{%.*}} : $Y, #Y.foo!getter.1
221
221
_ = t. bar // CHECK: function_ref @$s7ranking1YC3barSivg
222
222
_ = t. baz ( ) // CHECK: class_method {{%.*}} : $Y, #Y.baz
223
223
_ = t [ " " ] // CHECK: class_method {{%.*}} : $Y, #Y.subscript!getter.1
224
224
}
225
225
226
- // CHECK-LABEL: sil hidden @$s7ranking43testExistentialPropertyProtocolGenericClassyyAA1X_AA0fG0CySiGXcF
226
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking43testExistentialPropertyProtocolGenericClassyyAA1X_AA0fG0CySiGXcF
227
227
func testExistentialPropertyProtocolGenericClass( _ t: GenericClass < Int > & X ) {
228
228
_ = t. foo // CHECK: class_method {{%.*}} : $GenericClass<Int>, #GenericClass.foo!getter.1
229
229
_ = t. bar // CHECK: function_ref @$s7ranking12GenericClassC3barxvg
230
230
_ = t. baz ( ) // CHECK: class_method {{%.*}} : $GenericClass<Int>, #GenericClass.baz
231
231
_ = t [ " " ] // CHECK: function_ref @$s7ranking12GenericClassCySiSScig
232
232
}
233
233
234
- // CHECK-LABEL: sil hidden @$s7ranking43testExistentialPropertyProtocolGenericClassyyAA1X_AA0fG0CySSGXcF
234
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking43testExistentialPropertyProtocolGenericClassyyAA1X_AA0fG0CySSGXcF
235
235
func testExistentialPropertyProtocolGenericClass( _ t: GenericClass < String > & X ) {
236
236
_ = t. foo // CHECK: class_method {{%.*}} : $GenericClass<String>, #GenericClass.foo!getter.1
237
237
_ = t. bar // CHECK: function_ref @$s7ranking12GenericClassC3barxvg
@@ -240,7 +240,7 @@ func testExistentialPropertyProtocolGenericClass(_ t: GenericClass<String> & X)
240
240
}
241
241
242
242
extension X where Self : Y {
243
- // CHECK-LABEL: sil hidden @$s7ranking1XPA2A1YCRbzrlE32testGenericPropertyProtocolClassyyxF
243
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking1XPA2A1YCRbzrlE32testGenericPropertyProtocolClassyyxF
244
244
func testGenericPropertyProtocolClass( _ x: Self ) {
245
245
_ = self . foo // CHECK: class_method {{%.*}} : $Y, #Y.foo!getter.1
246
246
_ = self . bar // CHECK: function_ref @$s7ranking1YC3barSivg
@@ -250,7 +250,7 @@ extension X where Self : Y {
250
250
}
251
251
252
252
extension X where Self : GenericClass < Int > {
253
- // CHECK-LABEL: sil hidden @$s7ranking1XPA2A12GenericClassCySiGRbzrlE04testb16PropertyProtocolbC0yyxF
253
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking1XPA2A12GenericClassCySiGRbzrlE04testb16PropertyProtocolbC0yyxF
254
254
func testGenericPropertyProtocolGenericClass( _ x: Self ) {
255
255
_ = self . foo // CHECK: class_method {{%.*}} : $GenericClass<Int>, #GenericClass.foo!getter.1
256
256
_ = self . bar // CHECK: function_ref @$s7ranking12GenericClassC3barxvg
@@ -260,7 +260,7 @@ extension X where Self : GenericClass<Int> {
260
260
}
261
261
262
262
extension X where Self : GenericClass < String > {
263
- // CHECK-LABEL: sil hidden @$s7ranking1XPA2A12GenericClassCySSGRbzrlE04testb16PropertyProtocolbC0yyxF
263
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking1XPA2A12GenericClassCySSGRbzrlE04testb16PropertyProtocolbC0yyxF
264
264
func testGenericPropertyProtocolGenericClass( _ x: Self ) {
265
265
_ = self . foo // CHECK: class_method {{%.*}} : $GenericClass<String>, #GenericClass.foo!getter.1
266
266
_ = self . bar // CHECK: function_ref @$s7ranking12GenericClassC3barxvg
@@ -274,15 +274,15 @@ extension X where Self : GenericClass<String> {
274
274
//--------------------------------------------------------------------
275
275
276
276
struct UnsafePointerStruct {
277
- // CHECK-LABEL: sil hidden @$s7ranking19UnsafePointerStructVyACSPyxGSgclufC : $@convention(method) <U> (Optional<UnsafePointer<U>>, @thin UnsafePointerStruct.Type) -> UnsafePointerStruct
277
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking19UnsafePointerStructVyACSPyxGSgclufC : $@convention(method) <U> (Optional<UnsafePointer<U>>, @thin UnsafePointerStruct.Type) -> UnsafePointerStruct
278
278
init < U> ( _ from: UnsafePointer < U > ) { }
279
279
init < U> ( _ from: UnsafePointer < U > ? ) {
280
280
// CHECK: function_ref @$s7ranking19UnsafePointerStructVyACSPyxGclufC : $@convention(method) <τ_0_0> (UnsafePointer<τ_0_0>, @thin UnsafePointerStruct.Type) -> UnsafePointerStruct
281
281
self . init ( from!)
282
282
}
283
283
}
284
284
285
- // CHECK-LABEL: sil hidden @$s7ranking22useUnsafePointerStructyySPyxGlF : $@convention(thin) <U> (UnsafePointer<U>) -> ()
285
+ // CHECK-LABEL: sil hidden [ossa] @$s7ranking22useUnsafePointerStructyySPyxGlF : $@convention(thin) <U> (UnsafePointer<U>) -> ()
286
286
func useUnsafePointerStruct< U> ( _ ptr: UnsafePointer < U > ) {
287
287
// CHECK: function_ref @$s7ranking19UnsafePointerStructVyACSPyxGclufC : $@convention(method) <τ_0_0> (UnsafePointer<τ_0_0>, @thin UnsafePointerStruct.Type) -> UnsafePointerStruct
288
288
let _: UnsafePointerStruct = UnsafePointerStruct ( ptr)
0 commit comments