|
LLVM
4.0.0
|
Trait for lookups into the on-disk hash table for the binary instrprof format. More...
#include <InstrProfReader.h>
Public Types | |
| typedef ArrayRef< InstrProfRecord > | data_type |
| typedef StringRef | internal_key_type |
| typedef StringRef | external_key_type |
| typedef uint64_t | hash_value_type |
| typedef uint64_t | offset_type |
Public Member Functions | |
| InstrProfLookupTrait (IndexedInstrProf::HashT HashType, unsigned FormatVersion) | |
| hash_value_type | ComputeHash (StringRef K) |
| StringRef | ReadKey (const unsigned char *D, offset_type N) |
| bool | readValueProfilingData (const unsigned char *&D, const unsigned char *const End) |
| data_type | ReadData (StringRef K, const unsigned char *D, offset_type N) |
| void | setValueProfDataEndianness (support::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 257 of file InstrProfReader.h.
Definition at line 271 of file InstrProfReader.h.
Definition at line 274 of file InstrProfReader.h.
| typedef uint64_t llvm::InstrProfLookupTrait::hash_value_type |
Definition at line 275 of file InstrProfReader.h.
Definition at line 273 of file InstrProfReader.h.
| typedef uint64_t llvm::InstrProfLookupTrait::offset_type |
Definition at line 276 of file InstrProfReader.h.
|
inline |
Definition at line 267 of file InstrProfReader.h.
| InstrProfLookupTrait::hash_value_type InstrProfLookupTrait::ComputeHash | ( | StringRef | K | ) |
Definition at line 462 of file InstrProfReader.cpp.
References llvm::IndexedInstrProf::ComputeHash().
Definition at line 278 of file InstrProfReader.h.
References B.
Definition at line 280 of file InstrProfReader.h.
Definition at line 279 of file InstrProfReader.h.
| data_type InstrProfLookupTrait::ReadData | ( | StringRef | K, |
| const unsigned char * | D, | ||
| offset_type | N | ||
| ) |
Definition at line 483 of file InstrProfReader.cpp.
References D, llvm::WebAssembly::End, fuzzer::Hash(), N, readValueProfilingData(), llvm::coverage::Version1, and llvm::coverage::Version2.
|
inline |
Definition at line 292 of file InstrProfReader.h.
|
inlinestatic |
Definition at line 285 of file InstrProfReader.h.
References D.
| bool InstrProfLookupTrait::readValueProfilingData | ( | const unsigned char *& | D, |
| const unsigned char *const | End | ||
| ) |
Definition at line 469 of file InstrProfReader.cpp.
References llvm::Expected< T >::get(), and llvm::Expected< T >::takeError().
Referenced by ReadData().
|
inline |
Definition at line 301 of file InstrProfReader.h.
1.8.6