LLVM 23.0.0git
llvm::CaptureAnalysis Struct Referenceabstract

Virtual base class for providers of capture analysis. More...

#include "llvm/Analysis/AliasAnalysis.h"

Inheritance diagram for llvm::CaptureAnalysis:
[legend]

Public Member Functions

virtual ~CaptureAnalysis ()=0
virtual CaptureComponents getCapturesBefore (const Value *Object, const Instruction *I, bool OrAt, bool ReturnCaptures)=0
 Return how Object may be captured before instruction I, considering only provenance captures.

Detailed Description

Virtual base class for providers of capture analysis.

Definition at line 151 of file AliasAnalysis.h.

Constructor & Destructor Documentation

◆ ~CaptureAnalysis()

CaptureAnalysis::~CaptureAnalysis ( )
pure virtualdefault

Member Function Documentation

◆ getCapturesBefore()

virtual CaptureComponents llvm::CaptureAnalysis::getCapturesBefore ( const Value * Object,
const Instruction * I,
bool OrAt,
bool ReturnCaptures )
pure virtual

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.

Implemented in llvm::EarliestEscapeAnalysis, and llvm::SimpleCaptureAnalysis.

References I.

Referenced by llvm::BasicAAResult::getModRefInfo(), and getSyncEffects().


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