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 @@ -120,15 +120,26 @@ class ActorInstance {
120
120
// / matching.
121
121
class SILIsolationInfo {
122
122
public:
123
- // / The lattice is:
123
+ // / This forms a lattice of semantics. The lattice progresses from left ->
124
+ // / right below:
124
125
// /
125
126
// / Unknown -> Disconnected -> TransferringParameter -> Task -> Actor.
126
127
// /
127
- // / Unknown means no information. We error when merging on it.
128
128
enum Kind : uint8_t {
129
+ // / Unknown means no information. We error when merging on it.
129
130
Unknown,
131
+
132
+ // / An entity with disconnected isolation can be freely transferred into
133
+ // / another isolation domain. These are associated with "use after transfer"
134
+ // / diagnostics.
130
135
Disconnected,
136
+
137
+ // / An entity that is in the same region as a task-isolated value. Cannot be
138
+ // / sent into another isolation domain.
131
139
Task,
140
+
141
+ // / An entity that is in the same region as an actor-isolated value. Cannot
142
+ // / be sent into another isolation domain.
132
143
Actor,
133
144
};
134
145
You can’t perform that action at this time.
0 commit comments