LLVM  10.0.0svn
Public Attributes | List of all members
llvm::BTF::BTFMember Struct Reference

BTF_KIND_STRUCT and BTF_KIND_UNION are followed by multiple "struct BTFMember". More...

#include "Target/BPF/BTF.h"

Collaboration diagram for llvm::BTF::BTFMember:
Collaboration graph
[legend]

Public Attributes

uint32_t NameOff
 Member name offset in the string table. More...
 
uint32_t Type
 Member type. More...
 
uint32_t Offset
 BitOffset or BitFieldSize+BitOffset. More...
 

Detailed Description

BTF_KIND_STRUCT and BTF_KIND_UNION are followed by multiple "struct BTFMember".

The exact number of BTFMember is stored in the vlen (of the info in "struct CommonType").

If the struct/union contains any bitfield member, the Offset below represents BitOffset (bits 0 - 23) and BitFieldSize(bits 24 - 31) with BitFieldSize = 0 for non bitfield members. Otherwise, the Offset represents the BitOffset.

Definition at line 165 of file BTF.h.

Member Data Documentation

◆ NameOff

uint32_t llvm::BTF::BTFMember::NameOff

Member name offset in the string table.

Definition at line 166 of file BTF.h.

Referenced by llvm::BTFTypeStruct::completeType().

◆ Offset

uint32_t llvm::BTF::BTFMember::Offset

BitOffset or BitFieldSize+BitOffset.

Definition at line 168 of file BTF.h.

Referenced by llvm::BTFTypeStruct::completeType().

◆ Type

uint32_t llvm::BTF::BTFMember::Type

Member type.

Definition at line 167 of file BTF.h.

Referenced by llvm::BTFTypeStruct::completeType().


The documentation for this struct was generated from the following file: