Home
last modified time | relevance | path

Searched refs:CoverageMapping (Results 1 – 25 of 63) sorted by relevance

123

/external/llvm-project/llvm/tools/llvm-cov/
DCoverageFilters.h24 class CoverageMapping; variable
34 virtual bool matches(const coverage::CoverageMapping &CM, in matches()
52 bool matches(const coverage::CoverageMapping &CM,
63 bool matches(const coverage::CoverageMapping &CM,
78 bool matches(const coverage::CoverageMapping &CM,
115 bool matches(const coverage::CoverageMapping &CM,
127 bool matches(const coverage::CoverageMapping &CM,
144 bool matches(const coverage::CoverageMapping &CM,
155 bool matches(const coverage::CoverageMapping &CM,
DCoverageFilters.cpp21 const coverage::CoverageMapping &, in matches() argument
28 const coverage::CoverageMapping &, in matches() argument
38 const coverage::CoverageMapping &, in matches() argument
44 const coverage::CoverageMapping &CM, in matches()
51 const coverage::CoverageMapping &CM, in matches()
61 bool CoverageFilters::matches(const coverage::CoverageMapping &CM, in matches()
79 const coverage::CoverageMapping &CM, in matches()
DCoverageExporter.h27 const coverage::CoverageMapping &Coverage;
35 CoverageExporter(const coverage::CoverageMapping &CoverageMapping, in CoverageExporter() argument
37 : Coverage(CoverageMapping), Options(Options), OS(OS) {} in CoverageExporter()
DCoverageReport.h25 const coverage::CoverageMapping &Coverage;
33 const coverage::CoverageMapping &Coverage) in CoverageReport()
41 prepareFileReports(const coverage::CoverageMapping &Coverage,
48 const coverage::CoverageMapping *Coverage,
DCoverageExporterLcov.h22 CoverageExporterLcov(const coverage::CoverageMapping &CoverageMapping, in CoverageExporterLcov() argument
24 : CoverageExporter(CoverageMapping, Options, OS) {} in CoverageExporterLcov()
DCoverageExporterJson.h22 CoverageExporterJson(const coverage::CoverageMapping &CoverageMapping, in CoverageExporterJson() argument
24 : CoverageExporter(CoverageMapping, Options, OS) {} in CoverageExporterJson()
DCodeCoverage.cpp49 void exportCoverageDataToJson(const coverage::CoverageMapping &CoverageMapping,
89 const CoverageMapping &Coverage);
94 const CoverageMapping &Coverage);
98 createSourceFileView(StringRef SourceFile, const CoverageMapping &Coverage);
101 std::unique_ptr<CoverageMapping> load();
105 void remapPathNames(const CoverageMapping &Coverage);
108 void removeUnmappedInputs(const CoverageMapping &Coverage);
111 void demangleSymbols(const CoverageMapping &Coverage);
114 void writeSourceFileView(StringRef SourceFile, CoverageMapping *Coverage,
260 const CoverageMapping &Coverage) { in attachExpansionSubViews()
[all …]
DTestingSupport.cpp50 SectionRef ProfileNames, CoverageMapping; in convertForTestingMain() local
66 CoverageMapping = Section; in convertForTestingMain()
78 if (Expected<StringRef> E = CoverageMapping.getContents()) in convertForTestingMain()
DCoverageExporterLcov.cpp79 void renderFile(raw_ostream &OS, const coverage::CoverageMapping &Coverage, in renderFile()
100 void renderFiles(raw_ostream &OS, const coverage::CoverageMapping &Coverage, in renderFiles()
/external/llvm/tools/llvm-cov/
DTestingSupport.cpp50 SectionRef ProfileNames, CoverageMapping; in convertForTestingMain() local
58 CoverageMapping = Section; in convertForTestingMain()
70 if (CoverageMapping.getContents(CoverageMappingData) || in convertForTestingMain()
DCoverageReport.h25 std::unique_ptr<coverage::CoverageMapping> Coverage;
32 std::unique_ptr<coverage::CoverageMapping> Coverage) in CoverageReport()
DCodeCoverage.cpp70 CoverageMapping &Coverage);
74 createFunctionView(const FunctionRecord &Function, CoverageMapping &Coverage);
78 createSourceFileView(StringRef SourceFile, CoverageMapping &Coverage);
81 std::unique_ptr<CoverageMapping> load();
174 CoverageMapping &Coverage) { in attachExpansionSubViews()
196 CoverageMapping &Coverage) { in createFunctionView()
214 CoverageMapping &Coverage) { in createSourceFileView()
258 std::unique_ptr<CoverageMapping> CodeCoverageTool::load() { in load()
261 auto CoverageOrErr = CoverageMapping::load(ObjectFilename, PGOFilename, in load()
/external/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp186 Expected<std::unique_ptr<CoverageMapping>>
187 CoverageMapping::load(CoverageMappingReader &CoverageReader, in load()
189 auto Coverage = std::unique_ptr<CoverageMapping>(new CoverageMapping()); in load()
236 Expected<std::unique_ptr<CoverageMapping>>
237 CoverageMapping::load(StringRef ObjectFilename, StringRef ProfileFilename, in load()
413 std::vector<StringRef> CoverageMapping::getUniqueSourceFiles() const { in getUniqueSourceFiles()
459 CoverageData CoverageMapping::getCoverageForFile(StringRef Filename) const { in getCoverageForFile()
481 CoverageMapping::getInstantiations(StringRef Filename) { in getInstantiations()
501 CoverageMapping::getCoverageForFunction(const FunctionRecord &Function) { in getCoverageForFunction()
522 CoverageMapping::getCoverageForExpansion(const ExpansionRecord &Expansion) { in getCoverageForExpansion()
DCoverageMappingReader.cpp411 OldRecord.FunctionHash, OldRecord.CoverageMapping); in insertFunctionRecordIfNeeded()
423 OldRecord.CoverageMapping = Mapping; in insertFunctionRecordIfNeeded()
544 StringRef &CoverageMapping, in loadTestingFormat() argument
571 CoverageMapping = Data.substr(ProfileNamesSize); in loadTestingFormat()
573 if (CoverageMapping.size() < 1) in loadTestingFormat()
575 size_t Pad = alignmentAdjustment(CoverageMapping.data(), 8); in loadTestingFormat()
576 if (CoverageMapping.size() < Pad) in loadTestingFormat()
578 CoverageMapping = CoverageMapping.substr(Pad); in loadTestingFormat()
595 StringRef &CoverageMapping, in loadBinaryFormat() argument
635 if (auto EC = CoverageSection->getContents(CoverageMapping)) in loadBinaryFormat()
[all …]
/external/llvm/include/llvm/ProfileData/Coverage/
DCoverageMappingReader.h156 StringRef CoverageMapping; member
161 uint64_t FunctionHash, StringRef CoverageMapping, in ProfileMappingRecord()
164 FunctionHash(FunctionHash), CoverageMapping(CoverageMapping), in ProfileMappingRecord()
DCoverageMapping.h79 class CoverageMapping; variable
407 friend class CoverageMapping; variable
433 class CoverageMapping {
437 CoverageMapping() : MismatchedFunctionCount(0) {} in CoverageMapping() function
441 static Expected<std::unique_ptr<CoverageMapping>>
446 static Expected<std::unique_ptr<CoverageMapping>>
/external/llvm-project/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp197 ArrayRef<unsigned> CoverageMapping::getImpreciseRecordIndicesForFilename( in getImpreciseRecordIndicesForFilename()
206 Error CoverageMapping::loadFunctionRecord( in loadFunctionRecord()
279 Expected<std::unique_ptr<CoverageMapping>> CoverageMapping::load( in load()
282 auto Coverage = std::unique_ptr<CoverageMapping>(new CoverageMapping()); in load()
307 Expected<std::unique_ptr<CoverageMapping>>
308 CoverageMapping::load(ArrayRef<StringRef> ObjectFilenames, in load()
611 std::vector<StringRef> CoverageMapping::getUniqueSourceFiles() const { in getUniqueSourceFiles()
657 CoverageData CoverageMapping::getCoverageForFile(StringRef Filename) const { in getCoverageForFile()
684 CoverageMapping::getInstantiationGroups(StringRef Filename) const { in getInstantiationGroups()
709 CoverageMapping::getCoverageForFunction(const FunctionRecord &Function) const { in getCoverageForFunction()
[all …]
DCoverageMappingReader.cpp539 OldRecord.FunctionHash, OldRecord.CoverageMapping); in insertFunctionRecordIfNeeded()
552 OldRecord.CoverageMapping = Mapping; in insertFunctionRecordIfNeeded()
839 StringRef CoverageMapping = Data.substr(ProfileNamesSize); in loadTestingFormat() local
841 if (CoverageMapping.empty()) in loadTestingFormat()
843 size_t Pad = offsetToAlignedAddr(CoverageMapping.data(), Align(8)); in loadTestingFormat()
844 if (CoverageMapping.size() < Pad) in loadTestingFormat()
846 CoverageMapping = CoverageMapping.substr(Pad); in loadTestingFormat()
848 CoverageMapping, "", std::move(ProfileNames), BytesInAddress, Endian); in loadTestingFormat()
921 StringRef CoverageMapping = CoverageMappingOrErr.get(); in loadBinaryFormat() local
949 CoverageMapping, std::move(FuncRecords), std::move(ProfileNames), in loadBinaryFormat()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp197 ArrayRef<unsigned> CoverageMapping::getImpreciseRecordIndicesForFilename( in getImpreciseRecordIndicesForFilename()
206 Error CoverageMapping::loadFunctionRecord( in loadFunctionRecord()
278 Expected<std::unique_ptr<CoverageMapping>> CoverageMapping::load( in load()
281 auto Coverage = std::unique_ptr<CoverageMapping>(new CoverageMapping()); in load()
306 Expected<std::unique_ptr<CoverageMapping>>
307 CoverageMapping::load(ArrayRef<StringRef> ObjectFilenames, in load()
602 std::vector<StringRef> CoverageMapping::getUniqueSourceFiles() const { in getUniqueSourceFiles()
648 CoverageData CoverageMapping::getCoverageForFile(StringRef Filename) const { in getCoverageForFile()
675 CoverageMapping::getInstantiationGroups(StringRef Filename) const { in getInstantiationGroups()
700 CoverageMapping::getCoverageForFunction(const FunctionRecord &Function) const { in getCoverageForFunction()
[all …]
DCoverageMappingReader.cpp446 OldRecord.FunctionHash, OldRecord.CoverageMapping); in insertFunctionRecordIfNeeded()
458 OldRecord.CoverageMapping = Mapping; in insertFunctionRecordIfNeeded()
647 StringRef CoverageMapping = Data.substr(ProfileNamesSize); in loadTestingFormat() local
649 if (CoverageMapping.empty()) in loadTestingFormat()
651 size_t Pad = offsetToAlignedAddr(CoverageMapping.data(), Align(8)); in loadTestingFormat()
652 if (CoverageMapping.size() < Pad) in loadTestingFormat()
654 CoverageMapping = CoverageMapping.substr(Pad); in loadTestingFormat()
656 CoverageMapping, std::move(ProfileNames), BytesInAddress, Endian); in loadTestingFormat()
817 R.CoverageMapping, in readNextRecord()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/Coverage/
DCoverageMapping.h422 friend class CoverageMapping; variable
479 friend class CoverageMapping; variable
513 class CoverageMapping {
519 CoverageMapping() = default;
533 CoverageMapping(const CoverageMapping &) = delete;
534 CoverageMapping &operator=(const CoverageMapping &) = delete;
537 static Expected<std::unique_ptr<CoverageMapping>>
544 static Expected<std::unique_ptr<CoverageMapping>>
DCoverageMappingReader.h179 StringRef CoverageMapping; member
184 uint64_t FunctionHash, StringRef CoverageMapping, in ProfileMappingRecord()
187 FunctionHash(FunctionHash), CoverageMapping(CoverageMapping), in ProfileMappingRecord()
/external/llvm-project/llvm/include/llvm/ProfileData/Coverage/
DCoverageMappingReader.h165 StringRef CoverageMapping; member
170 uint64_t FunctionHash, StringRef CoverageMapping, in ProfileMappingRecord()
173 FunctionHash(FunctionHash), CoverageMapping(CoverageMapping), in ProfileMappingRecord()
DCoverageMapping.h424 friend class CoverageMapping; variable
481 friend class CoverageMapping; variable
515 class CoverageMapping {
521 CoverageMapping() = default;
535 CoverageMapping(const CoverageMapping &) = delete;
536 CoverageMapping &operator=(const CoverageMapping &) = delete;
539 static Expected<std::unique_ptr<CoverageMapping>>
546 static Expected<std::unique_ptr<CoverageMapping>>
891 return StringRef(&CoverageMapping, getDataSize<Endian>()); in getCoverageMapping()
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp636 if (CGM.getCodeGenOpts().CoverageMapping) in assignRegionCounters()
676 std::string CoverageMapping; in emitCounterRegionMapping() local
677 llvm::raw_string_ostream OS(CoverageMapping); in emitCounterRegionMapping()
684 if (CoverageMapping.empty()) in emitCounterRegionMapping()
688 FuncNameVar, FuncName, FunctionHash, CoverageMapping); in emitCounterRegionMapping()
697 std::string CoverageMapping; in emitEmptyCounterMapping() local
698 llvm::raw_string_ostream OS(CoverageMapping); in emitEmptyCounterMapping()
705 if (CoverageMapping.empty()) in emitEmptyCounterMapping()
710 FuncNameVar, FuncName, FunctionHash, CoverageMapping, false); in emitEmptyCounterMapping()

123