Home | History | Annotate | Download | only in Coverage

Lines Matching defs:Coverage

1 //=-- CoverageMappingReader.cpp - Code coverage mapping reader ----*- C++ -*-=//
10 // This file contains support for reading coverage mapping data for
11 // instrumentation based coverage.
15 #include "llvm/ProfileData/Coverage/CoverageMappingReader.h"
26 using namespace coverage;
29 #define DEBUG_TYPE "coverage-mapping"
39 llvm_unreachable("Unexpected error in coverage mapping iterator");
298 // A dummy coverage mapping data consists of just one region with zero count.
353 // The interface to read coverage mapping function records for a module.
355 // \p Buf points to the buffer containing the \c CovHeader of the coverage
365 get(coverage::CovMapVersion Version, InstrProfSymtab &P,
370 // A class for reading coverage mapping function records for a module.
371 template <coverage::CovMapVersion Version, class IntPtrT,
374 typedef typename coverage::CovMapTraits<
376 typedef typename coverage::CovMapTraits<Version, IntPtrT>::NameRefType
389 // In addition, prefer records with real coverage mapping data to dummy
442 auto CovHeader = reinterpret_cast<const coverage::CovMapHeader *>(Buf);
463 // We'll read the coverage mapping records in the loop below.
470 // Each coverage map has an alignment of 8, so we need to adjust alignment
479 // Now use that to read the coverage data.
497 coverage::CovMapVersion Version, InstrProfSymtab &P,
500 using namespace coverage;
520 using namespace coverage;
521 // Read the records in the coverage data section.
523 reinterpret_cast<const coverage::CovMapHeader *>(Data.data());
525 if (Version > coverage::CovMapVersion::CurrentVersion)
572 // Skip the padding bytes because coverage map data has an alignment of 8.
620 // The coverage uses native pointer sizes for the object it's written in.
648 StringRef Coverage;
656 Coverage, BytesInAddress, Endian);
659 Coverage, BytesInAddress, Endian, Arch);
665 Reader->ProfileNames, Coverage, Reader->MappingRecords,
669 Reader->ProfileNames, Coverage, Reader->MappingRecords,
673 Reader->ProfileNames, Coverage, Reader->MappingRecords,
677 Reader->ProfileNames, Coverage, Reader->MappingRecords,