clang  15.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::CodeGen::CGBlockInfo::Capture Class Reference

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

Collaboration diagram for clang::CodeGen::CGBlockInfo::Capture:
Collaboration graph

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 164 of file CGBlocks.h.

Member Function Documentation

◆ fieldType()

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

◆ getCleanup()

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

Definition at line 186 of file CGBlocks.h.

References isIndex().

◆ getConstant()

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

Definition at line 195 of file CGBlocks.h.

References isConstant().

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

◆ getIndex()

unsigned clang::CodeGen::CGBlockInfo::Capture::getIndex ( ) const

◆ getOffset()

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

Definition at line 182 of file CGBlocks.h.

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

◆ isConstant()

bool clang::CodeGen::CGBlockInfo::Capture::isConstant ( ) const

◆ isConstantOrTrivial()

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

◆ isIndex()

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

Definition at line 175 of file CGBlocks.h.

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

◆ makeConstant()

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

Definition at line 221 of file CGBlocks.h.

References Cap, and v.

Referenced by computeBlockInfo().

◆ makeIndex()

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

Definition at line 205 of file CGBlocks.h.

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

◆ setCleanup()

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

Definition at line 190 of file CGBlocks.h.

References clang::format::cleanup(), and isIndex().

Member Data Documentation

◆ Cap

const BlockDecl::Capture* clang::CodeGen::CGBlockInfo::Capture::Cap

◆ CopyFlags

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

◆ CopyKind

BlockCaptureEntityKind clang::CodeGen::CGBlockInfo::Capture::CopyKind = BlockCaptureEntityKind::None

◆ DisposeFlags

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

◆ DisposeKind

BlockCaptureEntityKind clang::CodeGen::CGBlockInfo::Capture::DisposeKind = BlockCaptureEntityKind::None

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