clang 22.0.0git
clang::CodeGen::CGBlockInfo::Capture Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CGBlocks.h"

Public Member Functions

bool isIndex () const
bool isConstant () const
unsigned getIndex () const
CharUnits getOffset () const
EHScopeStack::stable_iterator getCleanup () const
void setCleanup (EHScopeStack::stable_iterator cleanup)
llvm::Value * getConstant () const
QualType fieldType () const
bool isConstantOrTrivial () const

Static Public Member Functions

static Capture makeIndex (unsigned index, CharUnits offset, QualType FieldType, BlockCaptureEntityKind CopyKind, BlockFieldFlags CopyFlags, BlockCaptureEntityKind DisposeKind, BlockFieldFlags DisposeFlags, const BlockDecl::Capture *Cap)
static Capture makeConstant (llvm::Value *value, const BlockDecl::Capture *Cap)

Public Attributes

BlockCaptureEntityKind CopyKind = BlockCaptureEntityKind::None
BlockCaptureEntityKind DisposeKind = BlockCaptureEntityKind::None
BlockFieldFlags CopyFlags
BlockFieldFlags DisposeFlags
const BlockDecl::CaptureCap

Detailed Description

Definition at line 165 of file CGBlocks.h.

Member Function Documentation

◆ fieldType()

QualType clang::CodeGen::CGBlockInfo::Capture::fieldType ( ) const
inline

◆ getCleanup()

EHScopeStack::stable_iterator clang::CodeGen::CGBlockInfo::Capture::getCleanup ( ) const
inline

Definition at line 187 of file CGBlocks.h.

References isIndex().

◆ getConstant()

llvm::Value * clang::CodeGen::CGBlockInfo::Capture::getConstant ( ) const
inline

Definition at line 196 of file CGBlocks.h.

References isConstant().

Referenced by clang::CodeGen::CodeGenFunction::GenerateBlockFunction().

◆ getIndex()

◆ getOffset()

CharUnits clang::CodeGen::CGBlockInfo::Capture::getOffset ( ) const
inline

Definition at line 183 of file CGBlocks.h.

References clang::CharUnits::fromQuantity(), and isIndex().

Referenced by getBlockCaptureStr().

◆ isConstant()

◆ isConstantOrTrivial()

bool clang::CodeGen::CGBlockInfo::Capture::isConstantOrTrivial ( ) const
inline

◆ isIndex()

bool clang::CodeGen::CGBlockInfo::Capture::isIndex ( ) const
inline

Definition at line 176 of file CGBlocks.h.

Referenced by getCleanup(), getIndex(), getOffset(), isConstant(), and setCleanup().

◆ makeConstant()

Capture clang::CodeGen::CGBlockInfo::Capture::makeConstant ( llvm::Value * value,
const BlockDecl::Capture * Cap )
inlinestatic

Definition at line 222 of file CGBlocks.h.

References Cap.

Referenced by computeBlockInfo().

◆ makeIndex()

Capture clang::CodeGen::CGBlockInfo::Capture::makeIndex ( unsigned index,
CharUnits offset,
QualType FieldType,
BlockCaptureEntityKind CopyKind,
BlockFieldFlags CopyFlags,
BlockCaptureEntityKind DisposeKind,
BlockFieldFlags DisposeFlags,
const BlockDecl::Capture * Cap )
inlinestatic

Definition at line 206 of file CGBlocks.h.

References Cap, CopyFlags, CopyKind, DisposeFlags, DisposeKind, and clang::CharUnits::getQuantity().

◆ setCleanup()

void clang::CodeGen::CGBlockInfo::Capture::setCleanup ( EHScopeStack::stable_iterator cleanup)
inline

Definition at line 191 of file CGBlocks.h.

References cleanup(), and isIndex().

Member Data Documentation

◆ Cap

◆ CopyFlags

BlockFieldFlags clang::CodeGen::CGBlockInfo::Capture::CopyFlags

◆ CopyKind

◆ DisposeFlags

BlockFieldFlags clang::CodeGen::CGBlockInfo::Capture::DisposeFlags

◆ DisposeKind


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