ΒΆbool PointerMayBeCaptured(
const llvm::Value* V,
bool ReturnCaptures,
bool StoreCaptures,
unsigned int MaxUsesToExplore =
DefaultMaxUsesToExplore)
bool PointerMayBeCaptured(
const llvm::Value* V,
bool ReturnCaptures,
bool StoreCaptures,
unsigned int MaxUsesToExplore =
DefaultMaxUsesToExplore)
Description
PointerMayBeCaptured - Return true if this pointer value may be captured by the enclosing function (which is required to exist). This routine can be expensive, so consider caching the results. The boolean ReturnCaptures specifies whether returning the value (or part of it) from the function counts as capturing it or not. The boolean StoreCaptures specified whether storing the value (or part of it) into memory anywhere automatically counts as capturing it or not. MaxUsesToExplore specifies how many uses should the analysis explore for one value before giving up due too "too many uses".
Declared at: llvm/include/llvm/Analysis/CaptureTracking.h:42
Parameters
- const llvm::Value* V
- bool ReturnCaptures
- bool StoreCaptures
- unsigned int MaxUsesToExplore = DefaultMaxUsesToExplore