Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/ProfileData/
DInstrProfReader.h34 InstrProfRecord> {
36 InstrProfRecord Record;
46 InstrProfRecord &operator*() { return Record; }
47 InstrProfRecord *operator->() { return &Record; }
62 virtual Error readNextRecord(InstrProfRecord &Record) = 0;
132 Error readValueProfileData(InstrProfRecord &Record);
147 Error readNextRecord(InstrProfRecord &Record) override;
185 InstrProfRecord::ValueMapType FunctionPtrToNameMap;
195 Error readNextRecord(InstrProfRecord &Record) override;
225 Error readName(InstrProfRecord &Record);
[all …]
DInstrProf.h243 struct InstrProfRecord;
249 const InstrProfRecord &InstrProfR,
572 struct InstrProfRecord { struct
573 InstrProfRecord() : SIPE() {} in InstrProfRecord() argument
574 InstrProfRecord(StringRef Name, uint64_t Hash, std::vector<uint64_t> Counts) in InstrProfRecord() argument
614 void merge(InstrProfRecord &Other, uint64_t Weight = 1);
654 const_cast<const InstrProfRecord *>(this) in getValueSitesForKind() argument
664 void mergeValueProfData(uint32_t ValueKind, InstrProfRecord &Src,
670 uint32_t InstrProfRecord::getNumValueKinds() const { in getNumValueKinds()
677 uint32_t InstrProfRecord::getNumValueData(uint32_t ValueKind) const { in getNumValueData()
[all …]
DInstrProfWriter.h32 typedef SmallDenseMap<uint64_t, InstrProfRecord, 1> ProfilingData;
49 Error addRecord(InstrProfRecord &&I, uint64_t Weight = 1);
55 static void writeRecordInText(const InstrProfRecord &Record,
DProfileCommon.h36 struct InstrProfRecord;
78 void addRecord(const InstrProfRecord &);
DInstrProfData.inc280 void deserializeTo(InstrProfRecord &Record,
281 InstrProfRecord::ValueMapType *VMap);
324 static uint32_t getSize(const InstrProfRecord &Record);
329 serializeFrom(const InstrProfRecord &Record);
358 void deserializeTo(InstrProfRecord &Record,
359 InstrProfRecord::ValueMapType *VMap);
366 * - InstrProfRecord which is the primary data structure used to
376 * in class InstrProfRecord.
/external/llvm/unittests/ProfileData/
DInstrProfTest.cpp73 InstrProfRecord Record("foo", 0x1234, {1, 2, 3, 4}); in TEST_P()
91 InstrProfRecord Record1("foo", 0x1234, {1, 2}); in TEST_P()
92 InstrProfRecord Record2("foo", 0x1235, {3, 4}); in TEST_P()
98 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("foo", 0x1234); in TEST_P()
118 InstrProfRecord Record1("foo", 0x1234, {1, 2}); in TEST_P()
119 InstrProfRecord Record2("foo", 0x1235, {3, 4}); in TEST_P()
145 InstrProfRecord Record1("func1", 0x1234, {97531}); in TEST_F()
146 InstrProfRecord Record2("func2", 0x1234, {0, 0}); in TEST_F()
147 InstrProfRecord Record3("func3", 0x1234, in TEST_F()
151 InstrProfRecord Record4("func4", 0x1234, {0}); in TEST_F()
[all …]
DCoverageMappingTest.cpp269 InstrProfRecord Record("func", 0x1234, {0}); in TEST_P()
291 InstrProfRecord RecordFunc1("func1", 0x1234, {10}); in TEST_P()
293 InstrProfRecord RecordFunc2("func2", 0x2345, {20}); in TEST_P()
338 InstrProfRecord Record("func", 0x1234, {30, 20, 10, 0}); in TEST_P()
387 InstrProfRecord Record("func", 0x1234, {10, 20, 30}); in TEST_P()
407 InstrProfRecord Record("func", 0x1234, {10, 20, 40}); in TEST_P()
428 InstrProfRecord Record1("func", 0x1234, {10, 20}); in TEST_P()
429 InstrProfRecord Record2("func", 0x1234, {0, 0}); in TEST_P()
451 InstrProfRecord Record("func", 0x1234, {2, 3, 7}); in TEST_P()
473 InstrProfRecord Record("file1:func", 0x1234, {0}); in TEST_P()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProf.h51 struct InstrProfRecord;
246 const InstrProfRecord &InstrProfR,
622 struct InstrProfRecord { struct
625 InstrProfRecord() = default; argument
626 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord() argument
627 InstrProfRecord(InstrProfRecord &&) = default;
628 InstrProfRecord(const InstrProfRecord &RHS) in InstrProfRecord() argument
633 InstrProfRecord &operator=(InstrProfRecord &&) = default; argument
634 InstrProfRecord &operator=(const InstrProfRecord &RHS) {
684 void merge(InstrProfRecord &Other, uint64_t Weight,
[all …]
DInstrProfWriter.h36 using ProfilingData = SmallDenseMap<uint64_t, InstrProfRecord>;
71 const InstrProfRecord &Counters,
94 void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
DInstrProfReader.h147 Error readValueProfileData(InstrProfRecord &Record);
246 Error readRawCounts(InstrProfRecord &Record);
247 Error readValueProfilingData(InstrProfRecord &Record);
425 Expected<InstrProfRecord> getInstrProfRecord(StringRef FuncName,
DProfileCommon.h78 void addRecord(const InstrProfRecord &);
DInstrProfData.inc317 void deserializeTo(InstrProfRecord &Record,
361 static uint32_t getSize(const InstrProfRecord &Record);
366 serializeFrom(const InstrProfRecord &Record);
395 void deserializeTo(InstrProfRecord &Record,
403 * - InstrProfRecord which is the primary data structure used to
413 * in class InstrProfRecord.
/external/llvm/lib/ProfileData/
DInstrProf.cpp371 void InstrProfRecord::mergeValueProfData(uint32_t ValueKind, in mergeValueProfData()
372 InstrProfRecord &Src, in mergeValueProfData()
388 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight) { in merge()
408 void InstrProfRecord::scaleValueProfData(uint32_t ValueKind, uint64_t Weight) { in scaleValueProfData()
416 void InstrProfRecord::scale(uint64_t Weight) { in scale()
428 uint64_t InstrProfRecord::remapValue(uint64_t Value, uint32_t ValueKind, in remapValue()
452 void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site, in addValueData()
475 return reinterpret_cast<const InstrProfRecord *>(Record)->getNumValueKinds(); in getNumValueKindsInstrProf()
479 return reinterpret_cast<const InstrProfRecord *>(Record) in getNumValueSitesInstrProf()
484 return reinterpret_cast<const InstrProfRecord *>(Record) in getNumValueDataInstrProf()
[all …]
DInstrProfReader.cpp139 TextInstrProfReader::readValueProfileData(InstrProfRecord &Record) { in readValueProfileData()
202 Error TextInstrProfReader::readNextRecord(InstrProfRecord &Record) { in readNextRecord()
357 Error RawInstrProfReader<IntPtrT>::readName(InstrProfRecord &Record) { in readName()
363 Error RawInstrProfReader<IntPtrT>::readFuncHash(InstrProfRecord &Record) { in readFuncHash()
370 InstrProfRecord &Record) { in readRawCounts()
397 InstrProfRecord &Record) { in readValueProfilingData()
426 Error RawInstrProfReader<IntPtrT>::readNextRecord(InstrProfRecord &Record) { in readNextRecord()
528 StringRef FuncName, ArrayRef<InstrProfRecord> &Data) { in getRecords()
542 ArrayRef<InstrProfRecord> &Data) { in getRecords()
677 Expected<InstrProfRecord>
[all …]
DInstrProfWriter.cpp104 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()
125 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()
159 Error InstrProfWriter::addRecord(InstrProfRecord &&I, uint64_t Weight) { in addRecord()
165 ProfileDataMap.insert(std::make_pair(I.Hash, InstrProfRecord())); in addRecord()
166 InstrProfRecord &Dest = Where->second; in addRecord()
189 const InstrProfRecord &IPR = Func.second; in shouldEncodeData()
297 void InstrProfWriter::writeRecordInText(const InstrProfRecord &Func, in writeRecordInText()
DProfileSummaryBuilder.cpp36 void InstrProfSummaryBuilder::addRecord(const InstrProfRecord &R) { in addRecord()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DInstrProf.cpp517 void InstrProfRecord::mergeValueProfData( in mergeValueProfData()
518 uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight, in mergeValueProfData()
536 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight, in merge()
557 void InstrProfRecord::scaleValueProfData( in scaleValueProfData()
564 void InstrProfRecord::scale(uint64_t Weight, in scale()
577 uint64_t InstrProfRecord::remapValue(uint64_t Value, uint32_t ValueKind, in remapValue()
588 void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site, in addValueData()
611 return reinterpret_cast<const InstrProfRecord *>(Record)->getNumValueKinds(); in getNumValueKindsInstrProf()
615 return reinterpret_cast<const InstrProfRecord *>(Record) in getNumValueSitesInstrProf()
620 return reinterpret_cast<const InstrProfRecord *>(Record) in getNumValueDataInstrProf()
[all …]
DInstrProfWriter.cpp123 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()
145 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()
188 InstrProfRecord &&I, uint64_t Weight, in addRecord()
195 ProfileDataMap.insert(std::make_pair(Hash, InstrProfRecord())); in addRecord()
196 InstrProfRecord &Dest = Where->second; in addRecord()
226 const InstrProfRecord &IPR = Func.second; in shouldEncodeData()
336 const InstrProfRecord &Func, in writeRecordInText()
DInstrProfReader.cpp159 TextInstrProfReader::readValueProfileData(InstrProfRecord &Record) { in readValueProfileData()
392 InstrProfRecord &Record) { in readRawCounts()
419 InstrProfRecord &Record) { in readValueProfilingData()
706 Expected<InstrProfRecord>
726 Expected<InstrProfRecord> Record = getInstrProfRecord(FuncName, FuncHash); in getFunctionCounts()
DProfileSummaryBuilder.cpp35 void InstrProfSummaryBuilder::addRecord(const InstrProfRecord &R) { in addRecord()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ProfileData/
DInstrProfTest.cpp95 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("foo", 0x1234); in TEST_P()
211 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("func1", 0x1234); in TEST_F()
252 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P()
283 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P()
392 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P()
442 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P()
519 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P()
606 Expected<InstrProfRecord> ReadRecord1 = in TEST_P()
611 Expected<InstrProfRecord> ReadRecord2 = in TEST_P()
658 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234); in TEST_P()
[all …]
/external/compiler-rt/lib/profile/
DInstrProfData.inc280 void deserializeTo(InstrProfRecord &Record,
281 InstrProfRecord::ValueMapType *VMap);
324 static uint32_t getSize(const InstrProfRecord &Record);
329 serializeFrom(const InstrProfRecord &Record);
358 void deserializeTo(InstrProfRecord &Record,
359 InstrProfRecord::ValueMapType *VMap);
366 * - InstrProfRecord which is the primary data structure used to
376 * in class InstrProfRecord.
/external/clang/lib/CodeGen/
DCodeGenPGO.h42 std::unique_ptr<llvm::InstrProfRecord> ProfRecord;
DCodeGenPGO.cpp805 llvm::Expected<llvm::InstrProfRecord> RecordExpected = in loadRegionCounts()
819 llvm::make_unique<llvm::InstrProfRecord>(std::move(RecordExpected.get())); in loadRegionCounts()
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp483 InstrProfRecord &getProfileRecord() { return ProfileRecord; } in getProfileRecord()
501 InstrProfRecord ProfileRecord;
589 Expected<InstrProfRecord> Result = in readCounters()

12