| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | InstrProf.h | 52 struct InstrProfRecord; 248 const InstrProfRecord &InstrProfR, 725 struct InstrProfRecord { struct 728 InstrProfRecord() = default; argument 730 InstrProfRecord(InstrProfRecord &&) = default; 731 InstrProfRecord(const InstrProfRecord &RHS) in InstrProfRecord() argument 736 InstrProfRecord &operator=(InstrProfRecord &&) = default; argument 737 InstrProfRecord &operator=(const InstrProfRecord &RHS) { 787 void merge(InstrProfRecord &Other, uint64_t Weight, 882 struct NamedInstrProfRecord : InstrProfRecord { [all …]
|
| H A D | InstrProfWriter.h | 38 using ProfilingData = SmallDenseMap<uint64_t, InstrProfRecord>; 92 Error validateRecord(const InstrProfRecord &Func); 96 const InstrProfRecord &Counters, 151 void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
|
| H A D | InstrProfReader.h | 204 Error readValueProfileData(InstrProfRecord &Record); 358 Error readRawCounts(InstrProfRecord &Record); 359 Error readValueProfilingData(InstrProfRecord &Record); 627 Expected<InstrProfRecord>
|
| H A D | ProfileCommon.h | 84 void addRecord(const InstrProfRecord &);
|
| H A D | InstrProfData.inc | 338 void deserializeTo(InstrProfRecord &Record, 382 static uint32_t getSize(const InstrProfRecord &Record); 387 serializeFrom(const InstrProfRecord &Record); 416 void deserializeTo(InstrProfRecord &Record, 424 * - InstrProfRecord which is the primary data structure used to 434 * in class InstrProfRecord.
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | InstrProf.cpp | 604 void InstrProfRecord::overlap(InstrProfRecord &Other, OverlapStats &Overlap, in overlap() 689 void InstrProfRecord::mergeValueProfData( in mergeValueProfData() 708 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight, in merge() 729 void InstrProfRecord::scaleValueProfData( in scaleValueProfData() 736 void InstrProfRecord::scale(uint64_t N, uint64_t D, in scale() 788 return reinterpret_cast<const InstrProfRecord *>(Record) in getNumValueSitesInstrProf() 793 return reinterpret_cast<const InstrProfRecord *>(Record) in getNumValueDataInstrProf() 799 return reinterpret_cast<const InstrProfRecord *>(R) in getNumValueDataForSiteInstrProf() 842 void ValueProfRecord::deserializeTo(InstrProfRecord &Record, in deserializeTo() 882 void ValueProfData::deserializeTo(InstrProfRecord &Record, in deserializeTo() [all …]
|
| H A D | InstrProfWriter.cpp | 128 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength() 150 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData() 214 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in overlapRecord() 219 InstrProfRecord &Dest = Where->second; in overlapRecord() 229 InstrProfRecord &&I, uint64_t Weight, in addRecord() 236 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in addRecord() 237 InstrProfRecord &Dest = Where->second; in addRecord() 307 const InstrProfRecord &IPR = Func.second; in shouldEncodeData() 525 Error InstrProfWriter::validateRecord(const InstrProfRecord &Func) { in validateRecord() 547 const InstrProfRecord &Func, in writeRecordInText() [all …]
|
| H A D | InstrProfReader.cpp | 195 TextInstrProfReader::readValueProfileData(InstrProfRecord &Record) { in readValueProfileData() 472 InstrProfRecord &Record) { in readRawCounts() 519 InstrProfRecord &Record) { in readValueProfilingData() 1029 Expected<InstrProfRecord> IndexedInstrProfReader::getInstrProfRecord( in getInstrProfRecord() 1115 Expected<InstrProfRecord> Record = getInstrProfRecord(FuncName, FuncHash); in getFunctionCounts()
|
| H A D | ProfileSummaryBuilder.cpp | 91 void InstrProfSummaryBuilder::addRecord(const InstrProfRecord &R) { in addRecord()
|
| /llvm-project-15.0.7/llvm/unittests/ProfileData/ |
| H A D | InstrProfTest.cpp | 99 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("foo", 0x1234); in TEST_P() 215 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("func1", 0x1234); in TEST_F() 396 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("func1", 0x1234); in TEST_F() 453 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P() 484 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P() 593 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P() 807 Expected<InstrProfRecord> ReadRecord1 = in TEST_P() 812 Expected<InstrProfRecord> ReadRecord2 = in TEST_P() 871 static void addValueProfData(InstrProfRecord &Record) { in addValueProfData() 895 InstrProfRecord SrcRecord({1ULL << 31, 2}); in TEST_P() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.h | 38 std::unique_ptr<llvm::InstrProfRecord> ProfRecord;
|
| H A D | CodeGenPGO.cpp | 1033 llvm::Expected<llvm::InstrProfRecord> RecordExpected = in loadRegionCounts() 1047 std::make_unique<llvm::InstrProfRecord>(std::move(RecordExpected.get())); in loadRegionCounts()
|
| /llvm-project-15.0.7/compiler-rt/include/profile/ |
| H A D | InstrProfData.inc | 338 void deserializeTo(InstrProfRecord &Record, 382 static uint32_t getSize(const InstrProfRecord &Record); 387 serializeFrom(const InstrProfRecord &Record); 416 void deserializeTo(InstrProfRecord &Record, 424 * - InstrProfRecord which is the primary data structure used to 434 * in class InstrProfRecord.
|
| /llvm-project-15.0.7/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 465 InstrProfRecord *ProfRecord; 466 InstrProfileEntry(InstrProfRecord *Record); 470 InstrProfileEntry::InstrProfileEntry(InstrProfRecord *Record) { in InstrProfileEntry() 489 InstrProfRecord *ProfRecord = IFE.ProfRecord; in updateInstrProfileEntry() 546 InstrProfRecord Record = PDV.second; in adjustInstrProfile() 555 InstrProfRecord *R = &PD.getValue().begin()->second; in adjustInstrProfile() 2089 static void traverseAllValueSites(const InstrProfRecord &Func, uint32_t VK, in traverseAllValueSites()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | PGOInstrumentation.cpp | 1044 InstrProfRecord &getProfileRecord() { return ProfileRecord; } in getProfileRecord() 1083 InstrProfRecord ProfileRecord; 1226 Expected<InstrProfRecord> Result = PGOReader->getInstrProfRecord( in readCounters()
|