class InstrProfLookupTrait
Declaration
class InstrProfLookupTrait { /* full declaration omitted */ };
Description
Trait for lookups into the on-disk hash table for the binary instrprof format.
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:401
Member Variables
- private std::vector<NamedInstrProfRecord> DataBuffer
- private IndexedInstrProf::HashT HashType
- private unsigned int FormatVersion
- private support::endianness ValueProfDataEndianness = support::little
Method Overview
- public llvm::InstrProfLookupTrait::hash_value_type ComputeHash(llvm::StringRef K)
- public static bool EqualKey(llvm::StringRef A, llvm::StringRef B)
- public static llvm::StringRef GetExternalKey(llvm::StringRef K)
- public static llvm::StringRef GetInternalKey(llvm::StringRef K)
- public InstrProfLookupTrait(IndexedInstrProf::HashT HashType, unsigned int FormatVersion)
- public llvm::InstrProfLookupTrait::data_type ReadData(llvm::StringRef K, const unsigned char * D, llvm::InstrProfLookupTrait::offset_type N)
- public llvm::StringRef ReadKey(const unsigned char * D, llvm::InstrProfLookupTrait::offset_type N)
- public static std::pair<offset_type, offset_type> ReadKeyDataLength(const unsigned char *& D)
- public bool readValueProfilingData(const unsigned char *& D, const unsigned char *const End)
- public void setValueProfDataEndianness(support::endianness Endianness)
Methods
¶llvm::InstrProfLookupTrait::hash_value_type
ComputeHash(llvm::StringRef K)
llvm::InstrProfLookupTrait::hash_value_type
ComputeHash(llvm::StringRef K)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:425
Parameters
¶static bool EqualKey(llvm::StringRef A,
llvm::StringRef B)
static bool EqualKey(llvm::StringRef A,
llvm::StringRef B)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:421
Parameters
¶static llvm::StringRef GetExternalKey(
llvm::StringRef K)
static llvm::StringRef GetExternalKey(
llvm::StringRef K)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:423
Parameters
¶static llvm::StringRef GetInternalKey(
llvm::StringRef K)
static llvm::StringRef GetInternalKey(
llvm::StringRef K)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:422
Parameters
¶InstrProfLookupTrait(
IndexedInstrProf::HashT HashType,
unsigned int FormatVersion)
InstrProfLookupTrait(
IndexedInstrProf::HashT HashType,
unsigned int FormatVersion)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:411
Parameters
- IndexedInstrProf::HashT HashType
- unsigned int FormatVersion
¶llvm::InstrProfLookupTrait::data_type ReadData(
llvm::StringRef K,
const unsigned char* D,
llvm::InstrProfLookupTrait::offset_type N)
llvm::InstrProfLookupTrait::data_type ReadData(
llvm::StringRef K,
const unsigned char* D,
llvm::InstrProfLookupTrait::offset_type N)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:442
Parameters
- llvm::StringRef K
- const unsigned char* D
- llvm::InstrProfLookupTrait::offset_type N
¶llvm::StringRef ReadKey(
const unsigned char* D,
llvm::InstrProfLookupTrait::offset_type N)
llvm::StringRef ReadKey(
const unsigned char* D,
llvm::InstrProfLookupTrait::offset_type N)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:436
Parameters
- const unsigned char* D
- llvm::InstrProfLookupTrait::offset_type N
¶static std::pair<offset_type, offset_type>
ReadKeyDataLength(const unsigned char*& D)
static std::pair<offset_type, offset_type>
ReadKeyDataLength(const unsigned char*& D)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:428
Parameters
- const unsigned char*& D
¶bool readValueProfilingData(
const unsigned char*& D,
const unsigned char* const End)
bool readValueProfilingData(
const unsigned char*& D,
const unsigned char* const End)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:440
Parameters
- const unsigned char*& D
- const unsigned char* const End
¶void setValueProfDataEndianness(
support::endianness Endianness)
void setValueProfDataEndianness(
support::endianness Endianness)
Declared at: llvm/include/llvm/ProfileData/InstrProfReader.h:445
Parameters
- support::endianness Endianness