LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::BTF::CommonType Struct Reference

The BTF common type definition. More...

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

Inheritance diagram for llvm::BTF::CommonType:
Inheritance graph
[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 { ... } llvm::BTF::CommonType::@260

"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

◆ NameOff

uint32_t llvm::BTF::CommonType::NameOff

◆ Size

uint32_t llvm::BTF::CommonType::Size

◆ Type

uint32_t llvm::BTF::CommonType::Type

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