File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,26 @@ class ActorInstance {
140
140
// / matching.
141
141
class SILIsolationInfo {
142
142
public:
143
- // / The lattice is:
143
+ // / This forms a lattice of semantics. The lattice progresses from left ->
144
+ // / right below:
144
145
// /
145
146
// / Unknown -> Disconnected -> TransferringParameter -> Task -> Actor.
146
147
// /
147
- // / Unknown means no information. We error when merging on it.
148
148
enum Kind : uint8_t {
149
+ // / Unknown means no information. We error when merging on it.
149
150
Unknown,
151
+
152
+ // / An entity with disconnected isolation can be freely transferred into
153
+ // / another isolation domain. These are associated with "use after transfer"
154
+ // / diagnostics.
150
155
Disconnected,
156
+
157
+ // / An entity that is in the same region as a task-isolated value. Cannot be
158
+ // / sent into another isolation domain.
151
159
Task,
160
+
161
+ // / An entity that is in the same region as an actor-isolated value. Cannot
162
+ // / be sent into another isolation domain.
152
163
Actor,
153
164
};
154
165
You can’t perform that action at this time.
0 commit comments