LLVM 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::memprof::RecordLookupTrait Class Reference

#include "llvm/ProfileData/MemProf.h"

Public Types

using data_type = const IndexedMemProfRecord &
 
using internal_key_type = uint64_t
 
using external_key_type = uint64_t
 
using hash_value_type = uint64_t
 
using offset_type = uint64_t
 

Public Member Functions

 RecordLookupTrait ()=delete
 
 RecordLookupTrait (IndexedVersion V, const MemProfSchema &S)
 
hash_value_type ComputeHash (uint64_t K)
 
uint64_t ReadKey (const unsigned char *D, offset_type)
 
data_type ReadData (uint64_t K, const unsigned char *D, offset_type)
 

Static Public Member Functions

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

Detailed Description

Definition at line 454 of file MemProf.h.

Member Typedef Documentation

◆ data_type

Definition at line 456 of file MemProf.h.

◆ external_key_type

Definition at line 458 of file MemProf.h.

◆ hash_value_type

Definition at line 459 of file MemProf.h.

◆ internal_key_type

Definition at line 457 of file MemProf.h.

◆ offset_type

Definition at line 460 of file MemProf.h.

Constructor & Destructor Documentation

◆ RecordLookupTrait() [1/2]

llvm::memprof::RecordLookupTrait::RecordLookupTrait ( )
delete

◆ RecordLookupTrait() [2/2]

llvm::memprof::RecordLookupTrait::RecordLookupTrait ( IndexedVersion  V,
const MemProfSchema S 
)
inline

Definition at line 463 of file MemProf.h.

Member Function Documentation

◆ ComputeHash()

hash_value_type llvm::memprof::RecordLookupTrait::ComputeHash ( uint64_t  K)
inline

Definition at line 470 of file MemProf.h.

◆ EqualKey()

static bool llvm::memprof::RecordLookupTrait::EqualKey ( uint64_t  A,
uint64_t  B 
)
inlinestatic

Definition at line 466 of file MemProf.h.

References A, and B.

◆ GetExternalKey()

static uint64_t llvm::memprof::RecordLookupTrait::GetExternalKey ( uint64_t  K)
inlinestatic

Definition at line 468 of file MemProf.h.

◆ GetInternalKey()

static uint64_t llvm::memprof::RecordLookupTrait::GetInternalKey ( uint64_t  K)
inlinestatic

Definition at line 467 of file MemProf.h.

◆ ReadData()

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

Definition at line 489 of file MemProf.h.

References D, and llvm::memprof::IndexedMemProfRecord::deserialize().

◆ ReadKey()

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

Definition at line 483 of file MemProf.h.

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

◆ ReadKeyDataLength()

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

Definition at line 473 of file MemProf.h.

References D.


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