Home
last modified time | relevance | path

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

/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() function
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/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/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()