Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/
H A DInstrProf.h52 struct InstrProfRecord;
253 const InstrProfRecord &InstrProfR,
730 struct InstrProfRecord { struct
733 InstrProfRecord() = default; argument
734 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord() argument
735 InstrProfRecord(InstrProfRecord &&) = default;
736 InstrProfRecord(const InstrProfRecord &RHS) in InstrProfRecord() argument
741 InstrProfRecord &operator=(InstrProfRecord &&) = default; argument
742 InstrProfRecord &operator=(const InstrProfRecord &RHS) {
792 void merge(InstrProfRecord &Other, uint64_t Weight,
[all …]
H A DInstrProfWriter.h39 using ProfilingData = SmallDenseMap<uint64_t, InstrProfRecord>;
99 Error validateRecord(const InstrProfRecord &Func);
103 const InstrProfRecord &Counters,
158 void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
H A DInstrProfReader.h217 Error readValueProfileData(InstrProfRecord &Record);
390 Error readRawCounts(InstrProfRecord &Record);
391 Error readValueProfilingData(InstrProfRecord &Record);
670 Expected<InstrProfRecord>
H A DProfileCommon.h84 void addRecord(const InstrProfRecord &);
H A DInstrProfData.inc338 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.
/openbsd-src/gnu/llvm/llvm/lib/ProfileData/
H A DInstrProf.cpp535 void InstrProfRecord::accumulateCounts(CountSumOrPercent &Sum) const { in accumulateCounts()
586 void InstrProfRecord::overlapValueProfData(uint32_t ValueKind, in overlapValueProfData()
587 InstrProfRecord &Other, in overlapValueProfData()
604 void InstrProfRecord::overlap(InstrProfRecord &Other, OverlapStats &Overlap, in overlap()
689 void InstrProfRecord::mergeValueProfData( in mergeValueProfData()
690 uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight, in mergeValueProfData()
708 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight, in merge()
752 void InstrProfRecord::scaleValueProfData( in scaleValueProfData()
759 void InstrProfRecord::scale(uint64_t N, uint64_t D, in scale()
777 uint64_t InstrProfRecord::remapValue(uint64_t Value, uint32_t ValueKind, in remapValue()
[all …]
H A DInstrProfWriter.cpp129 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()
151 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()
215 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in overlapRecord()
220 InstrProfRecord &Dest = Where->second; in overlapRecord()
230 InstrProfRecord &&I, uint64_t Weight, in addRecord()
237 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in addRecord()
238 InstrProfRecord &Dest = Where->second; in addRecord()
316 const InstrProfRecord &IPR = Func.second; in shouldEncodeData()
583 Error InstrProfWriter::validateRecord(const InstrProfRecord &Func) { in validateRecord()
602 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.cpp280 TextInstrProfReader::readValueProfileData(InstrProfRecord &Record) { in readValueProfileData()
557 InstrProfRecord &Record) { in readRawCounts()
604 InstrProfRecord &Record) { in readValueProfilingData()
1097 Expected<InstrProfRecord> IndexedInstrProfReader::getInstrProfRecord( in getInstrProfRecord()
1182 Expected<InstrProfRecord> Record = getInstrProfRecord(FuncName, FuncHash); in getFunctionCounts()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenPGO.h39 std::unique_ptr<llvm::InstrProfRecord> ProfRecord;
H A DCodeGenPGO.cpp1036 llvm::Expected<llvm::InstrProfRecord> RecordExpected = in loadRegionCounts()
1050 std::make_unique<llvm::InstrProfRecord>(std::move(RecordExpected.get())); in loadRegionCounts()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1041 InstrProfRecord::CountPseudoKind &PseudoKind);
1071 InstrProfRecord &getProfileRecord() { return ProfileRecord; } in getProfileRecord()
1110 InstrProfRecord ProfileRecord;
1501 InstrProfRecord::CountPseudoKind &PseudoKind) { in readCounters()
1504 Expected<InstrProfRecord> Result = PGOReader->getInstrProfRecord( in readCounters()
1547 if (PseudoKind != InstrProfRecord::NotPseudo) { in readCounters()
2149 InstrProfRecord::CountPseudoKind PseudoKind = InstrProfRecord::NotPseudo; in annotateAllFunctions()
2159 if (PseudoKind != InstrProfRecord::NotPseudo) { in annotateAllFunctions()
2164 if (PseudoKind == InstrProfRecord::PseudoHot) in annotateAllFunctions()
/openbsd-src/gnu/llvm/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp481 InstrProfRecord *ProfRecord;
482 InstrProfileEntry(InstrProfRecord *Record);
486 InstrProfileEntry::InstrProfileEntry(InstrProfRecord *Record) { in InstrProfileEntry()
508 InstrProfRecord *ProfRecord = IFE.ProfRecord; in updateInstrProfileEntry()
520 (SetToHot ? InstrProfRecord::PseudoHot : InstrProfRecord::PseudoWarm); in updateInstrProfileEntry()
738 InstrProfRecord Record = PDV.second; in adjustInstrProfile()
747 InstrProfRecord *R = &PD.getValue().begin()->second; in adjustInstrProfile()
2313 static void traverseAllValueSites(const InstrProfRecord &Func, uint32_t VK, in traverseAllValueSites()
2441 if (PseudoKind != InstrProfRecord::NotPseudo) { in showInstrProfile()
2449 if (PseudoKind == InstrProfRecord::PseudoHot) in showInstrProfile()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/include/profile/
H A DInstrProfData.inc338 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.