OnDiskChainedHashTable lookup trait for IndexedMemProfRecord entries.

Synopsis

Declared in <llvm/ProfileData/MemProf.h>

class RecordLookupTrait;

Type Aliases

Name

Description

data_type

Record type returned by ReadData.

external_key_type

Key type supplied by lookup clients.

hash_value_type

Hash value type for table keys.

internal_key_type

Key type stored in the hash table.

offset_type

Byte offset / length type used by the on‐disk format.

Member Functions

Name

Description

RecordLookupTrait [constructor]

Constructors

ComputeHash

Return the hash of key K (the key itself for GUID keys).

ReadData

Deserialize the record for key K from little‐endian bytes at D.

ReadKey

Read the lookup key from little‐endian bytes at D.

Static Member Functions

Name

Description

EqualKey

Return true if keys A and B are equal.

GetExternalKey

Return the external key corresponding to internal key K.

GetInternalKey

Return the internal key corresponding to external key K.

ReadKeyDataLength

Read key and data byte lengths from little‐endian bytes at D.

Created with MrDocs