LLVM 20.0.0git
Public Member Functions | List of all members
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:
Inheritance graph
[legend]

Public Member Functions

bool isNotCapturedBefore (const Value *Object, const Instruction *I, bool OrAt) override
 Check whether Object is not captured before instruction I.
 
- Public Member Functions inherited from llvm::CaptureAnalysis
virtual ~CaptureAnalysis ()=0
 
virtual bool isNotCapturedBefore (const Value *Object, const Instruction *I, bool OrAt)=0
 Check whether Object is not captured before instruction I.
 

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 162 of file AliasAnalysis.h.

Member Function Documentation

◆ isNotCapturedBefore()

bool SimpleCaptureAnalysis::isNotCapturedBefore ( const Value Object,
const Instruction I,
bool  OrAt 
)
overridevirtual

Check whether Object is not captured before instruction I.

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 199 of file BasicAliasAnalysis.cpp.

References llvm::isNonEscapingLocalObject().


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