1//===- CoverageMapping.h - Code coverage mapping support --------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Code coverage mapping data is generated by clang and read by
11// llvm-cov to show code coverage statistics for a file.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_PROFILEDATA_COVERAGE_COVERAGEMAPPING_H
16#define LLVM_PROFILEDATA_COVERAGE_COVERAGEMAPPING_H
17
18#include "llvm/ADT/ArrayRef.h"
19#include "llvm/ADT/DenseMap.h"
20#include "llvm/ADT/Hashing.h"
21#include "llvm/ADT/None.h"
22#include "llvm/ADT/StringRef.h"
23#include "llvm/ADT/StringSet.h"
24#include "llvm/ADT/iterator.h"
25#include "llvm/ADT/iterator_range.h"
26#include "llvm/ProfileData/InstrProf.h"
27#include "llvm/Support/Compiler.h"
28#include "llvm/Support/Debug.h"
29#include "llvm/Support/Endian.h"
30#include "llvm/Support/Error.h"
31#include "llvm/Support/raw_ostream.h"
32#include <cassert>
33#include <cstdint>
34#include <iterator>
35#include <memory>
36#include <string>
37#include <system_error>
38#include <tuple>
39#include <utility>
40#include <vector>
41
42namespace llvm {
43
44class IndexedInstrProfReader;
45
46namespace coverage {
47
48class CoverageMappingReader;
49struct CoverageMappingRecord;
50
51enum class coveragemap_error {
52  success = 0,
53  eof,
54  no_data_found,
55  unsupported_version,
56  truncated,
57  malformed
58};
59
60const std::error_category &coveragemap_category();
61
62inline std::error_code make_error_code(coveragemap_error E) {
63  return std::error_code(static_cast<int>(E), coveragemap_category());
64}
65
66class CoverageMapError : public ErrorInfo<CoverageMapError> {
67public:
68  CoverageMapError(coveragemap_error Err) : Err(Err) {
69    assert(Err != coveragemap_error::success && "Not an error");
70  }
71
72  std::string message() const override;
73
74  void log(raw_ostream &OS) const override { OS << message(); }
75
76  std::error_code convertToErrorCode() const override {
77    return make_error_code(Err);
78  }
79
80  coveragemap_error get() const { return Err; }
81
82  static char ID;
83
84private:
85  coveragemap_error Err;
86};
87
88/// \brief A Counter is an abstract value that describes how to compute the
89/// execution count for a region of code using the collected profile count data.
90struct Counter {
91  enum CounterKind { Zero, CounterValueReference, Expression };
92  static const unsigned EncodingTagBits = 2;
93  static const unsigned EncodingTagMask = 0x3;
94  static const unsigned EncodingCounterTagAndExpansionRegionTagBits =
95      EncodingTagBits + 1;
96
97private:
98  CounterKind Kind = Zero;
99  unsigned ID = 0;
100
101  Counter(CounterKind Kind, unsigned ID) : Kind(Kind), ID(ID) {}
102
103public:
104  Counter() = default;
105
106  CounterKind getKind() const { return Kind; }
107
108  bool isZero() const { return Kind == Zero; }
109
110  bool isExpression() const { return Kind == Expression; }
111
112  unsigned getCounterID() const { return ID; }
113
114  unsigned getExpressionID() const { return ID; }
115
116  friend bool operator==(const Counter &LHS, const Counter &RHS) {
117    return LHS.Kind == RHS.Kind && LHS.ID == RHS.ID;
118  }
119
120  friend bool operator!=(const Counter &LHS, const Counter &RHS) {
121    return !(LHS == RHS);
122  }
123
124  friend bool operator<(const Counter &LHS, const Counter &RHS) {
125    return std::tie(LHS.Kind, LHS.ID) < std::tie(RHS.Kind, RHS.ID);
126  }
127
128  /// \brief Return the counter that represents the number zero.
129  static Counter getZero() { return Counter(); }
130
131  /// \brief Return the counter that corresponds to a specific profile counter.
132  static Counter getCounter(unsigned CounterId) {
133    return Counter(CounterValueReference, CounterId);
134  }
135
136  /// \brief Return the counter that corresponds to a specific
137  /// addition counter expression.
138  static Counter getExpression(unsigned ExpressionId) {
139    return Counter(Expression, ExpressionId);
140  }
141};
142
143/// \brief A Counter expression is a value that represents an arithmetic
144/// operation with two counters.
145struct CounterExpression {
146  enum ExprKind { Subtract, Add };
147  ExprKind Kind;
148  Counter LHS, RHS;
149
150  CounterExpression(ExprKind Kind, Counter LHS, Counter RHS)
151      : Kind(Kind), LHS(LHS), RHS(RHS) {}
152};
153
154/// \brief A Counter expression builder is used to construct the
155/// counter expressions. It avoids unnecessary duplication
156/// and simplifies algebraic expressions.
157class CounterExpressionBuilder {
158  /// \brief A list of all the counter expressions
159  std::vector<CounterExpression> Expressions;
160
161  /// \brief A lookup table for the index of a given expression.
162  DenseMap<CounterExpression, unsigned> ExpressionIndices;
163
164  /// \brief Return the counter which corresponds to the given expression.
165  ///
166  /// If the given expression is already stored in the builder, a counter
167  /// that references that expression is returned. Otherwise, the given
168  /// expression is added to the builder's collection of expressions.
169  Counter get(const CounterExpression &E);
170
171  /// \brief Gather the terms of the expression tree for processing.
172  ///
173  /// This collects each addition and subtraction referenced by the counter into
174  /// a sequence that can be sorted and combined to build a simplified counter
175  /// expression.
176  void extractTerms(Counter C, int Sign,
177                    SmallVectorImpl<std::pair<unsigned, int>> &Terms);
178
179  /// \brief Simplifies the given expression tree
180  /// by getting rid of algebraically redundant operations.
181  Counter simplify(Counter ExpressionTree);
182
183public:
184  ArrayRef<CounterExpression> getExpressions() const { return Expressions; }
185
186  /// \brief Return a counter that represents the expression
187  /// that adds LHS and RHS.
188  Counter add(Counter LHS, Counter RHS);
189
190  /// \brief Return a counter that represents the expression
191  /// that subtracts RHS from LHS.
192  Counter subtract(Counter LHS, Counter RHS);
193};
194
195/// \brief A Counter mapping region associates a source range with
196/// a specific counter.
197struct CounterMappingRegion {
198  enum RegionKind {
199    /// \brief A CodeRegion associates some code with a counter
200    CodeRegion,
201
202    /// \brief An ExpansionRegion represents a file expansion region that
203    /// associates a source range with the expansion of a virtual source file,
204    /// such as for a macro instantiation or #include file.
205    ExpansionRegion,
206
207    /// \brief A SkippedRegion represents a source range with code that
208    /// was skipped by a preprocessor or similar means.
209    SkippedRegion
210  };
211
212  Counter Count;
213  unsigned FileID, ExpandedFileID;
214  unsigned LineStart, ColumnStart, LineEnd, ColumnEnd;
215  RegionKind Kind;
216
217  CounterMappingRegion(Counter Count, unsigned FileID, unsigned ExpandedFileID,
218                       unsigned LineStart, unsigned ColumnStart,
219                       unsigned LineEnd, unsigned ColumnEnd, RegionKind Kind)
220      : Count(Count), FileID(FileID), ExpandedFileID(ExpandedFileID),
221        LineStart(LineStart), ColumnStart(ColumnStart), LineEnd(LineEnd),
222        ColumnEnd(ColumnEnd), Kind(Kind) {}
223
224  static CounterMappingRegion
225  makeRegion(Counter Count, unsigned FileID, unsigned LineStart,
226             unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd) {
227    return CounterMappingRegion(Count, FileID, 0, LineStart, ColumnStart,
228                                LineEnd, ColumnEnd, CodeRegion);
229  }
230
231  static CounterMappingRegion
232  makeExpansion(unsigned FileID, unsigned ExpandedFileID, unsigned LineStart,
233                unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd) {
234    return CounterMappingRegion(Counter(), FileID, ExpandedFileID, LineStart,
235                                ColumnStart, LineEnd, ColumnEnd,
236                                ExpansionRegion);
237  }
238
239  static CounterMappingRegion
240  makeSkipped(unsigned FileID, unsigned LineStart, unsigned ColumnStart,
241              unsigned LineEnd, unsigned ColumnEnd) {
242    return CounterMappingRegion(Counter(), FileID, 0, LineStart, ColumnStart,
243                                LineEnd, ColumnEnd, SkippedRegion);
244  }
245
246  inline std::pair<unsigned, unsigned> startLoc() const {
247    return std::pair<unsigned, unsigned>(LineStart, ColumnStart);
248  }
249
250  inline std::pair<unsigned, unsigned> endLoc() const {
251    return std::pair<unsigned, unsigned>(LineEnd, ColumnEnd);
252  }
253};
254
255/// \brief Associates a source range with an execution count.
256struct CountedRegion : public CounterMappingRegion {
257  uint64_t ExecutionCount;
258
259  CountedRegion(const CounterMappingRegion &R, uint64_t ExecutionCount)
260      : CounterMappingRegion(R), ExecutionCount(ExecutionCount) {}
261};
262
263/// \brief A Counter mapping context is used to connect the counters,
264/// expressions and the obtained counter values.
265class CounterMappingContext {
266  ArrayRef<CounterExpression> Expressions;
267  ArrayRef<uint64_t> CounterValues;
268
269public:
270  CounterMappingContext(ArrayRef<CounterExpression> Expressions,
271                        ArrayRef<uint64_t> CounterValues = None)
272      : Expressions(Expressions), CounterValues(CounterValues) {}
273
274  void setCounts(ArrayRef<uint64_t> Counts) { CounterValues = Counts; }
275
276  void dump(const Counter &C, raw_ostream &OS) const;
277  void dump(const Counter &C) const { dump(C, dbgs()); }
278
279  /// \brief Return the number of times that a region of code associated with
280  /// this counter was executed.
281  Expected<int64_t> evaluate(const Counter &C) const;
282};
283
284/// \brief Code coverage information for a single function.
285struct FunctionRecord {
286  /// \brief Raw function name.
287  std::string Name;
288  /// \brief Associated files.
289  std::vector<std::string> Filenames;
290  /// \brief Regions in the function along with their counts.
291  std::vector<CountedRegion> CountedRegions;
292  /// \brief The number of times this function was executed.
293  uint64_t ExecutionCount;
294
295  FunctionRecord(StringRef Name, ArrayRef<StringRef> Filenames)
296      : Name(Name), Filenames(Filenames.begin(), Filenames.end()) {}
297
298  FunctionRecord(FunctionRecord &&FR) = default;
299  FunctionRecord &operator=(FunctionRecord &&) = default;
300
301  void pushRegion(CounterMappingRegion Region, uint64_t Count) {
302    if (CountedRegions.empty())
303      ExecutionCount = Count;
304    CountedRegions.emplace_back(Region, Count);
305  }
306};
307
308/// \brief Iterator over Functions, optionally filtered to a single file.
309class FunctionRecordIterator
310    : public iterator_facade_base<FunctionRecordIterator,
311                                  std::forward_iterator_tag, FunctionRecord> {
312  ArrayRef<FunctionRecord> Records;
313  ArrayRef<FunctionRecord>::iterator Current;
314  StringRef Filename;
315
316  /// \brief Skip records whose primary file is not \c Filename.
317  void skipOtherFiles();
318
319public:
320  FunctionRecordIterator(ArrayRef<FunctionRecord> Records_,
321                         StringRef Filename = "")
322      : Records(Records_), Current(Records.begin()), Filename(Filename) {
323    skipOtherFiles();
324  }
325
326  FunctionRecordIterator() : Current(Records.begin()) {}
327
328  bool operator==(const FunctionRecordIterator &RHS) const {
329    return Current == RHS.Current && Filename == RHS.Filename;
330  }
331
332  const FunctionRecord &operator*() const { return *Current; }
333
334  FunctionRecordIterator &operator++() {
335    assert(Current != Records.end() && "incremented past end");
336    ++Current;
337    skipOtherFiles();
338    return *this;
339  }
340};
341
342/// \brief Coverage information for a macro expansion or #included file.
343///
344/// When covered code has pieces that can be expanded for more detail, such as a
345/// preprocessor macro use and its definition, these are represented as
346/// expansions whose coverage can be looked up independently.
347struct ExpansionRecord {
348  /// \brief The abstract file this expansion covers.
349  unsigned FileID;
350  /// \brief The region that expands to this record.
351  const CountedRegion &Region;
352  /// \brief Coverage for the expansion.
353  const FunctionRecord &Function;
354
355  ExpansionRecord(const CountedRegion &Region,
356                  const FunctionRecord &Function)
357      : FileID(Region.ExpandedFileID), Region(Region), Function(Function) {}
358};
359
360/// \brief The execution count information starting at a point in a file.
361///
362/// A sequence of CoverageSegments gives execution counts for a file in format
363/// that's simple to iterate through for processing.
364struct CoverageSegment {
365  /// \brief The line where this segment begins.
366  unsigned Line;
367  /// \brief The column where this segment begins.
368  unsigned Col;
369  /// \brief The execution count, or zero if no count was recorded.
370  uint64_t Count;
371  /// \brief When false, the segment was uninstrumented or skipped.
372  bool HasCount;
373  /// \brief Whether this enters a new region or returns to a previous count.
374  bool IsRegionEntry;
375
376  CoverageSegment(unsigned Line, unsigned Col, bool IsRegionEntry)
377      : Line(Line), Col(Col), Count(0), HasCount(false),
378        IsRegionEntry(IsRegionEntry) {}
379
380  CoverageSegment(unsigned Line, unsigned Col, uint64_t Count,
381                  bool IsRegionEntry)
382      : Line(Line), Col(Col), Count(Count), HasCount(true),
383        IsRegionEntry(IsRegionEntry) {}
384
385  friend bool operator==(const CoverageSegment &L, const CoverageSegment &R) {
386    return std::tie(L.Line, L.Col, L.Count, L.HasCount, L.IsRegionEntry) ==
387           std::tie(R.Line, R.Col, R.Count, R.HasCount, R.IsRegionEntry);
388  }
389};
390
391/// \brief Coverage information to be processed or displayed.
392///
393/// This represents the coverage of an entire file, expansion, or function. It
394/// provides a sequence of CoverageSegments to iterate through, as well as the
395/// list of expansions that can be further processed.
396class CoverageData {
397  friend class CoverageMapping;
398
399  std::string Filename;
400  std::vector<CoverageSegment> Segments;
401  std::vector<ExpansionRecord> Expansions;
402
403public:
404  CoverageData() = default;
405
406  CoverageData(StringRef Filename) : Filename(Filename) {}
407
408  /// \brief Get the name of the file this data covers.
409  StringRef getFilename() const { return Filename; }
410
411  std::vector<CoverageSegment>::const_iterator begin() const {
412    return Segments.begin();
413  }
414  std::vector<CoverageSegment>::const_iterator end() const {
415    return Segments.end();
416  }
417  bool empty() const { return Segments.empty(); }
418
419  /// \brief Expansions that can be further processed.
420  ArrayRef<ExpansionRecord> getExpansions() const { return Expansions; }
421};
422
423/// \brief The mapping of profile information to coverage data.
424///
425/// This is the main interface to get coverage information, using a profile to
426/// fill out execution counts.
427class CoverageMapping {
428  StringSet<> FunctionNames;
429  std::vector<FunctionRecord> Functions;
430  unsigned MismatchedFunctionCount = 0;
431
432  CoverageMapping() = default;
433  /// \brief Add a function record corresponding to \p Record.
434  Error loadFunctionRecord(const CoverageMappingRecord &Record,
435                           IndexedInstrProfReader &ProfileReader);
436
437public:
438  CoverageMapping(const CoverageMapping &) = delete;
439  CoverageMapping &operator=(const CoverageMapping &) = delete;
440
441  /// \brief Load the coverage mapping using the given readers.
442  static Expected<std::unique_ptr<CoverageMapping>>
443  load(CoverageMappingReader &CoverageReader,
444       IndexedInstrProfReader &ProfileReader);
445
446  static Expected<std::unique_ptr<CoverageMapping>>
447  load(ArrayRef<std::unique_ptr<CoverageMappingReader>> CoverageReaders,
448       IndexedInstrProfReader &ProfileReader);
449
450  /// \brief Load the coverage mapping from the given files.
451  static Expected<std::unique_ptr<CoverageMapping>>
452  load(StringRef ObjectFilename, StringRef ProfileFilename,
453       StringRef Arch = StringRef()) {
454    return load(ArrayRef<StringRef>(ObjectFilename), ProfileFilename, Arch);
455  }
456
457  static Expected<std::unique_ptr<CoverageMapping>>
458  load(ArrayRef<StringRef> ObjectFilenames, StringRef ProfileFilename,
459       StringRef Arch = StringRef());
460
461  /// \brief The number of functions that couldn't have their profiles mapped.
462  ///
463  /// This is a count of functions whose profile is out of date or otherwise
464  /// can't be associated with any coverage information.
465  unsigned getMismatchedCount() { return MismatchedFunctionCount; }
466
467  /// \brief Returns a lexicographically sorted, unique list of files that are
468  /// covered.
469  std::vector<StringRef> getUniqueSourceFiles() const;
470
471  /// \brief Get the coverage for a particular file.
472  ///
473  /// The given filename must be the name as recorded in the coverage
474  /// information. That is, only names returned from getUniqueSourceFiles will
475  /// yield a result.
476  CoverageData getCoverageForFile(StringRef Filename) const;
477
478  /// \brief Gets all of the functions covered by this profile.
479  iterator_range<FunctionRecordIterator> getCoveredFunctions() const {
480    return make_range(FunctionRecordIterator(Functions),
481                      FunctionRecordIterator());
482  }
483
484  /// \brief Gets all of the functions in a particular file.
485  iterator_range<FunctionRecordIterator>
486  getCoveredFunctions(StringRef Filename) const {
487    return make_range(FunctionRecordIterator(Functions, Filename),
488                      FunctionRecordIterator());
489  }
490
491  /// \brief Get the list of function instantiations in the file.
492  ///
493  /// Functions that are instantiated more than once, such as C++ template
494  /// specializations, have distinct coverage records for each instantiation.
495  std::vector<const FunctionRecord *>
496  getInstantiations(StringRef Filename) const;
497
498  /// \brief Get the coverage for a particular function.
499  CoverageData getCoverageForFunction(const FunctionRecord &Function) const;
500
501  /// \brief Get the coverage for an expansion within a coverage set.
502  CoverageData getCoverageForExpansion(const ExpansionRecord &Expansion) const;
503};
504
505// Profile coverage map has the following layout:
506// [CoverageMapFileHeader]
507// [ArrayStart]
508//  [CovMapFunctionRecord]
509//  [CovMapFunctionRecord]
510//  ...
511// [ArrayEnd]
512// [Encoded Region Mapping Data]
513LLVM_PACKED_START
514template <class IntPtrT> struct CovMapFunctionRecordV1 {
515#define COVMAP_V1
516#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init) Type Name;
517#include "llvm/ProfileData/InstrProfData.inc"
518#undef COVMAP_V1
519
520  // Return the structural hash associated with the function.
521  template <support::endianness Endian> uint64_t getFuncHash() const {
522    return support::endian::byte_swap<uint64_t, Endian>(FuncHash);
523  }
524
525  // Return the coverage map data size for the funciton.
526  template <support::endianness Endian> uint32_t getDataSize() const {
527    return support::endian::byte_swap<uint32_t, Endian>(DataSize);
528  }
529
530  // Return function lookup key. The value is consider opaque.
531  template <support::endianness Endian> IntPtrT getFuncNameRef() const {
532    return support::endian::byte_swap<IntPtrT, Endian>(NamePtr);
533  }
534
535  // Return the PGO name of the function */
536  template <support::endianness Endian>
537  Error getFuncName(InstrProfSymtab &ProfileNames, StringRef &FuncName) const {
538    IntPtrT NameRef = getFuncNameRef<Endian>();
539    uint32_t NameS = support::endian::byte_swap<uint32_t, Endian>(NameSize);
540    FuncName = ProfileNames.getFuncName(NameRef, NameS);
541    if (NameS && FuncName.empty())
542      return make_error<CoverageMapError>(coveragemap_error::malformed);
543    return Error::success();
544  }
545};
546
547struct CovMapFunctionRecord {
548#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init) Type Name;
549#include "llvm/ProfileData/InstrProfData.inc"
550
551  // Return the structural hash associated with the function.
552  template <support::endianness Endian> uint64_t getFuncHash() const {
553    return support::endian::byte_swap<uint64_t, Endian>(FuncHash);
554  }
555
556  // Return the coverage map data size for the funciton.
557  template <support::endianness Endian> uint32_t getDataSize() const {
558    return support::endian::byte_swap<uint32_t, Endian>(DataSize);
559  }
560
561  // Return function lookup key. The value is consider opaque.
562  template <support::endianness Endian> uint64_t getFuncNameRef() const {
563    return support::endian::byte_swap<uint64_t, Endian>(NameRef);
564  }
565
566  // Return the PGO name of the function */
567  template <support::endianness Endian>
568  Error getFuncName(InstrProfSymtab &ProfileNames, StringRef &FuncName) const {
569    uint64_t NameRef = getFuncNameRef<Endian>();
570    FuncName = ProfileNames.getFuncName(NameRef);
571    return Error::success();
572  }
573};
574
575// Per module coverage mapping data header, i.e. CoverageMapFileHeader
576// documented above.
577struct CovMapHeader {
578#define COVMAP_HEADER(Type, LLVMType, Name, Init) Type Name;
579#include "llvm/ProfileData/InstrProfData.inc"
580  template <support::endianness Endian> uint32_t getNRecords() const {
581    return support::endian::byte_swap<uint32_t, Endian>(NRecords);
582  }
583
584  template <support::endianness Endian> uint32_t getFilenamesSize() const {
585    return support::endian::byte_swap<uint32_t, Endian>(FilenamesSize);
586  }
587
588  template <support::endianness Endian> uint32_t getCoverageSize() const {
589    return support::endian::byte_swap<uint32_t, Endian>(CoverageSize);
590  }
591
592  template <support::endianness Endian> uint32_t getVersion() const {
593    return support::endian::byte_swap<uint32_t, Endian>(Version);
594  }
595};
596
597LLVM_PACKED_END
598
599enum CovMapVersion {
600  Version1 = 0,
601  // Function's name reference from CovMapFuncRecord is changed from raw
602  // name string pointer to MD5 to support name section compression. Name
603  // section is also compressed.
604  Version2 = 1,
605  // The current version is Version2
606  CurrentVersion = INSTR_PROF_COVMAP_VERSION
607};
608
609template <int CovMapVersion, class IntPtrT> struct CovMapTraits {
610  typedef CovMapFunctionRecord CovMapFuncRecordType;
611  typedef uint64_t NameRefType;
612};
613
614template <class IntPtrT> struct CovMapTraits<CovMapVersion::Version1, IntPtrT> {
615  typedef CovMapFunctionRecordV1<IntPtrT> CovMapFuncRecordType;
616  typedef IntPtrT NameRefType;
617};
618
619} // end namespace coverage
620
621/// \brief Provide DenseMapInfo for CounterExpression
622template<> struct DenseMapInfo<coverage::CounterExpression> {
623  static inline coverage::CounterExpression getEmptyKey() {
624    using namespace coverage;
625    return CounterExpression(CounterExpression::ExprKind::Subtract,
626                             Counter::getCounter(~0U),
627                             Counter::getCounter(~0U));
628  }
629
630  static inline coverage::CounterExpression getTombstoneKey() {
631    using namespace coverage;
632    return CounterExpression(CounterExpression::ExprKind::Add,
633                             Counter::getCounter(~0U),
634                             Counter::getCounter(~0U));
635  }
636
637  static unsigned getHashValue(const coverage::CounterExpression &V) {
638    return static_cast<unsigned>(
639        hash_combine(V.Kind, V.LHS.getKind(), V.LHS.getCounterID(),
640                     V.RHS.getKind(), V.RHS.getCounterID()));
641  }
642
643  static bool isEqual(const coverage::CounterExpression &LHS,
644                      const coverage::CounterExpression &RHS) {
645    return LHS.Kind == RHS.Kind && LHS.LHS == RHS.LHS && LHS.RHS == RHS.RHS;
646  }
647};
648
649} // end namespace llvm
650
651#endif // LLVM_PROFILEDATA_COVERAGE_COVERAGEMAPPING_H
652