LLVM  8.0.1
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 152 of file BTF.h.

Member Data Documentation

◆ NameOff

uint32_t llvm::BTF::BTFMember::NameOff

Member name offset in the string table.

Definition at line 153 of file BTF.h.

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

◆ Offset

uint32_t llvm::BTF::BTFMember::Offset

BitOffset or BitFieldSize+BitOffset.

Definition at line 155 of file BTF.h.

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

◆ Type

uint32_t llvm::BTF::BTFMember::Type

Member type.

Definition at line 154 of file BTF.h.

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


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