Home
last modified time | relevance | path

Searched refs:InstrProfRecord (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h54 struct InstrProfRecord;
276 const InstrProfRecord &InstrProfR,
823 struct InstrProfRecord { struct
827 InstrProfRecord() = default; argument
828 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord() argument
829 InstrProfRecord(std::vector<uint64_t> Counts, in InstrProfRecord() function
832 InstrProfRecord(InstrProfRecord &&) = default;
833 InstrProfRecord(const InstrProfRecord &RHS) in InstrProfRecord() argument
838 InstrProfRecord &operator=(InstrProfRecord &&) = default; argument
839 InstrProfRecord &operator=(const InstrProfRecord &RHS) {
[all …]
H A DInstrProfWriter.h39 using ProfilingData = SmallDenseMap<uint64_t, InstrProfRecord>;
141 Error validateRecord(const InstrProfRecord &Func);
145 const InstrProfRecord &Counters,
208 void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
H A DInstrProfReader.h242 Error readValueProfileData(InstrProfRecord &Record);
435 Error readRawCounts(InstrProfRecord &Record);
436 Error readRawBitmapBytes(InstrProfRecord &Record);
437 Error readValueProfilingData(InstrProfRecord &Record);
765 Expected<InstrProfRecord>
H A DProfileCommon.h89 void addRecord(const InstrProfRecord &);
H A DInstrProfData.inc396 void deserializeTo(InstrProfRecord &Record,
440 static uint32_t getSize(const InstrProfRecord &Record);
445 serializeFrom(const InstrProfRecord &Record);
474 void deserializeTo(InstrProfRecord &Record,
482 * - InstrProfRecord which is the primary data structure used to
492 * in class InstrProfRecord.
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp727 void InstrProfRecord::accumulateCounts(CountSumOrPercent &Sum) const { in accumulateCounts()
776 void InstrProfRecord::overlapValueProfData(uint32_t ValueKind, in overlapValueProfData()
777 InstrProfRecord &Other, in overlapValueProfData()
794 void InstrProfRecord::overlap(InstrProfRecord &Other, OverlapStats &Overlap, in overlap()
886 void InstrProfRecord::mergeValueProfData( in mergeValueProfData()
887 uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight, in mergeValueProfData()
905 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight, in merge()
961 void InstrProfRecord::scaleValueProfData( in scaleValueProfData()
968 void InstrProfRecord::scale(uint64_t N, uint64_t D, in scale()
986 uint64_t InstrProfRecord::remapValue(uint64_t Value, uint32_t ValueKind, in remapValue()
[all …]
H A DInstrProfWriter.cpp133 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()
157 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()
232 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in overlapRecord()
237 InstrProfRecord &Dest = Where->second; in overlapRecord()
247 InstrProfRecord &&I, uint64_t Weight, in addRecord()
254 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in addRecord()
255 InstrProfRecord &Dest = Where->second; in addRecord()
416 const InstrProfRecord &IPR = Func.second; in shouldEncodeData()
1036 Error InstrProfWriter::validateRecord(const InstrProfRecord &Func) { in validateRecord()
1053 const InstrProfRecord &Func, in writeRecordInText()
[all …]
H A DProfileSummaryBuilder.cpp93 void InstrProfSummaryBuilder::addRecord(const InstrProfRecord &R) { in addRecord()
99 if (R.getCountPseudoKind() != InstrProfRecord::NotPseudo) in addRecord()
H A DInstrProfReader.cpp313 TextInstrProfReader::readValueProfileData(InstrProfRecord &Record) { in readValueProfileData()
688 InstrProfRecord &Record) { in readRawCounts()
755 Error RawInstrProfReader<IntPtrT>::readRawBitmapBytes(InstrProfRecord &Record) { in readRawBitmapBytes()
799 InstrProfRecord &Record) { in readValueProfilingData()
1482 Expected<InstrProfRecord> IndexedInstrProfReader::getInstrProfRecord( in getInstrProfRecord()
1644 Expected<InstrProfRecord> Record = getInstrProfRecord(FuncName, FuncHash); in getFunctionCounts()
1655 Expected<InstrProfRecord> Record = getInstrProfRecord(FuncName, FuncHash); in getFunctionBitmap()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1105 InstrProfRecord::CountPseudoKind &PseudoKind);
1135 InstrProfRecord &getProfileRecord() { return ProfileRecord; } in getProfileRecord()
1173 InstrProfRecord ProfileRecord;
1372 InstrProfRecord::CountPseudoKind &PseudoKind) { in readCounters()
1375 Expected<InstrProfRecord> Result = PGOReader->getInstrProfRecord( in readCounters()
1384 if (PseudoKind != InstrProfRecord::NotPseudo) { in readCounters()
1421 Expected<InstrProfRecord> Result = PGOReader->getInstrProfRecord( in populateCoverage()
2146 InstrProfRecord::CountPseudoKind PseudoKind = InstrProfRecord::NotPseudo; in annotateAllFunctions()
2156 if (PseudoKind != InstrProfRecord::NotPseudo) { in annotateAllFunctions()
2161 if (PseudoKind == InstrProfRecord::PseudoHot) in annotateAllFunctions()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.h40 std::unique_ptr<llvm::InstrProfRecord> ProfRecord;
H A DCodeGenPGO.cpp1411 llvm::Expected<llvm::InstrProfRecord> RecordExpected = in loadRegionCounts()
1425 std::make_unique<llvm::InstrProfRecord>(std::move(RecordExpected.get())); in loadRegionCounts()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp1012 InstrProfRecord *ProfRecord;
1013 InstrProfileEntry(InstrProfRecord *Record);
1017 InstrProfileEntry::InstrProfileEntry(InstrProfRecord *Record) { in InstrProfileEntry()
1039 InstrProfRecord *ProfRecord = IFE.ProfRecord; in updateInstrProfileEntry()
1051 (SetToHot ? InstrProfRecord::PseudoHot : InstrProfRecord::PseudoWarm); in updateInstrProfileEntry()
1271 InstrProfRecord Record = PDV.second; in adjustInstrProfile()
1280 InstrProfRecord *R = &PD.getValue().begin()->second; in adjustInstrProfile()
2700 static void traverseAllValueSites(const InstrProfRecord &Func, uint32_t VK, in traverseAllValueSites()
2820 if (PseudoKind != InstrProfRecord::NotPseudo) { in showInstrProfile()
2828 if (PseudoKind == InstrProfRecord::PseudoHot) in showInstrProfile()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/include/profile/
H A DInstrProfData.inc396 void deserializeTo(InstrProfRecord &Record,
440 static uint32_t getSize(const InstrProfRecord &Record);
445 serializeFrom(const InstrProfRecord &Record);
474 void deserializeTo(InstrProfRecord &Record,
482 * - InstrProfRecord which is the primary data structure used to
492 * in class InstrProfRecord.