LLVM  8.0.1
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 33 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

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::BTFTypeFunc, llvm::BTFTypeFuncProto, llvm::BTFTypeStruct, llvm::BTFTypeArray, llvm::BTFTypeEnum, llvm::BTFTypeInt, llvm::BTFTypeFwd, and llvm::BTFTypeDerived.

Definition at line 49 of file BTFDebug.h.

References emitType().

Referenced by llvm::BTFTypeInt::getSize(), llvm::BTFTypeEnum::getSize(), llvm::BTFTypeArray::getSize(), llvm::BTFTypeStruct::getSize(), llvm::BTFTypeFuncProto::getSize(), and llvm::BTFTypeFunc::getSize().

◆ emitType()

void BTFTypeBase::emitType ( MCStreamer OS)
virtual

◆ getId()

uint32_t llvm::BTFTypeBase::getId ( )
inline

Definition at line 42 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 41 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 36 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: