|
LLVM 24.0.0git
|
Trait for lookups into the on-disk hash table for the binary instrprof format. More...
#include "llvm/ProfileData/InstrProfReader.h"
Public Types | |
| using | data_type = ArrayRef<NamedInstrProfRecord> |
| using | internal_key_type = StringRef |
| using | external_key_type = StringRef |
| using | hash_value_type = uint64_t |
| using | offset_type = uint64_t |
Public Member Functions | |
| InstrProfLookupTrait (IndexedInstrProf::HashT HashType, unsigned FormatVersion) | |
| LLVM_ABI hash_value_type | ComputeHash (StringRef K) |
| StringRef | ReadKey (const unsigned char *D, offset_type N) |
| LLVM_ABI bool | readValueProfilingData (const unsigned char *&D, const unsigned char *const End) |
| LLVM_ABI data_type | ReadData (StringRef K, const unsigned char *D, offset_type N) |
| void | setValueProfDataEndianness (llvm::endianness Endianness) |
Static Public Member Functions | |
| static bool | EqualKey (StringRef A, StringRef B) |
| static StringRef | GetInternalKey (StringRef K) |
| static StringRef | GetExternalKey (StringRef K) |
| static std::pair< offset_type, offset_type > | ReadKeyDataLength (const unsigned char *&D) |
Trait for lookups into the on-disk hash table for the binary instrprof format.
Definition at line 518 of file InstrProfReader.h.
Definition at line 531 of file InstrProfReader.h.
Definition at line 534 of file InstrProfReader.h.
Definition at line 535 of file InstrProfReader.h.
Definition at line 533 of file InstrProfReader.h.
Definition at line 536 of file InstrProfReader.h.
|
inline |
Definition at line 528 of file InstrProfReader.h.
| InstrProfLookupTrait::hash_value_type InstrProfLookupTrait::ComputeHash | ( | StringRef | K | ) |
Definition at line 1007 of file InstrProfReader.cpp.
References llvm::IndexedInstrProf::ComputeHash().
Definition at line 538 of file InstrProfReader.h.
Definition at line 540 of file InstrProfReader.h.
Definition at line 539 of file InstrProfReader.h.
Definition at line 1028 of file InstrProfReader.cpp.
References llvm::alignTo(), D(), GET_VERSION, N, llvm::support::endian::readNext(), readValueProfilingData(), llvm::IndexedInstrProf::Version1, llvm::IndexedInstrProf::Version10, llvm::IndexedInstrProf::Version14, and llvm::IndexedInstrProf::Version2.
|
inline |
Definition at line 555 of file InstrProfReader.h.
|
inlinestatic |
Definition at line 545 of file InstrProfReader.h.
References D(), and llvm::support::endian::readNext().
| bool InstrProfLookupTrait::readValueProfilingData | ( | const unsigned char *& | D, |
| const unsigned char *const | End ) |
Definition at line 1014 of file InstrProfReader.cpp.
References D(), llvm::Expected< T >::get(), and llvm::Expected< T >::takeError().
Referenced by ReadData().
|
inline |
Definition at line 565 of file InstrProfReader.h.