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 30
30
31
31
namespace swift {
32
32
33
+ // / Represents a generalized actor instance reference.
34
+ // /
35
+ // / Used to generalize over cases where we actually have an actor instance
36
+ // / associated with a SILValue and other cases where we know that the actor
37
+ // / instance is but we don't have a value.
33
38
class ActorInstance {
34
39
public:
35
40
enum class Kind : uint8_t {
41
+ // / An actor instance where we have an actual SILValue for the actor
42
+ // / instance.
36
43
Value,
44
+
45
+ // / An actor instance in an actor accessor init where we do not have direct
46
+ // / access to the self value and instead have access indirectly to the
47
+ // / storage associated with the accessor.
37
48
ActorAccessorInit = 0x1 ,
38
49
};
39
50
51
+ // / Set to (SILValue(), ActorAccessorInit) if we have an ActorAccessorInit. Is
52
+ // / null if we have (SILValue(), Kind::Value).
40
53
llvm::PointerIntPair<SILValue, 1 > value;
41
54
42
55
ActorInstance (SILValue value, Kind kind)
@@ -116,8 +129,6 @@ class SILIsolationInfo {
116
129
117
130
// / If set this is the SILValue that represents the actor instance that we
118
131
// / derived isolatedValue from.
119
- // /
120
- // / If set to (SILValue(), 1), then we are in an
121
132
ActorInstance actorInstance;
122
133
123
134
SILIsolationInfo (SILValue isolatedValue, SILValue actorInstance,
You can’t perform that action at this time.
0 commit comments