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

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

#include "llvm/ProfileData/SampleProfWriter.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_typeEmitKeyDataLength (raw_ostream &Out, key_type_ref K, data_type_ref V)
static void EmitKey (raw_ostream &Out, key_type_ref K, offset_type Len)
static void EmitData (raw_ostream &Out, key_type_ref K, data_type_ref V, offset_type Len)

Detailed Description

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

Definition at line 278 of file SampleProfWriter.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::FuncOffsetHashTableWriterInfo::ComputeHash ( key_type_ref Key)
inlinestatic

◆ EmitData()

void llvm::sampleprof::FuncOffsetHashTableWriterInfo::EmitData ( raw_ostream & Out,
key_type_ref K,
data_type_ref V,
offset_type Len )
inlinestatic

Definition at line 313 of file SampleProfWriter.h.

References assert(), and llvm::little.

◆ EmitKey()

void llvm::sampleprof::FuncOffsetHashTableWriterInfo::EmitKey ( raw_ostream & Out,
key_type_ref K,
offset_type Len )
inlinestatic

Definition at line 306 of file SampleProfWriter.h.

References assert(), and llvm::little.

◆ EmitKeyDataLength()

std::pair< offset_type, offset_type > llvm::sampleprof::FuncOffsetHashTableWriterInfo::EmitKeyDataLength ( raw_ostream & Out,
key_type_ref K,
data_type_ref V )
inlinestatic

Definition at line 301 of file SampleProfWriter.h.

◆ EqualKey()

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

Definition at line 293 of file SampleProfWriter.h.

References LHS, and RHS.

◆ GetExternalKey()

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

◆ GetInternalKey()

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

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