Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/include/llvm/ProfileData/InstrProf.h
Show First 20 Lines • Show All 853 Lines • ▼ Show 20 Lines | enum ProfVersion { | ||||
// function structural hash. | // function structural hash. | ||||
Version2 = 2, | Version2 = 2, | ||||
// Version 3 supports value profile data. The value profile data is expected | // Version 3 supports value profile data. The value profile data is expected | ||||
// to follow the block counter profile data. | // to follow the block counter profile data. | ||||
Version3 = 3, | Version3 = 3, | ||||
// In this version, profile summary data \c IndexedInstrProf::Summary is | // In this version, profile summary data \c IndexedInstrProf::Summary is | ||||
// stored after the profile header. | // stored after the profile header. | ||||
Version4 = 4, | Version4 = 4, | ||||
// The current version is 4. | // In this version, the frontend PGO stable hash algorithm defaults to V2. | ||||
Version5 = 5, | |||||
// The current version is 5. | |||||
CurrentVersion = INSTR_PROF_INDEX_VERSION | CurrentVersion = INSTR_PROF_INDEX_VERSION | ||||
}; | }; | ||||
const uint64_t Version = ProfVersion::CurrentVersion; | const uint64_t Version = ProfVersion::CurrentVersion; | ||||
const HashT HashType = HashT::MD5; | const HashT HashType = HashT::MD5; | ||||
inline uint64_t ComputeHash(StringRef K) { return ComputeHash(HashType, K); } | inline uint64_t ComputeHash(StringRef K) { return ComputeHash(HashType, K); } | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |