LLVM  8.0.1
CodeGenCoverage.h
Go to the documentation of this file.
1 //== llvm/Support/CodeGenCoverage.h ------------------------------*- 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 /// \file This file provides rule coverage tracking for tablegen-erated CodeGen.
10 //===----------------------------------------------------------------------===//
11 
12 #ifndef LLVM_SUPPORT_CODEGENCOVERAGE_H
13 #define LLVM_SUPPORT_CODEGENCOVERAGE_H
14 
15 #include "llvm/ADT/BitVector.h"
16 
17 namespace llvm {
18 class LLVMContext;
19 class MemoryBuffer;
20 
22 protected:
24 
25 public:
27 
29 
30  void setCovered(uint64_t RuleID);
31  bool isCovered(uint64_t RuleID) const;
33 
34  bool parse(MemoryBuffer &Buffer, StringRef BackendName);
35  bool emit(StringRef FilePrefix, StringRef BackendName) const;
36  void reset();
37 };
38 } // namespace llvm
39 
40 #endif // ifndef LLVM_SUPPORT_CODEGENCOVERAGE_H
This class represents lattice values for constants.
Definition: AllocatorList.h:24
bool parse(MemoryBuffer &Buffer, StringRef BackendName)
bool emit(StringRef FilePrefix, StringRef BackendName) const
ForwardIterator for the bits that are set.
Definition: BitVector.h:32
void setCovered(uint64_t RuleID)
This interface provides simple read-only access to a block of memory, and provides simple methods for...
Definition: MemoryBuffer.h:42
A range adaptor for a pair of iterators.
iterator_range< const_covered_iterator > covered() const
bool isCovered(uint64_t RuleID) const
const_set_bits_iterator_impl< BitVector > const_set_bits_iterator
Definition: BitVector.h:121
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49