LLVM 22.0.0git
|
Context-free CaptureAnalysis provider, which computes and caches whether an object is captured in the function at all, but does not distinguish whether it was captured before or after the context instruction. More...
#include "llvm/Analysis/AliasAnalysis.h"
Public Member Functions | |
CaptureComponents | getCapturesBefore (const Value *Object, const Instruction *I, bool OrAt) override |
Return how Object may be captured before instruction I, considering only provenance captures. | |
Public Member Functions inherited from llvm::CaptureAnalysis | |
virtual | ~CaptureAnalysis ()=0 |
Context-free CaptureAnalysis provider, which computes and caches whether an object is captured in the function at all, but does not distinguish whether it was captured before or after the context instruction.
Definition at line 164 of file AliasAnalysis.h.
|
overridevirtual |
Return how Object may be captured before instruction I, considering only provenance captures.
If OrAt is true, captures by instruction I itself are also considered.
If I is nullptr, then captures at any point will be considered.
Implements llvm::CaptureAnalysis.
Definition at line 198 of file BasicAliasAnalysis.cpp.
References llvm::capturesFullProvenance(), I, llvm::isIdentifiedFunctionLocal(), llvm::PointerMayBeCaptured(), and llvm::Provenance.