Skip to content

Commit 0fbca76

Browse files
committed
Decorative comments in OwnershipUtils
1 parent 6105077 commit 0fbca76

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/swift/SIL/OwnershipUtils.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ struct BorrowedValue;
6666
/// Returns true if v is an address or trivial.
6767
bool isValueAddressOrTrivial(SILValue v);
6868

69+
//===----------------------------------------------------------------------===//
70+
// Forwarding Utilities
71+
//
72+
// TODO: encapsulate in a ForwardingInstruction abstraction
73+
//===----------------------------------------------------------------------===//
74+
6975
/// Is the opcode that produces \p value capable of forwarding guaranteed
7076
/// values?
7177
///
@@ -108,6 +114,10 @@ inline bool isForwardingConsume(SILValue value) {
108114
return canOpcodeForwardOwnedValues(value);
109115
}
110116

117+
//===----------------------------------------------------------------------===//
118+
// Ownership Def-Use Utilities
119+
//===----------------------------------------------------------------------===//
120+
111121
bool hasPointerEscape(BorrowedValue value);
112122

113123
/// Find leaf "use points" of \p guaranteedValue that determine its lifetime

0 commit comments

Comments
 (0)