You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/SIL/Serialization/boxes.sil
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ struct Q: P {}
16
16
17
17
// TODO: Transform boxes by transforming their arguments, not as single-field,
18
18
// so that they work as parameters in generic SIL functions.
19
-
// CHECK-LABEL: sil hidden @box_type_parsing : $@convention(thin) (
20
-
sil hidden @box_type_parsing : $@convention(thin) (
19
+
// CHECK-LABEL: sil hidden [serialized] @box_type_parsing : $@convention(thin) (
20
+
sil hidden [serialized] @box_type_parsing : $@convention(thin) (
21
21
// CHECK: <τ_0_0> { var τ_0_0 } <F>,
22
22
<B>{ var B }<F>,
23
23
// CHECK: <τ_0_0 where τ_0_0 : P> { let τ_0_0 } <G>,
@@ -38,8 +38,8 @@ entry(%0 : $<E>{ var E }<F>, %1 : $<F: P>{ let F }<G>, %2 : $<G: P>{ var G }<Q>,
38
38
unreachable
39
39
}
40
40
41
-
// CHECK-LABEL: sil hidden @box_type_parsing_in_generic_function : $@convention(thin) <F, G where G : P> (
42
-
sil hidden @box_type_parsing_in_generic_function : $@convention(thin) <F, G: P> (
41
+
// CHECK-LABEL: sil hidden [serialized] @box_type_parsing_in_generic_function : $@convention(thin) <F, G where G : P> (
42
+
sil hidden [serialized] @box_type_parsing_in_generic_function : $@convention(thin) <F, G: P> (
43
43
// CHECK: <τ_0_0> { var τ_0_0 } <F>,
44
44
<B>{ var B }<F>,
45
45
// CHECK: <τ_0_0 where τ_0_0 : P> { let τ_0_0 } <G>,
@@ -60,8 +60,8 @@ entry(%0 : $<E>{ var E }<F>, %1 : $<F: P>{ let F }<G>, %2 : $<G: P>{ var G }<Q>,
60
60
unreachable
61
61
}
62
62
63
-
// CHECK-LABEL: sil hidden @same_generic_param_name_in_multiple_box_signatures : $@convention(thin) (
64
-
sil hidden @same_generic_param_name_in_multiple_box_signatures : $@convention(thin) (
63
+
// CHECK-LABEL: sil hidden [serialized] @same_generic_param_name_in_multiple_box_signatures : $@convention(thin) (
64
+
sil hidden [serialized] @same_generic_param_name_in_multiple_box_signatures : $@convention(thin) (
65
65
// CHECK: <τ_0_0> { var τ_0_0 } <Int>,
66
66
<A> { var A } <Int>,
67
67
// CHECK: <τ_0_0> { var τ_0_0 } <String>
@@ -72,8 +72,8 @@ entry(%0 : $<A> { var A } <Int>, %1 : $<A> { var A } <String>):
72
72
unreachable
73
73
}
74
74
75
-
// CHECK-LABEL: sil hidden @same_generic_param_name_in_outer_scope : $@convention(thin) <A> (
76
-
sil hidden @same_generic_param_name_in_outer_scope : $@convention(thin) <A> (
75
+
// CHECK-LABEL: sil hidden [serialized] @same_generic_param_name_in_outer_scope : $@convention(thin) <A> (
76
+
sil hidden [serialized] @same_generic_param_name_in_outer_scope : $@convention(thin) <A> (
77
77
// CHECK: <τ_0_0> { var τ_0_0 } <A>
78
78
<A> { var A } <A>
79
79
// CHECK: ) -> ()
@@ -82,20 +82,20 @@ entry(%0 : $<B> { var B } <A>):
82
82
unreachable
83
83
}
84
84
85
-
// CHECK-LABEL: sil hidden @box_ownership : $@convention(thin) (@owned { var Int }, @guaranteed <τ_0_0> { let τ_0_0 } <Int>) -> ()
86
-
sil hidden @box_ownership : $@convention(thin) (@owned { var Int }, @guaranteed <T> { let T } <Int>) -> () {
85
+
// CHECK-LABEL: sil hidden [serialized] @box_ownership : $@convention(thin) (@owned { var Int }, @guaranteed <τ_0_0> { let τ_0_0 } <Int>) -> ()
86
+
sil hidden [serialized ]@box_ownership : $@convention(thin) (@owned { var Int }, @guaranteed <T> { let T } <Int>) -> () {
87
87
entry(%0 : ${ var Int }, %1 : $<T> { let T } <Int>):
88
88
unreachable
89
89
}
90
90
91
-
// CHECK-LABEL: sil hidden @address_of_box
92
-
sil hidden @address_of_box : $@convention(thin) (@in { var Int }, @in <T> { let T } <Int>) -> () {
91
+
// CHECK-LABEL: sil hidden [serialized] @address_of_box
92
+
sil hidden [serialized] @address_of_box : $@convention(thin) (@in { var Int }, @in <T> { let T } <Int>) -> () {
93
93
// CHECK: %0 : $*{ var Int }, %1 : $*<τ_0_0> { let τ_0_0 } <Int>
94
94
entry(%0 : $*{ var Int }, %1 : $*<T> { let T } <Int>):
95
95
unreachable
96
96
}
97
97
98
-
sil @serialize_all : $@convention(thin) () -> () {
98
+
sil [serialized] @serialize_all : $@convention(thin) () -> () {
99
99
entry:
100
100
%0 = function_ref @box_type_parsing : $@convention(thin) (<B>{ var B }<F>, <C: P>{ let C }<G>, <D: P>{ var D }<Q>, { let Int }, { var Int, let String }, {}, <X, Y, Z>{ var X, let Z }<Int, String, Optional<Double>>) -> ()
101
101
%1 = function_ref @box_type_parsing_in_generic_function : $@convention(thin) <F, G: P> (<B>{ var B }<F>, <C: P>{ let C }<G>, <D: P>{ var D }<Q>, { let Int }, { var Int, let String }, {}, <X, Y, Z>{ var X, let Z }<Int, String, Optional<Double>>) -> ()
0 commit comments