File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ struct BorrowedValue;
66
66
// / Returns true if v is an address or trivial.
67
67
bool isValueAddressOrTrivial (SILValue v);
68
68
69
+ // ===----------------------------------------------------------------------===//
70
+ // Forwarding Utilities
71
+ //
72
+ // TODO: encapsulate in a ForwardingInstruction abstraction
73
+ // ===----------------------------------------------------------------------===//
74
+
69
75
// / Is the opcode that produces \p value capable of forwarding guaranteed
70
76
// / values?
71
77
// /
@@ -108,6 +114,10 @@ inline bool isForwardingConsume(SILValue value) {
108
114
return canOpcodeForwardOwnedValues (value);
109
115
}
110
116
117
+ // ===----------------------------------------------------------------------===//
118
+ // Ownership Def-Use Utilities
119
+ // ===----------------------------------------------------------------------===//
120
+
111
121
bool hasPointerEscape (BorrowedValue value);
112
122
113
123
// / Find leaf "use points" of \p guaranteedValue that determine its lifetime
You can’t perform that action at this time.
0 commit comments