LLVM 22.0.0git
llvm::BTFTypeBase Class Reference

The base class for BTF type generation. More...

#include "Target/BPF/BTFDebug.h"

Inheritance diagram for llvm::BTFTypeBase:
[legend]

Public Member Functions

 BTFTypeBase ()
virtual ~BTFTypeBase ()=default
void setId (uint32_t Id)
uint32_t getId ()
uint32_t roundupToBytes (uint32_t NumBits)
virtual uint32_t getSize ()
 Get the size of this BTF type entry.
virtual void completeType (BTFDebug &BDebug)
 Complete BTF type generation after all related DebugInfo types have been visited so their BTF type id's are available for cross referece.
virtual void emitType (MCStreamer &OS)
 Emit types for this BTF type entry.

Protected Attributes

uint8_t Kind
bool IsCompleted
uint32_t Id
struct BTF::CommonType BTFType

Detailed Description

The base class for BTF type generation.

Definition at line 39 of file BTFDebug.h.

Constructor & Destructor Documentation

◆ BTFTypeBase()

llvm::BTFTypeBase::BTFTypeBase ( )
inline

Definition at line 47 of file BTFDebug.h.

References IsCompleted.

◆ ~BTFTypeBase()

virtual llvm::BTFTypeBase::~BTFTypeBase ( )
virtualdefault

Member Function Documentation

◆ completeType()

virtual void llvm::BTFTypeBase::completeType ( BTFDebug & BDebug)
inlinevirtual

Complete BTF type generation after all related DebugInfo types have been visited so their BTF type id's are available for cross referece.

Reimplemented in llvm::BTFKindDataSec, llvm::BTFKindVar, llvm::BTFTypeArray, llvm::BTFTypeDeclTag, llvm::BTFTypeDerived, llvm::BTFTypeEnum64, llvm::BTFTypeEnum, llvm::BTFTypeFloat, llvm::BTFTypeFunc, llvm::BTFTypeFuncProto, llvm::BTFTypeFwd, llvm::BTFTypeInt, llvm::BTFTypeStruct, and llvm::BTFTypeTypeTag.

Definition at line 57 of file BTFDebug.h.

◆ emitType()

◆ getId()

uint32_t llvm::BTFTypeBase::getId ( )
inline

Definition at line 50 of file BTFDebug.h.

References Id.

◆ getSize()

◆ roundupToBytes()

◆ setId()

void llvm::BTFTypeBase::setId ( uint32_t Id)
inline

Definition at line 49 of file BTFDebug.h.

References Id.

Member Data Documentation

◆ BTFType

◆ Id

uint32_t llvm::BTFTypeBase::Id
protected

Definition at line 43 of file BTFDebug.h.

Referenced by llvm::BTFKindDataSec::addDataSecEntry(), emitType(), getId(), and setId().

◆ IsCompleted

◆ Kind


The documentation for this class was generated from the following files: