ΒΆbool PointerMayBeCaptured(
    const llvm::Value* V,
    bool ReturnCaptures,
    bool StoreCaptures,
    unsigned int MaxUsesToExplore = 0)

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 the analysis should explore for one value before giving up due too "too many uses". If MaxUsesToExplore is zero, a default value is assumed.

Declared at: llvm/include/llvm/Analysis/CaptureTracking.h:45

Parameters

const llvm::Value* V
bool ReturnCaptures
bool StoreCaptures
unsigned int MaxUsesToExplore = 0