LLVM 23.0.0git
llvm::sampleprof::FuncOffsetHashTableInfo Class Reference

Trait class for reading the on-disk function offset hash table mapping function name GUIDs to their offsets in the SecLBRProfile section. More...

#include "llvm/ProfileData/SampleProfReader.h"

Public Types

using key_type = uint64_t
using key_type_ref = uint64_t
using data_type = uint32_t
using data_type_ref = uint32_t
using hash_value_type = uint32_t
using offset_type = uint32_t
using internal_key_type = uint64_t
using external_key_type = uint64_t

Static Public Member Functions

static hash_value_type ComputeHash (key_type_ref Key)
static bool EqualKey (key_type_ref LHS, key_type_ref RHS)
static key_type GetInternalKey (key_type_ref Key)
static external_key_type GetExternalKey (internal_key_type Key)
static std::pair< offset_type, offset_typeReadKeyDataLength (const unsigned char *&D)
static key_type ReadKey (const unsigned char *D, offset_type Len)
static data_type ReadData (key_type_ref K, const unsigned char *D, offset_type Len)

Detailed Description

Trait class for reading the on-disk function offset hash table mapping function name GUIDs to their offsets in the SecLBRProfile section.

Definition at line 789 of file SampleProfReader.h.

Member Typedef Documentation

◆ data_type

◆ data_type_ref

◆ external_key_type

◆ hash_value_type

◆ internal_key_type

◆ key_type

◆ key_type_ref

◆ offset_type

Member Function Documentation

◆ ComputeHash()

hash_value_type llvm::sampleprof::FuncOffsetHashTableInfo::ComputeHash ( key_type_ref Key)
inlinestatic

◆ EqualKey()

bool llvm::sampleprof::FuncOffsetHashTableInfo::EqualKey ( key_type_ref LHS,
key_type_ref RHS )
inlinestatic

Definition at line 804 of file SampleProfReader.h.

References LHS, and RHS.

◆ GetExternalKey()

external_key_type llvm::sampleprof::FuncOffsetHashTableInfo::GetExternalKey ( internal_key_type Key)
inlinestatic

◆ GetInternalKey()

key_type llvm::sampleprof::FuncOffsetHashTableInfo::GetInternalKey ( key_type_ref Key)
inlinestatic

◆ ReadData()

data_type llvm::sampleprof::FuncOffsetHashTableInfo::ReadData ( key_type_ref K,
const unsigned char * D,
offset_type Len )
inlinestatic

Definition at line 822 of file SampleProfReader.h.

References assert(), D(), and llvm::support::endian::read32le().

◆ ReadKey()

key_type llvm::sampleprof::FuncOffsetHashTableInfo::ReadKey ( const unsigned char * D,
offset_type Len )
inlinestatic

Definition at line 817 of file SampleProfReader.h.

References assert(), D(), and llvm::support::endian::read64le().

◆ ReadKeyDataLength()

std::pair< offset_type, offset_type > llvm::sampleprof::FuncOffsetHashTableInfo::ReadKeyDataLength ( const unsigned char *& D)
inlinestatic

Definition at line 812 of file SampleProfReader.h.

References D().


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