LLVM 22.0.0git
llvm::BTF::CommonType Struct Reference

The BTF common type definition. More...

#include "llvm/DebugInfo/BTF/BTF.h"

Inheritance diagram for llvm::BTF::CommonType:
[legend]

Public Member Functions

uint32_t getKind () const
uint32_t getVlen () const

Public Attributes

uint32_t NameOff
 Type name offset in the string table.
uint32_t Info
 "Info" bits arrangement: Bits 0-15: vlen (e.g.
union { 
   uint32_t   Size 
   uint32_t   Type 
}; 
 "Size" is used by INT, ENUM, STRUCT and UNION.

Detailed Description

The BTF common type definition.

Different kinds may have additional information after this structure data.

Definition at line 107 of file BTF.h.

Member Function Documentation

◆ getKind()

uint32_t llvm::BTF::CommonType::getKind ( ) const
inline

Definition at line 131 of file BTF.h.

References Info.

◆ getVlen()

uint32_t llvm::BTF::CommonType::getVlen ( ) const
inline

Definition at line 132 of file BTF.h.

References Info.

Member Data Documentation

◆ [union]

union { ... } llvm::BTF::CommonType

"Size" is used by INT, ENUM, STRUCT and UNION.

"Size" tells the size of the type it is describing.

"Type" is used by PTR, TYPEDEF, VOLATILE, CONST, RESTRICT, FUNC, FUNC_PROTO, VAR, DECL_TAG and TYPE_TAG. "Type" is a type_id referring to another type.

◆ Info

uint32_t llvm::BTF::CommonType::Info

"Info" bits arrangement: Bits 0-15: vlen (e.g.

# of struct's members) Bits 16-23: unused Bits 24-28: kind (e.g. int, ptr, array...etc) Bits 29-30: unused Bit 31: kind_flag, currently used by struct, union and fwd

Definition at line 118 of file BTF.h.

Referenced by getKind(), and getVlen().

◆ NameOff

uint32_t llvm::BTF::CommonType::NameOff

Type name offset in the string table.

Definition at line 109 of file BTF.h.

◆ Size

uint32_t llvm::BTF::CommonType::Size

Definition at line 127 of file BTF.h.

◆ Type

uint32_t llvm::BTF::CommonType::Type

Definition at line 128 of file BTF.h.


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