1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -module-name Test | %FileCheck %s --check-prefixes=CHECK,CHECK-NO-SKIP
3
- // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -module-name Test -experimental-skip-non-exportable-decls | %FileCheck %s --check-prefixes=CHECK,CHECK-SKIP
2
+ // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -enable-library-evolution - module-name Test | %FileCheck %s --check-prefixes=CHECK,CHECK-NO-SKIP
3
+ // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -enable-library-evolution - module-name Test -experimental-skip-non-exportable-decls | %FileCheck %s --check-prefixes=CHECK,CHECK-SKIP
4
4
5
5
import Swift
6
6
@@ -15,7 +15,7 @@ import Swift
15
15
// CHECK-NO-SKIP: sil_global private @$s4Test15publicGlobalVar_Wz : $Builtin.Word
16
16
// CHECK-SKIP-NOT: s4Test15publicGlobalVar_Wz
17
17
18
- // CHECK: sil_global @$s4Test15publicGlobalVarSivp : $Int
18
+ // CHECK: sil_global private @$s4Test15publicGlobalVarSivp : $Int
19
19
20
20
// CHECK-NO-SKIP: sil private{{.*}} @$s4Test11privateFunc33_CFB3F9DC47F5EF9E1D08B58758351A08LLyyF : $@convention(thin) () -> () {
21
21
// CHECK-SKIP-NOT: s4Test11privateFunc33_CFB3F9DC47F5EF9E1D08B58758351A08LLyyF
@@ -46,7 +46,7 @@ internal func internalFuncWithNestedFunc() {
46
46
// CHECK-SKIP-NOT: s4Test022internalFuncWithNestedC0yyFyycyXEfU_
47
47
48
48
// CHECK-NO-SKIP: sil private{{.*}} @$s4Test022internalFuncWithNestedC0yyFyycyXEfU_6$deferL_yyF : $@convention(thin) () -> () {
49
- // CHECK-SKIP-NOT: @$s4Test022internalFuncWithNestedC0yyFyycyXEfU_6$deferL_yyF
49
+ // CHECK-SKIP-NOT: sil{{.*}} @$s4Test022internalFuncWithNestedC0yyFyycyXEfU_6$deferL_yyF
50
50
51
51
// CHECK: sil{{.*}} @$s4Test10publicFuncyyF : $@convention(thin) () -> () {
52
52
public func publicFunc( ) { }
@@ -73,8 +73,8 @@ internal var internalGlobalVar = 1
73
73
// CHECK-NO-SKIP: sil private [global_init_once_fn]{{.*}} @$s4Test15publicGlobalVar_WZ : $@convention(c) (Builtin.RawPointer) -> () {
74
74
// CHECK-SKIP-NOT: s4Test15publicGlobalVar_WZ
75
75
76
- // CHECK-NO-SKIP: sil [global_init]{{.*}} @$s4Test15publicGlobalVarSivau : $@convention(thin) () -> Builtin.RawPointer {
77
- // CHECK-SKIP-NOT: s4Test15publicGlobalVarSivau
76
+ // CHECK-NO-SKIP: sil hidden [global_init]{{.*}} @$s4Test15publicGlobalVarSivau : $@convention(thin) () -> Builtin.RawPointer {
77
+ // CHECK-SKIP-NOT: sil{{.*}} s4Test15publicGlobalVarSivau
78
78
public var publicGlobalVar = 1
79
79
80
80
// CHECK: sil [serialized]{{.*}} @$s4Test023inlinableFuncWithNestedC0yyF : $@convention(thin) () -> () {
@@ -94,9 +94,9 @@ public var publicGlobalVar = 1
94
94
95
95
@propertyWrapper
96
96
public struct PublicWrapper < T> {
97
- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test13PublicWrapperV12wrappedValuexvg : $@convention(method) <T> (@in_guaranteed PublicWrapper<T>) -> @out T {
98
- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test13PublicWrapperV12wrappedValuexvs : $@convention(method) <T> (@in T, @inout PublicWrapper<T>) -> () {
99
- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test13PublicWrapperV12wrappedValuexvM : $@yield_once @convention(method) <T> (@inout PublicWrapper<T>) -> @yields @inout T {
97
+ // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValuexvg : $@convention(method) <T> (@in_guaranteed PublicWrapper<T>) -> @out T {
98
+ // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValuexvs : $@convention(method) <T> (@in T, @inout PublicWrapper<T>) -> () {
99
+ // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValuexvM : $@yield_once @convention(method) <T> (@inout PublicWrapper<T>) -> @yields @inout T {
100
100
public var wrappedValue : T
101
101
102
102
// CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValueACyxGx_tcfC : $@convention(method) <T> (@in T, @thin PublicWrapper<T>.Type) -> @out PublicWrapper<T> {
@@ -118,24 +118,24 @@ private class PrivateClass {
118
118
}
119
119
120
120
public class PublicClass {
121
- // CHECK-NO-SKIP: sil [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivpfi : $@convention(thin) () -> Int {
121
+ // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC11internalVarSivpfi : $@convention(thin) () -> Int {
122
122
// CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivpfi
123
- // CHECK-NO-SKIP: sil hidden [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
123
+ // CHECK-NO-SKIP: sil hidden{{.*}} @$s4Test11PublicClassC11internalVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
124
124
// CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivg
125
- // CHECK-NO-SKIP: sil hidden [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
125
+ // CHECK-NO-SKIP: sil hidden{{.*}} @$s4Test11PublicClassC11internalVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
126
126
// CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivs
127
- // CHECK-NO-SKIP: sil hidden [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
127
+ // CHECK-NO-SKIP: sil hidden{{.*}} @$s4Test11PublicClassC11internalVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
128
128
// CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivM
129
129
var internalVar = 1
130
130
131
- // CHECK-NO-SKIP: sil [transparent] {{.*}} @$s4Test11PublicClassC9publicVarSivpfi : $@convention(thin) () -> Int {
131
+ // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC9publicVarSivpfi : $@convention(thin) () -> Int {
132
132
// CHECK-SKIP-NOT: s4Test11PublicClassC9publicVarSivpfi
133
- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test11PublicClassC9publicVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
134
- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test11PublicClassC9publicVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
135
- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test11PublicClassC9publicVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
133
+ // CHECK: sil{{.*}} @$s4Test11PublicClassC9publicVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
134
+ // CHECK: sil{{.*}} @$s4Test11PublicClassC9publicVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
135
+ // CHECK: sil{{.*}} @$s4Test11PublicClassC9publicVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
136
136
public var publicVar = 1
137
137
138
- // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivpfP : $@convention(thin) (Int) -> PublicWrapper<Int> {
138
+ // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivpfP : $@convention(thin) (Int) -> @out PublicWrapper<Int> {
139
139
// CHECK-SKIP-NOT: s4Test11PublicClassC16publicWrappedVarSivpfP
140
140
// CHECK: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
141
141
// CHECK: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
@@ -174,7 +174,7 @@ extension PublicClass {
174
174
// CHECK-NO-SKIP-NEXT: }
175
175
// CHECK-SKIP-NOT: sil_vtable PrivateClass
176
176
177
- // CHECK-LABEL: sil_vtable [serialized] PublicClass {
177
+ // CHECK-LABEL: sil_vtable PublicClass {
178
178
// CHECK-NO-SKIP-NEXT: #PublicClass.internalVar!getter
179
179
// CHECK-SKIP-NOT: #PublicClass.internalVar!getter
180
180
// CHECK-NO-SKIP-NEXT: #PublicClass.internalVar!setter
@@ -194,4 +194,4 @@ extension PublicClass {
194
194
// CHECK-NEXT: #PublicClass.deinit!deallocator
195
195
// CHECK-NEXT: }
196
196
197
- // CHECK: sil_property #PublicClass.publicVar ()
197
+ // CHECK: sil_property #PublicClass.publicVar
0 commit comments