LLVM
8.0.1
|
Handle array type. More...
#include "Target/BPF/BTFDebug.h"
Public Member Functions | |
BTFTypeArray (const DICompositeType *ATy) | |
uint32_t | getSize () |
Get the size of this BTF type entry. More... | |
void | completeType (BTFDebug &BDebug) |
Represent a BTF array. More... | |
void | emitType (MCStreamer &OS) |
Emit types for this BTF type entry. More... | |
Public Member Functions inherited from llvm::BTFTypeBase | |
virtual | ~BTFTypeBase ()=default |
void | setId (uint32_t Id) |
uint32_t | getId () |
uint32_t | roundupToBytes (uint32_t NumBits) |
Additional Inherited Members | |
Protected Attributes inherited from llvm::BTFTypeBase | |
uint8_t | Kind |
uint32_t | Id |
struct BTF::CommonType | BTFType |
Handle array type.
Definition at line 103 of file BTFDebug.h.
BTFTypeArray::BTFTypeArray | ( | const DICompositeType * | ATy | ) |
Definition at line 162 of file BTFDebug.cpp.
References llvm::BTFTypeBase::BTFType, llvm::BTF::CommonType::Info, and llvm::BTFTypeBase::Kind.
|
virtual |
Represent a BTF array.
BTF does not record array dimensions, so conceptually a BTF array is a one-dimensional array.
Reimplemented from llvm::BTFTypeBase.
Definition at line 169 of file BTFDebug.cpp.
References llvm::BTFDebug::addString(), assert(), llvm::BTFTypeBase::BTFType, llvm::BTF::BTFArray::ElemType, llvm::BTFDebug::getArrayIndexTypeId(), llvm::DICompositeType::getBaseType(), llvm::DIType::getName(), llvm::DIType::getSizeInBits(), llvm::BTFDebug::getTypeId(), llvm::BTF::BTFArray::IndexType, llvm::BTF::CommonType::NameOff, llvm::BTF::BTFArray::Nelems, llvm::TypedDINodeRef< T >::resolve(), and llvm::BTF::CommonType::Size.
|
virtual |
Emit types for this BTF type entry.
Emit a BTF common type.
Reimplemented from llvm::BTFTypeBase.
Definition at line 203 of file BTFDebug.cpp.
References llvm::BTF::BTFArray::ElemType, llvm::MCStreamer::EmitIntValue(), llvm::BTFTypeBase::emitType(), llvm::BTF::BTFArray::IndexType, and llvm::BTF::BTFArray::Nelems.
|
inlinevirtual |
Get the size of this BTF type entry.
Reimplemented from llvm::BTFTypeBase.
Definition at line 109 of file BTFDebug.h.
References llvm::BTF::BTFArraySize, llvm::BTFTypeBase::completeType(), llvm::BTFTypeBase::emitType(), and llvm::BTFTypeBase::getSize().