LLVM 20.0.0git
|
The BTF common type definition. More...
#include "llvm/DebugInfo/BTF/BTF.h"
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. | |
The BTF common type definition.
Different kinds may have additional information after this structure data.
|
inline |
|
inline |
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.
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 llvm::BTFKindDataSec::BTFKindDataSec(), llvm::BTFKindVar::BTFKindVar(), llvm::BTFTypeArray::BTFTypeArray(), llvm::BTFTypeDeclTag::BTFTypeDeclTag(), llvm::BTFTypeDerived::BTFTypeDerived(), llvm::BTFTypeEnum::BTFTypeEnum(), llvm::BTFTypeEnum64::BTFTypeEnum64(), llvm::BTFTypeFloat::BTFTypeFloat(), llvm::BTFTypeFunc::BTFTypeFunc(), llvm::BTFTypeFuncProto::BTFTypeFuncProto(), llvm::BTFTypeFwd::BTFTypeFwd(), llvm::BTFTypeInt::BTFTypeInt(), llvm::BTFTypeStruct::BTFTypeStruct(), llvm::BTFTypeTypeTag::BTFTypeTypeTag(), llvm::BTFKindDataSec::completeType(), llvm::BTFTypeBase::emitType(), getKind(), and getVlen().
uint32_t llvm::BTF::CommonType::NameOff |
Type name offset in the string table.
Definition at line 109 of file BTF.h.
Referenced by llvm::BTFTypeArray::BTFTypeArray(), llvm::BTFTypeDerived::completeType(), llvm::BTFTypeFwd::completeType(), llvm::BTFTypeInt::completeType(), llvm::BTFTypeEnum::completeType(), llvm::BTFTypeStruct::completeType(), llvm::BTFTypeFuncProto::completeType(), llvm::BTFTypeFunc::completeType(), llvm::BTFKindVar::completeType(), llvm::BTFKindDataSec::completeType(), llvm::BTFTypeFloat::completeType(), llvm::BTFTypeDeclTag::completeType(), llvm::BTFTypeEnum64::completeType(), llvm::BTFTypeTypeTag::completeType(), and llvm::BTFTypeBase::emitType().
uint32_t llvm::BTF::CommonType::Size |
Definition at line 127 of file BTF.h.
Referenced by llvm::BTFKindDataSec::BTFKindDataSec(), llvm::BTFTypeArray::BTFTypeArray(), llvm::BTFTypeEnum::BTFTypeEnum(), llvm::BTFTypeEnum64::BTFTypeEnum64(), llvm::BTFTypeFloat::BTFTypeFloat(), llvm::BTFTypeInt::BTFTypeInt(), llvm::BTFTypeStruct::BTFTypeStruct(), and llvm::BTFTypeBase::emitType().
uint32_t llvm::BTF::CommonType::Type |
Definition at line 128 of file BTF.h.
Referenced by llvm::BTFKindVar::BTFKindVar(), llvm::BTFTypeDeclTag::BTFTypeDeclTag(), llvm::BTFTypeDerived::BTFTypeDerived(), llvm::BTFTypeFunc::BTFTypeFunc(), llvm::BTFTypeFwd::BTFTypeFwd(), llvm::BTFTypeTypeTag::BTFTypeTypeTag(), llvm::BTFTypeDerived::completeType(), llvm::BTFTypeFuncProto::completeType(), llvm::BTFTypeTypeTag::completeType(), and llvm::BTFTypeDerived::setPointeeType().