AMDGPU: Improve debug printing in SIFixSGPRLiveRanges
[oota-llvm.git] / tools / llvm-cov / CoverageFilters.h
index b356377e10fed20ba91a317f97659294e93a25ab..dc5dc98807b1a10b96d1a3a71f953659c4b00f23 100644 (file)
@@ -14,9 +14,9 @@
 #ifndef LLVM_COV_COVERAGEFILTERS_H
 #define LLVM_COV_COVERAGEFILTERS_H
 
-#include "FunctionCoverageMapping.h"
-#include <vector>
+#include "llvm/ProfileData/CoverageMapping.h"
 #include <memory>
+#include <vector>
 
 namespace llvm {
 
@@ -26,7 +26,9 @@ public:
   virtual ~CoverageFilter() {}
 
   /// \brief Return true if the function passes the requirements of this filter.
-  virtual bool matches(const FunctionCoverageMapping &Function) { return true; }
+  virtual bool matches(const coverage::FunctionRecord &Function) {
+    return true;
+  }
 };
 
 /// \brief Matches functions that contain a specific string in their name.
@@ -36,7 +38,7 @@ class NameCoverageFilter : public CoverageFilter {
 public:
   NameCoverageFilter(StringRef Name) : Name(Name) {}
 
-  bool matches(const FunctionCoverageMapping &Function) override;
+  bool matches(const coverage::FunctionRecord &Function) override;
 };
 
 /// \brief Matches functions whose name matches a certain regular expression.
@@ -46,7 +48,7 @@ class NameRegexCoverageFilter : public CoverageFilter {
 public:
   NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {}
 
-  bool matches(const FunctionCoverageMapping &Function) override;
+  bool matches(const coverage::FunctionRecord &Function) override;
 };
 
 /// \brief Matches numbers that pass a certain threshold.
@@ -82,7 +84,7 @@ public:
   RegionCoverageFilter(Operation Op, double Threshold)
       : StatisticThresholdFilter(Op, Threshold) {}
 
-  bool matches(const FunctionCoverageMapping &Function) override;
+  bool matches(const coverage::FunctionRecord &Function) override;
 };
 
 /// \brief Matches functions whose line coverage percentage
@@ -93,7 +95,7 @@ public:
   LineCoverageFilter(Operation Op, double Threshold)
       : StatisticThresholdFilter(Op, Threshold) {}
 
-  bool matches(const FunctionCoverageMapping &Function) override;
+  bool matches(const coverage::FunctionRecord &Function) override;
 };
 
 /// \brief A collection of filters.
@@ -109,7 +111,7 @@ public:
 
   bool empty() const { return Filters.empty(); }
 
-  bool matches(const FunctionCoverageMapping &Function) override;
+  bool matches(const coverage::FunctionRecord &Function) override;
 };
 
 /// \brief A collection of filters.
@@ -117,7 +119,7 @@ public:
 /// in an instance of this class.
 class CoverageFiltersMatchAll : public CoverageFilters {
 public:
-  bool matches(const FunctionCoverageMapping &Function) override;
+  bool matches(const coverage::FunctionRecord &Function) override;
 };
 
 } // namespace llvm