Lines Matching defs:captured
1 //===--- CaptureTracking.cpp - Determine whether a pointer is captured ----===//
9 // This file contains routines that help determine which pointers are captured.
10 // A pointer value is captured if the function makes a copy of any part of the
11 // pointer that outlives the call. Not being captured means, more or less, that
35 STATISTIC(NumCaptured, "Number of pointers maybe captured");
36 STATISTIC(NumNotCaptured, "Number of pointers not captured");
37 STATISTIC(NumCapturedBefore, "Number of pointers maybe captured before");
38 STATISTIC(NumNotCapturedBefore, "Number of pointers not captured before");
84 bool captured(const Use *U) override {
125 bool captured(const Use *U) override {
152 /// be captured. Here an instruction A is considered earlier than instruction
169 bool captured(const Use *U) override {
197 /// PointerMayBeCaptured - Return true if this pointer value may be captured
207 "It doesn't make sense to ask whether a global is captured.");
223 LLVM_DEBUG(dbgs() << "not captured\n");
229 /// captured by the enclosing function (which is required to exist). If a
243 "It doesn't make sense to ask whether a global is captured.");
266 "It doesn't make sense to ask whether a global is captured.");
290 // Not captured if the callee is readonly, doesn't return a copy through
297 // The pointer is not captured if returned pointer is not captured.
312 // be captured. This is a subtle point considering that (for example)
315 // captured, even though the loaded value might be the pointer itself
320 // Not captured if only passed via 'nocapture' arguments.
323 // The parameter is not marked 'nocapture' - captured.
334 // "va-arg" from a pointer does not cause it to be captured.
337 // Stored the pointer - conservatively assume it may be captured.
345 // As with a store, the location being accessed is not captured,
356 // As with a store, the location being accessed is not captured,
374 // The original value is not captured via this if the new value isn't.
402 // Something else - be conservative and say it is captured.
420 // is captured to avoid taking too much compile time.
445 if (Tracker->captured(U))