LLVM 20.0.0git
Public Member Functions | Protected Attributes | List of all members
llvm::BTFTypeBase Class Reference

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

#include "Target/BPF/BTFDebug.h"

Inheritance diagram for llvm::BTFTypeBase:
Inheritance graph
[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.

◆ ~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::BTFTypeDerived, llvm::BTFTypeFwd, llvm::BTFTypeInt, llvm::BTFTypeEnum, llvm::BTFTypeArray, llvm::BTFTypeStruct, llvm::BTFTypeFuncProto, llvm::BTFTypeFunc, llvm::BTFKindVar, llvm::BTFKindDataSec, llvm::BTFTypeFloat, llvm::BTFTypeDeclTag, llvm::BTFTypeEnum64, and llvm::BTFTypeTypeTag.

Definition at line 57 of file BTFDebug.h.

◆ emitType()

void BTFTypeBase::emitType ( MCStreamer OS)
virtual

◆ getId()

uint32_t llvm::BTFTypeBase::getId ( )
inline

Definition at line 50 of file BTFDebug.h.

References Id.

◆ getSize()

virtual uint32_t llvm::BTFTypeBase::getSize ( )
inlinevirtual

◆ roundupToBytes()

uint32_t llvm::BTFTypeBase::roundupToBytes ( uint32_t  NumBits)
inline

◆ setId()

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

Definition at line 49 of file BTFDebug.h.

References Id.

Member Data Documentation

◆ BTFType

struct BTF::CommonType llvm::BTFTypeBase::BTFType
protected

◆ 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

bool llvm::BTFTypeBase::IsCompleted
protected

◆ Kind

uint8_t llvm::BTFTypeBase::Kind
protected

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