clang 24.0.0git
clang::CIRGen::TBAAAccessInfo Struct Reference

Describes a memory access in terms of TBAA. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenTBAA.h"

Public Member Functions

 TBAAAccessInfo (TBAAAccessKind kind, cir::TBAATypeDescriptorAttr baseType, cir::TBAATypeDescriptorAttr accessType, uint64_t offset, uint64_t size)
 TBAAAccessInfo (cir::TBAATypeDescriptorAttr baseType, cir::TBAATypeDescriptorAttr accessType, uint64_t offset, uint64_t size)
 TBAAAccessInfo (cir::TBAATypeDescriptorAttr accessType, uint64_t size)
 TBAAAccessInfo ()
bool isMayAlias () const
bool isIncomplete () const
bool operator== (const TBAAAccessInfo &other) const
bool operator!= (const TBAAAccessInfo &other) const
 operator bool () const

Static Public Member Functions

static TBAAAccessInfo getMayAliasInfo ()
static TBAAAccessInfo getIncompleteInfo ()

Public Attributes

TBAAAccessKind kind
 The kind of the access descriptor.
cir::TBAATypeDescriptorAttr baseType
 The base/leading access type.
cir::TBAATypeDescriptorAttr accessType
 The final access type.
uint64_t offset
 The byte offset of the final access within the base one.
uint64_t size
 The size of access, in bytes.

Detailed Description

Describes a memory access in terms of TBAA.

Definition at line 44 of file CIRGenTBAA.h.

Constructor & Destructor Documentation

◆ TBAAAccessInfo() [1/4]

clang::CIRGen::TBAAAccessInfo::TBAAAccessInfo ( TBAAAccessKind kind,
cir::TBAATypeDescriptorAttr baseType,
cir::TBAATypeDescriptorAttr accessType,
uint64_t offset,
uint64_t size )
inline

◆ TBAAAccessInfo() [2/4]

clang::CIRGen::TBAAAccessInfo::TBAAAccessInfo ( cir::TBAATypeDescriptorAttr baseType,
cir::TBAATypeDescriptorAttr accessType,
uint64_t offset,
uint64_t size )
inline

Definition at line 51 of file CIRGenTBAA.h.

References accessType, baseType, offset, clang::CIRGen::Ordinary, size, TBAAAccessInfo(), and uint64_t.

◆ TBAAAccessInfo() [3/4]

clang::CIRGen::TBAAAccessInfo::TBAAAccessInfo ( cir::TBAATypeDescriptorAttr accessType,
uint64_t size )
inlineexplicit

Definition at line 57 of file CIRGenTBAA.h.

References accessType, size, TBAAAccessInfo(), and uint64_t.

◆ TBAAAccessInfo() [4/4]

clang::CIRGen::TBAAAccessInfo::TBAAAccessInfo ( )
inline

Definition at line 60 of file CIRGenTBAA.h.

References TBAAAccessInfo().

Referenced by getIncompleteInfo(), getMayAliasInfo(), and operator bool().

Member Function Documentation

◆ getIncompleteInfo()

TBAAAccessInfo clang::CIRGen::TBAAAccessInfo::getIncompleteInfo ( )
inlinestatic

◆ getMayAliasInfo()

◆ isIncomplete()

bool clang::CIRGen::TBAAAccessInfo::isIncomplete ( ) const
inline

Definition at line 74 of file CIRGenTBAA.h.

References clang::CIRGen::Incomplete, and kind.

◆ isMayAlias()

◆ operator bool()

clang::CIRGen::TBAAAccessInfo::operator bool ( ) const
inlineexplicit

Definition at line 86 of file CIRGenTBAA.h.

References TBAAAccessInfo().

◆ operator!=()

bool clang::CIRGen::TBAAAccessInfo::operator!= ( const TBAAAccessInfo & other) const
inline

Definition at line 82 of file CIRGenTBAA.h.

References TBAAAccessInfo().

◆ operator==()

bool clang::CIRGen::TBAAAccessInfo::operator== ( const TBAAAccessInfo & other) const
inline

Definition at line 76 of file CIRGenTBAA.h.

References accessType, baseType, kind, offset, size, and TBAAAccessInfo().

Member Data Documentation

◆ accessType

cir::TBAATypeDescriptorAttr clang::CIRGen::TBAAAccessInfo::accessType

The final access type.

May be null if there is no TBAA information available about this access.

Definition at line 98 of file CIRGenTBAA.h.

Referenced by clang::CIRGen::CIRGenFunction::emitLValueForField(), operator==(), TBAAAccessInfo(), TBAAAccessInfo(), and TBAAAccessInfo().

◆ baseType

cir::TBAATypeDescriptorAttr clang::CIRGen::TBAAAccessInfo::baseType

The base/leading access type.

May be null if this access descriptor represents an access that is not considered to be an access to an aggregate or union member.

Definition at line 94 of file CIRGenTBAA.h.

Referenced by clang::CIRGen::CIRGenFunction::emitLValueForField(), operator==(), TBAAAccessInfo(), and TBAAAccessInfo().

◆ kind

TBAAAccessKind clang::CIRGen::TBAAAccessInfo::kind

The kind of the access descriptor.

Definition at line 89 of file CIRGenTBAA.h.

Referenced by isIncomplete(), isMayAlias(), operator==(), and TBAAAccessInfo().

◆ offset

uint64_t clang::CIRGen::TBAAAccessInfo::offset

The byte offset of the final access within the base one.

Must be zero if the base access type is not specified.

Definition at line 102 of file CIRGenTBAA.h.

Referenced by clang::CIRGen::CIRGenFunction::emitLValueForField(), operator==(), TBAAAccessInfo(), and TBAAAccessInfo().

◆ size

uint64_t clang::CIRGen::TBAAAccessInfo::size

The size of access, in bytes.

Definition at line 105 of file CIRGenTBAA.h.

Referenced by clang::CIRGen::CIRGenFunction::emitLValueForField(), operator==(), TBAAAccessInfo(), TBAAAccessInfo(), and TBAAAccessInfo().


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