@@ -7,7 +7,7 @@ import Builtin
7
7
8
8
struct BufferView : ~ Escapable {
9
9
let ptr : UnsafeRawBufferPointer
10
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACYlsSU_SWcfC : $@convention(method) (UnsafeRawBufferPointer, @thin BufferView.Type) -> _scope(0) @owned BufferView {
10
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACSWcfC : $@convention(method) (UnsafeRawBufferPointer, @thin BufferView.Type) -> _scope(0) @owned BufferView {
11
11
init ( _ ptr: UnsafeRawBufferPointer ) -> dependsOn( ptr) Self {
12
12
self . ptr = ptr
13
13
}
@@ -23,17 +23,17 @@ struct BufferView : ~Escapable {
23
23
init ( independent ptr: UnsafeRawBufferPointer ) {
24
24
self . ptr = ptr
25
25
}
26
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACYlsUSU_SW_SaySiGhtcfC : $@convention(method) (UnsafeRawBufferPointer, @guaranteed Array<Int>, @thin BufferView.Type) -> _scope(1) @owned BufferView {
26
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACSW_SaySiGhtcfC : $@convention(method) (UnsafeRawBufferPointer, @guaranteed Array<Int>, @thin BufferView.Type) -> _scope(1) @owned BufferView {
27
27
init ( _ ptr: UnsafeRawBufferPointer , _ a: borrowing Array < Int > ) -> dependsOn( a) Self {
28
28
self . ptr = ptr
29
29
return self
30
30
}
31
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACYliUSU_SW_AA7WrapperVtcfC : $@convention(method) (UnsafeRawBufferPointer, @owned Wrapper, @thin BufferView.Type) -> _inherit(1) @owned BufferView {
31
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACSW_AA7WrapperVtcfC : $@convention(method) (UnsafeRawBufferPointer, @owned Wrapper, @thin BufferView.Type) -> _inherit(1) @owned BufferView {
32
32
init ( _ ptr: UnsafeRawBufferPointer , _ a: consuming Wrapper ) -> dependsOn( a) Self {
33
33
self . ptr = ptr
34
34
return self
35
35
}
36
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACYliUSUU_YlsUUSU_SW_AA7WrapperVSaySiGhtcfC : $@convention(method) (UnsafeRawBufferPointer, @owned Wrapper, @guaranteed Array<Int>, @thin BufferView.Type) -> _inherit(1) _scope(2) @owned BufferView {
36
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers10BufferViewVyACSW_AA7WrapperVSaySiGhtcfC : $@convention(method) (UnsafeRawBufferPointer, @owned Wrapper, @guaranteed Array<Int>, @thin BufferView.Type) -> _inherit(1) _scope(2) @owned BufferView {
37
37
init ( _ ptr: UnsafeRawBufferPointer , _ a: consuming Wrapper , _ b: borrowing Array < Int > ) -> dependsOn( a) dependsOn( b) Self {
38
38
self . ptr = ptr
39
39
return self
@@ -58,25 +58,25 @@ func testBasic() {
58
58
}
59
59
}
60
60
61
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers6deriveyAA10BufferViewVYlsS_ADF : $@convention(thin) (@guaranteed BufferView) -> _scope(0) @owned BufferView {
61
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers6deriveyAA10BufferViewVADF : $@convention(thin) (@guaranteed BufferView) -> _scope(0) @owned BufferView {
62
62
func derive( _ x: borrowing BufferView ) -> dependsOn ( scoped x) BufferView {
63
63
return BufferView ( independent: x. ptr)
64
64
}
65
65
66
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers16consumeAndCreateyAA10BufferViewVYliS_ADnF : $@convention(thin) (@owned BufferView) -> _inherit(0) @owned BufferView {
66
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers16consumeAndCreateyAA10BufferViewVADnF : $@convention(thin) (@owned BufferView) -> _inherit(0) @owned BufferView {
67
67
func consumeAndCreate( _ x: consuming BufferView ) -> dependsOn( x ) BufferView {
68
68
return BufferView ( independent: x. ptr)
69
69
}
70
70
71
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers17deriveThisOrThat1yAA10BufferViewVYlsSS_AD_ADtF : $@convention(thin) (@guaranteed BufferView, @guaranteed BufferView) -> _scope(0, 1) @owned BufferView {
71
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers17deriveThisOrThat1yAA10BufferViewVAD_ADtF : $@convention(thin) (@guaranteed BufferView, @guaranteed BufferView) -> _scope(0, 1) @owned BufferView {
72
72
func deriveThisOrThat1( _ this: borrowing BufferView , _ that: borrowing BufferView ) -> dependsOn ( scoped this, that) BufferView {
73
73
if ( Int . random ( in: 1 ..< 100 ) == 0 ) {
74
74
return BufferView ( independent: this. ptr)
75
75
}
76
76
return BufferView ( independent: that. ptr)
77
77
}
78
78
79
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers17deriveThisOrThat2yAA10BufferViewVYliUS_YlsSU_AD_ADntF : $@convention(thin) (@guaranteed BufferView, @owned BufferView) -> _inherit(1) _scope(0) @owned BufferView {
79
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers17deriveThisOrThat2yAA10BufferViewVAD_ADntF : $@convention(thin) (@guaranteed BufferView, @owned BufferView) -> _inherit(1) _scope(0) @owned BufferView {
80
80
func deriveThisOrThat2( _ this: borrowing BufferView , _ that: consuming BufferView ) -> dependsOn( scoped this) dependsOn( that ) BufferView {
81
81
if ( Int . random ( in: 1 ..< 100 ) == 0 ) {
82
82
return BufferView ( independent: this. ptr)
@@ -91,12 +91,12 @@ struct Wrapper : ~Escapable {
91
91
init ( _ view: consuming BufferView ) {
92
92
self . view = view
93
93
}
94
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers7WrapperV8getView1AA10BufferViewVYlsS_yF : $@convention(method) (@guaranteed Wrapper) -> _scope(0) @owned BufferView {
94
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers7WrapperV8getView1AA10BufferViewVyF : $@convention(method) (@guaranteed Wrapper) -> _scope(0) @owned BufferView {
95
95
borrowing func getView1( ) -> dependsOn( scoped self) BufferView {
96
96
return view
97
97
}
98
98
99
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers7WrapperV8getView2AA10BufferViewVYliS_yF : $@convention(method) (@owned Wrapper) -> _inherit(0) @owned BufferView {
99
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers7WrapperV8getView2AA10BufferViewVyF : $@convention(method) (@owned Wrapper) -> _inherit(0) @owned BufferView {
100
100
consuming func getView2( ) -> dependsOn( self ) BufferView {
101
101
return view
102
102
}
@@ -109,12 +109,12 @@ struct Container : ~Escapable {
109
109
}
110
110
}
111
111
112
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers16getConsumingViewyAA06BufferG0VYliS_AA9ContainerVnF : $@convention(thin) (@owned Container) -> _inherit(0) @owned BufferView {
112
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers16getConsumingViewyAA06BufferG0VAA9ContainerVnF : $@convention(thin) (@owned Container) -> _inherit(0) @owned BufferView {
113
113
func getConsumingView( _ x: consuming Container ) -> dependsOn( x ) BufferView {
114
114
return BufferView ( independent: x. ptr)
115
115
}
116
116
117
- // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers16getBorrowingViewyAA06BufferG0VYlsS_AA9ContainerVF : $@convention(thin) (@guaranteed Container) -> _scope(0) @owned BufferView {
117
+ // CHECK-LABEL: sil hidden @$s39explicit_lifetime_dependence_specifiers16getBorrowingViewyAA06BufferG0VAA9ContainerVF : $@convention(thin) (@guaranteed Container) -> _scope(0) @owned BufferView {
118
118
func getBorrowingView( _ x: borrowing Container ) -> dependsOn ( scoped x) BufferView {
119
119
return BufferView ( independent: x. ptr)
120
120
}
0 commit comments