clang 23.0.0git
clang::interp::InitMap Struct Referencefinal

Bitfield tracking the initialisation status of elements of primitive arrays. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/InitMap.h"

Public Member Functions

 InitMap (unsigned N)
 Initializes the map with no fields set.
 InitMap (unsigned N, bool AllInitialized)
void startElementLifetime (unsigned I)
void endElementLifetime (unsigned I)
bool isElementAlive (unsigned I) const
bool allElementsAlive () const
bool initializeElement (unsigned I)
 Initializes an element. Returns true when object if fully initialized.
bool isElementInitialized (unsigned I) const
 Checks if an element was initialized.

Detailed Description

Bitfield tracking the initialisation status of elements of primitive arrays.

Definition at line 22 of file InitMap.h.

Constructor & Destructor Documentation

◆ InitMap() [1/2]

clang::interp::InitMap::InitMap ( unsigned N)
inlineexplicit

Initializes the map with no fields set.

Definition at line 37 of file InitMap.h.

◆ InitMap() [2/2]

clang::interp::InitMap::InitMap ( unsigned N,
bool AllInitialized )
inlineexplicit

Definition at line 40 of file InitMap.h.

Member Function Documentation

◆ allElementsAlive()

bool clang::interp::InitMap::allElementsAlive ( ) const
inline

Definition at line 58 of file InitMap.h.

Referenced by clang::interp::Pointer::allElementsAlive().

◆ endElementLifetime()

void InitMap::endElementLifetime ( unsigned I)

Definition at line 45 of file InitMap.cpp.

References clang::T.

Referenced by clang::interp::Pointer::endLifetime().

◆ initializeElement()

bool InitMap::initializeElement ( unsigned I)

Initializes an element. Returns true when object if fully initialized.

Definition at line 13 of file InitMap.cpp.

References clang::T.

Referenced by clang::interp::Pointer::initializeElement().

◆ isElementAlive()

bool clang::interp::InitMap::isElementAlive ( unsigned I) const
inline

Definition at line 52 of file InitMap.h.

References clang::T.

Referenced by clang::interp::Pointer::getLifetime(), and clang::interp::Pointer::isElementAlive().

◆ isElementInitialized()

bool InitMap::isElementInitialized ( unsigned I) const

Checks if an element was initialized.

Definition at line 23 of file InitMap.cpp.

References clang::T.

Referenced by clang::interp::Pointer::isElementInitialized().

◆ startElementLifetime()

void InitMap::startElementLifetime ( unsigned I)

Definition at line 32 of file InitMap.cpp.

References clang::T.

Referenced by clang::interp::Pointer::startLifetime().


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