| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | SampleProfileProbe.h | 48 uint64_t FunctionHash; variable 52 : FunctionGUID(GUID), FunctionHash(Hash) {} in PseudoProbeDescriptor() 54 uint64_t getFunctionHash() const { return FunctionHash; } in getFunctionHash() 109 uint64_t getFunctionHash() const { return FunctionHash; } in getFunctionHash() 123 uint64_t FunctionHash; variable
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMappingReader.h | 37 uint64_t FunctionHash; member 169 uint64_t FunctionHash; member 175 uint64_t FunctionHash, StringRef CoverageMapping, in ProfileMappingRecord() 178 FunctionHash(FunctionHash), CoverageMapping(CoverageMapping), in ProfileMappingRecord()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.h | 35 uint64_t FunctionHash; variable 45 NumRegionCounters(0), FunctionHash(0), CurrentRegionCount(0) {}
|
| H A D | CodeGenPGO.cpp | 861 FunctionHash = Walker.Hash.finalize(); in mapRegionCounters() 902 FuncNameVar, FuncName, FunctionHash, CoverageMapping); in emitCounterRegionMapping() 924 FuncNameVar, FuncName, FunctionHash, CoverageMapping, false); in emitEmptyCounterMapping() 961 Builder.getInt64(FunctionHash), in emitCounterIncrement() 999 Builder.getInt64(FunctionHash), in valueProfile() 1034 PGOReader->getInstrProfRecord(FuncName, FunctionHash); in loadRegionCounts()
|
| H A D | CoverageMappingGen.h | 132 uint64_t FunctionHash,
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | PGOInstrumentation.cpp | 508 uint64_t FunctionHash = 0; member in __anoncdb75a9b0211::FuncPGOInstrumentation 530 Twine(FunctionHash) + "\t" + Str); in dumpInfo() 624 FunctionHash &= 0x0FFFFFFFFFFFFFFF; in computeCFGHash() 626 NamedInstrProfRecord::setCSFlagInHash(FunctionHash); in computeCFGHash() 636 LLVM_DEBUG(dbgs() << ", Hash = " << FunctionHash << "\n";); in computeCFGHash() 674 Twine(F.getName() + "." + Twine(FunctionHash)).str(); in renameComdatFunction() 677 FuncName = Twine(FuncName + "." + Twine(FunctionHash)).str(); in renameComdatFunction() 841 FuncInfo.FunctionHash); in instrumentOneFunc() 872 FuncInfo.FunctionHash); in instrumentOneFunc() 915 Builder.getInt64(FuncInfo.FunctionHash), ToProfile, in instrumentOneFunc() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | FunctionComparator.h | 104 using FunctionHash = uint64_t; variable 105 static FunctionHash functionHash(Function &);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | SampleProfileProbe.cpp | 243 FunctionHash = (uint64_t)CallProbeIds.size() << 48 | in computeCFGHash() 246 FunctionHash &= 0x0FFFFFFFFFFFFFFF; in computeCFGHash() 247 assert(FunctionHash && "Function checksum should not be zero"); in computeCFGHash() 252 << ", Hash = " << FunctionHash << "\n"); in computeCFGHash()
|
| H A D | MergeFunctions.cpp | 176 FunctionComparator::FunctionHash Hash; 184 FunctionComparator::FunctionHash getHash() const { return Hash; } in getHash() 421 std::vector<std::pair<FunctionComparator::FunctionHash, Function *>> in runOnModule()
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | SampleProf.h | 941 if (FunctionHash == 0) { 943 FunctionHash = Other.getFunctionHash(); 944 } else if (FunctionHash != Other.getFunctionHash()) { 1010 void setFunctionHash(uint64_t Hash) { FunctionHash = Hash; } 1012 uint64_t getFunctionHash() const { return FunctionHash; } 1142 uint64_t FunctionHash = 0;
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | SampleProfReader.cpp | 106 static bool parseMetadata(const StringRef &Input, uint64_t &FunctionHash, in parseMetadata() argument 110 return !CFGInfo.getAsInteger(10, FunctionHash); in parseMetadata() 143 uint64_t &FunctionHash, uint32_t &Attributes) { in ParseLine() argument 151 return parseMetadata(Input.substr(Depth), FunctionHash, Attributes); in ParseLine() 295 uint64_t FunctionHash = 0; in readImpl() local 298 Discriminator, FName, TargetCountMap, FunctionHash, in readImpl() 344 if (FunctionHash) { in readImpl() 345 FProfile.setFunctionHash(FunctionHash); in readImpl()
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/Coverage/ |
| H A D | CoverageMappingReader.cpp | 583 OldRecord.FunctionHash, OldRecord.CoverageMapping); in insertFunctionRecordIfNeeded() 595 OldRecord.FunctionHash = FuncHash; in insertFunctionRecordIfNeeded() 1171 Record.FunctionHash = R.FunctionHash; in readNextRecord()
|
| H A D | CoverageMapping.cpp | 248 Record.FunctionHash, Counts)) { in loadFunctionRecord() 252 Record.FunctionHash); in loadFunctionRecord()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 954 FunctionComparator::FunctionHash FunctionComparator::functionHash(Function &F) { in functionHash()
|
| /llvm-project-15.0.7/llvm/unittests/ProfileData/ |
| H A D | CoverageMappingTest.cpp | 80 Record.FunctionHash = Hash; in fillCoverageMappingRecord()
|