ΒΆllvm::UseCaptureKind DetermineUseCaptureKind(
const llvm::Use& U,
llvm::function_ref<bool(Value*,
const DataLayout&)>
IsDereferenceableOrNull)
llvm::UseCaptureKind DetermineUseCaptureKind(
const llvm::Use& U,
llvm::function_ref<bool(Value*,
const DataLayout&)>
IsDereferenceableOrNull)
Description
Determine what kind of capture behaviour \p U may exhibit. A use can be no-capture, a use can potentially capture, or a use can be passthrough such that the uses of the user or \p U should be inspected. The \p IsDereferenceableOrNull callback is used to rule out capturing for certain comparisons.
Declared at: llvm/include/llvm/Analysis/CaptureTracking.h:131
Parameters
- const llvm::Use& U
- llvm::function_ref<bool(Value*, const DataLayout&)> IsDereferenceableOrNull