LLVM 22.0.0git
llvm::SimpleCaptureAnalysis Class Referencefinal

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"

Inheritance diagram for llvm::SimpleCaptureAnalysis:
[legend]

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

Detailed Description

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.

Member Function Documentation

◆ getCapturesBefore()

CaptureComponents SimpleCaptureAnalysis::getCapturesBefore ( const Value * Object,
const Instruction * I,
bool OrAt )
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.


The documentation for this class was generated from the following files: