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 {
140140// / matching.
141141class SILIsolationInfo {
142142public:
143- // / The lattice is:
143+ // / This forms a lattice of semantics. The lattice progresses from left ->
144+ // / right below:
144145 // /
145146 // / Unknown -> Disconnected -> TransferringParameter -> Task -> Actor.
146147 // /
147- // / Unknown means no information. We error when merging on it.
148148 enum Kind : uint8_t {
149+ // / Unknown means no information. We error when merging on it.
149150 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.
150155 Disconnected,
156+
157+ // / An entity that is in the same region as a task-isolated value. Cannot be
158+ // / sent into another isolation domain.
151159 Task,
160+
161+ // / An entity that is in the same region as an actor-isolated value. Cannot
162+ // / be sent into another isolation domain.
152163 Actor,
153164 };
154165
You can’t perform that action at this time.
0 commit comments