LLVM 22.0.0git
llvm::memprof::CallStackLookupTrait Class Reference

#include "llvm/ProfileData/MemProf.h"

Public Types

using data_type = const llvm::SmallVector<FrameId>
using internal_key_type = CallStackId
using external_key_type = CallStackId
using hash_value_type = CallStackId
using offset_type = uint64_t

Public Member Functions

hash_value_type ComputeHash (internal_key_type K)
uint64_t ReadKey (const unsigned char *D, offset_type)
data_type ReadData (uint64_t K, const unsigned char *D, offset_type Length)

Static Public Member Functions

static bool EqualKey (internal_key_type A, internal_key_type B)
static uint64_t GetInternalKey (internal_key_type K)
static uint64_t GetExternalKey (external_key_type K)
static std::pair< offset_type, offset_typeReadKeyDataLength (const unsigned char *&D)

Detailed Description

Definition at line 785 of file MemProf.h.

Member Typedef Documentation

◆ data_type

◆ external_key_type

◆ hash_value_type

◆ internal_key_type

◆ offset_type

Member Function Documentation

◆ ComputeHash()

hash_value_type llvm::memprof::CallStackLookupTrait::ComputeHash ( internal_key_type K)
inline

Definition at line 799 of file MemProf.h.

◆ EqualKey()

bool llvm::memprof::CallStackLookupTrait::EqualKey ( internal_key_type A,
internal_key_type B )
inlinestatic

Definition at line 793 of file MemProf.h.

References A(), and B().

◆ GetExternalKey()

uint64_t llvm::memprof::CallStackLookupTrait::GetExternalKey ( external_key_type K)
inlinestatic

Definition at line 797 of file MemProf.h.

◆ GetInternalKey()

uint64_t llvm::memprof::CallStackLookupTrait::GetInternalKey ( internal_key_type K)
inlinestatic

Definition at line 796 of file MemProf.h.

◆ ReadData()

data_type llvm::memprof::CallStackLookupTrait::ReadData ( uint64_t K,
const unsigned char * D,
offset_type Length )
inline

◆ ReadKey()

uint64_t llvm::memprof::CallStackLookupTrait::ReadKey ( const unsigned char * D,
offset_type  )
inline

Definition at line 812 of file MemProf.h.

References D(), and llvm::support::endian::readNext().

◆ ReadKeyDataLength()

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

Definition at line 802 of file MemProf.h.

References D(), and llvm::support::endian::readNext().


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