Result of a PointerMayBeCaptured query, which includes the captured components for both the case where return is considered a capture, and where it isn't.

Synopsis

Declared in <llvm/Analysis/CaptureTracking.h>

struct CaptureResult;

Data Members

Non-Member Functions

Name

Description

PointerMayBeCaptured

Return which components of the pointer may be captured. Only consider components that are part of Mask. Once StopFn on the accumulated components returns true, the traversal is aborted early. By default, this happens when any of the components in Mask are captured. This function only considers captures of the passed value via its def‐use chain, without considering captures of values it may be based on, or implicit captures such as for external globals.

Created with MrDocs