PointerMayBeCapturedBefore overloads
Declared in <llvm/Analysis/CaptureTracking.h>
Return true if this pointer may be captured before a given instruction.
bool
PointerMayBeCapturedBefore(
Value const* V,
bool ReturnCaptures,
Instruction const* I,
DominatorTree const* DT,
bool IncludeI = false,
unsigned int MaxUsesToExplore = 0,
LoopInfo const* LI = nullptr);
» more...
Return which components of the pointer may be captured on the path to I.
CaptureComponents
PointerMayBeCapturedBefore(
Value const* V,
bool ReturnCaptures,
Instruction const* I,
DominatorTree const* DT,
bool IncludeI,
CaptureComponents Mask,
function_ref<bool(CaptureComponents)> StopFn = capturesAnything,
LoopInfo const* LI = nullptr,
unsigned int MaxUsesToExplore = 0);
» more...
I.I.| Name | Description |
|---|---|
| V | Pointer value whose captures are queried. |
| ReturnCaptures | Whether returning the value (or part of it) counts as capturing it. |
| I | Instruction before which captures are considered. |
| DT | Optional dominator tree used to restrict captures to those before I. |
| IncludeI | Whether captures by I itself are considered. |
| MaxUsesToExplore | How many uses to explore before giving up; zero means use the default. |
| LI | Optional loop info used to prune reachability checks. |
| Mask | Capture components to consider. |
| StopFn | Predicate that aborts traversal when it returns true on the accumulated components. |