@@ -113,7 +113,8 @@ class AliasAnalysis : public SILAnalysis {
113
113
MemoryBehavior getMemoryBehavior (SILInstruction *Inst, SILValue V,
114
114
RetainObserveKind);
115
115
116
- // / Returns true if Inst may read from memory in a manner that affects V.
116
+ // / Returns true if \p Inst may read from memory in a manner that
117
+ // / affects V.
117
118
bool mayReadFromMemory (SILInstruction *Inst, SILValue V) {
118
119
MemoryBehavior B = getMemoryBehavior (Inst, V,
119
120
RetainObserveKind::IgnoreRetains);
@@ -122,7 +123,8 @@ class AliasAnalysis : public SILAnalysis {
122
123
B == MemoryBehavior::MayHaveSideEffects;
123
124
}
124
125
125
- // / Returns true if Inst may write to memory in a manner that affects V.
126
+ // / Returns true if \p Inst may write to memory in a manner that
127
+ // / affects V.
126
128
bool mayWriteToMemory (SILInstruction *Inst, SILValue V) {
127
129
MemoryBehavior B = getMemoryBehavior (Inst, V,
128
130
RetainObserveKind::IgnoreRetains);
@@ -131,8 +133,8 @@ class AliasAnalysis : public SILAnalysis {
131
133
B == MemoryBehavior::MayHaveSideEffects;
132
134
}
133
135
134
- // / Returns true if Inst may read or write to memory in a manner that affects
135
- // / V.
136
+ // / Returns true if \p Inst may read or write to memory in a manner that
137
+ // / affects V.
136
138
bool mayReadOrWriteMemory (SILInstruction *Inst, SILValue V) {
137
139
auto B = getMemoryBehavior (Inst, V, RetainObserveKind::IgnoreRetains);
138
140
return B != MemoryBehavior::None;
@@ -169,7 +171,8 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
169
171
// / Otherwise, return an empty type.
170
172
SILType computeTBAAType (SILValue V);
171
173
172
- // / Check if V points to a let-variable.
174
+ // / Check if \p V points to a let-member.
175
+ // / Nobody can write into let members.
173
176
bool isLetPointer (SILValue V);
174
177
175
178
} // end namespace swift
0 commit comments