clang 24.0.0git
clang::DynamicAllocLValue Class Reference

Symbolic representation of a dynamic allocation. More...

#include "clang/AST/APValue.h"

Public Member Functions

 DynamicAllocLValue ()
 DynamicAllocLValue (unsigned Idx, DynAllocKind AllocKind)
unsigned getIndex () const
DynAllocKind getAllocKind () const
 operator bool () const
const void * getOpaqueValue () const

Static Public Member Functions

static DynamicAllocLValue getFromOpaqueValue (const void *Value)
static uintptr_t getMaxIndex ()

Static Public Attributes

static constexpr int NumLowBitsAvailable = 2
static constexpr int NumAllocKindBits = 3

Detailed Description

Symbolic representation of a dynamic allocation.

Definition at line 79 of file APValue.h.

Constructor & Destructor Documentation

◆ DynamicAllocLValue() [1/2]

clang::DynamicAllocLValue::DynamicAllocLValue ( )
inline

Definition at line 95 of file APValue.h.

Referenced by getFromOpaqueValue().

◆ DynamicAllocLValue() [2/2]

clang::DynamicAllocLValue::DynamicAllocLValue ( unsigned Idx,
DynAllocKind AllocKind )
inlineexplicit

Definition at line 96 of file APValue.h.

References getMaxIndex().

Member Function Documentation

◆ getAllocKind()

DynAllocKind clang::DynamicAllocLValue::getAllocKind ( ) const
inline

Definition at line 101 of file APValue.h.

Referenced by getBaseAlignment().

◆ getFromOpaqueValue()

DynamicAllocLValue clang::DynamicAllocLValue::getFromOpaqueValue ( const void * Value)
inlinestatic

◆ getIndex()

unsigned clang::DynamicAllocLValue::getIndex ( ) const
inline

Definition at line 100 of file APValue.h.

◆ getMaxIndex()

uintptr_t clang::DynamicAllocLValue::getMaxIndex ( )
inlinestatic

Definition at line 120 of file APValue.h.

References NumAllocKindBits, and NumLowBitsAvailable.

Referenced by DynamicAllocLValue().

◆ getOpaqueValue()

const void * clang::DynamicAllocLValue::getOpaqueValue ( ) const
inline

Definition at line 107 of file APValue.h.

References NumAllocKindBits, and NumLowBitsAvailable.

◆ operator bool()

clang::DynamicAllocLValue::operator bool ( ) const
inlineexplicit

Definition at line 105 of file APValue.h.

Member Data Documentation

◆ NumAllocKindBits

int clang::DynamicAllocLValue::NumAllocKindBits = 3
staticconstexpr

Definition at line 82 of file APValue.h.

Referenced by getFromOpaqueValue(), getMaxIndex(), and getOpaqueValue().

◆ NumLowBitsAvailable

int clang::DynamicAllocLValue::NumLowBitsAvailable = 2
staticconstexpr

Definition at line 81 of file APValue.h.

Referenced by getFromOpaqueValue(), getMaxIndex(), and getOpaqueValue().


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