LLVM  9.0.0svn
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]
Collaboration diagram for llvm::BTFTypeBase:
Collaboration graph
[legend]

Public Member Functions

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. More...
 
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. More...
 
virtual void emitType (MCStreamer &OS)
 Emit types for this BTF type entry. More...
 

Protected Attributes

uint8_t Kind
 
uint32_t Id
 
struct BTF::CommonType BTFType
 

Detailed Description

The base class for BTF type generation.

Definition at line 32 of file BTFDebug.h.

Constructor & Destructor Documentation

◆ ~BTFTypeBase()

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

Member Function Documentation

◆ completeType()

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

◆ emitType()

void BTFTypeBase::emitType ( MCStreamer OS)
virtual

◆ getId()

uint32_t llvm::BTFTypeBase::getId ( )
inline

Definition at line 41 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 40 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 35 of file BTFDebug.h.

Referenced by emitType(), getId(), and setId().

◆ Kind

uint8_t llvm::BTFTypeBase::Kind
protected

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