Home
last modified time | relevance | path

Searched refs:IndexedInstrProf (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DInstrProfReader.cpp246 Value = IndexedInstrProf::ComputeHash(VD.first); in readValueProfileData()
633 return IndexedInstrProf::ComputeHash(HashType, K); in ComputeHash()
873 return Magic == IndexedInstrProf::Magic; in hasFormat()
879 using namespace IndexedInstrProf; in readSummary()
882 if (Version >= IndexedInstrProf::Version4) { in readSummary()
883 const IndexedInstrProf::Summary *SummaryInLE = in readSummary()
891 std::unique_ptr<IndexedInstrProf::Summary> SummaryData = in readSummary()
892 IndexedInstrProf::allocSummary(SummarySize); in readSummary()
943 const IndexedInstrProf::Header *Header = &HeaderOr.get(); in readHeader()
953 IndexedInstrProf::HashT HashType = static_cast<IndexedInstrProf::HashT>( in readHeader()
[all …]
H A DInstrProfWriter.cpp114 return IndexedInstrProf::ComputeHash(K); in ComputeHash()
314 static void setSummary(IndexedInstrProf::Summary *TheSummary, in setSummary()
316 using namespace IndexedInstrProf; in setSummary()
332 using namespace IndexedInstrProf; in writeImpl()
347 IndexedInstrProf::Header Header; in writeImpl()
348 Header.Magic = IndexedInstrProf::Magic; in writeImpl()
349 Header.Version = IndexedInstrProf::ProfVersion::CurrentVersion; in writeImpl()
368 int N = sizeof(IndexedInstrProf::Header) / sizeof(uint64_t); in writeImpl()
464 std::unique_ptr<IndexedInstrProf::Summary> TheSummary = in writeImpl()
465 IndexedInstrProf::allocSummary(SummarySize); in writeImpl()
[all …]
H A DInstrProf.cpp1307 namespace IndexedInstrProf { namespace
1334 if (Magic != IndexedInstrProf::Magic) in readFromBuffer()
1340 IndexedInstrProf::ProfVersion::CurrentVersion) in readFromBuffer()
1347 IndexedInstrProf::ProfVersion::CurrentVersion == Version8, in readFromBuffer()
1366 static_assert(IndexedInstrProf::ProfVersion::CurrentVersion == Version8, in size()
H A DInstrProfCorrelator.cpp168 maybeSwap<uint64_t>(IndexedInstrProf::ComputeHash(FunctionName)), in addProbe()
/llvm-project-15.0.7/llvm/unittests/ProfileData/
H A DInstrProfTest.cpp1040 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func2")); in TEST_P()
1042 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func3")); in TEST_P()
1044 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar1")); in TEST_P()
1046 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar2")); in TEST_P()
1048 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar3")); in TEST_P()
1052 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar4")); in TEST_P()
1054 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("foo4")); in TEST_P()
1075 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar1")); in TEST_P()
1077 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar2")); in TEST_P()
1079 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar3")); in TEST_P()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DInstrProfReader.h393 namespace IndexedInstrProf {
403 IndexedInstrProf::HashT HashType;
411 InstrProfLookupTrait(IndexedInstrProf::HashT HashType, unsigned FormatVersion) in InstrProfLookupTrait()
497 IndexedInstrProf::HashT HashType, uint64_t Version);
579 const unsigned char *readSummary(IndexedInstrProf::ProfVersion Version,
H A DInstrProf.h430 namespace IndexedInstrProf {
509 IndexedInstrProf::ComputeHash(FuncName), Ins.first->getKey())); in addFuncName()
981 namespace IndexedInstrProf {
H A DInstrProfData.inc74 IndexedInstrProf::ComputeHash(getPGOFuncNameVarInitializer(Inc->getName()))))
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp38 PGOReader ? PGOReader->getVersion() : llvm::IndexedInstrProf::Version); in setFuncName()
214 if (ProfileVersion >= llvm::IndexedInstrProf::Version7) in VisitBinaryOperator()
843 uint64_t ProfileVersion = llvm::IndexedInstrProf::Version; in mapRegionCounters()
H A DCoverageMappingGen.cpp1662 const uint64_t NameHash = llvm::IndexedInstrProf::ComputeHash(NameValue); in addFunctionMappingRecord()
1717 const int64_t FilenamesRef = llvm::IndexedInstrProf::ComputeHash(Filenames); in emit()
/llvm-project-15.0.7/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingReader.cpp651 llvm::IndexedInstrProf::ComputeHash(FilenameRegion); in readCoverageHeader()
/llvm-project-15.0.7/compiler-rt/include/profile/
H A DInstrProfData.inc74 IndexedInstrProf::ComputeHash(getPGOFuncNameVarInitializer(Inc->getName()))))