diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp b/llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp index b4c7ce64a50..b4bdb5dc4ad 100644 --- a/llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp +++ b/llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp @@ -15,24 +15,12 @@ namespace llvm { namespace exegesis { -namespace { -class PowerPCLatencyBenchmarkRunner : public LatencyBenchmarkRunner { -public: - PowerPCLatencyBenchmarkRunner(const LLVMState &State) - : LatencyBenchmarkRunner(State) {} - -private: - const char *getCounterName() const override { - // All PowerPC subtargets have CYCLES as the cycle counter name - return "CYCLES"; - } -}; -} // end anonymous namespace +#include "PPCGenExegesis.inc" namespace { class ExegesisPowerPCTarget : public ExegesisTarget { public: - ExegesisPowerPCTarget() : ExegesisTarget({}) {} + ExegesisPowerPCTarget() : ExegesisTarget(PPCCpuPfmCounters) {} private: std::vector<llvm::MCInst> setRegTo(const llvm::MCSubtargetInfo &STI, @@ -41,10 +29,6 @@ private: bool matchesArch(llvm::Triple::ArchType Arch) const override { return Arch == llvm::Triple::ppc64le; } - std::unique_ptr<BenchmarkRunner> - createLatencyBenchmarkRunner(const LLVMState &State) const override { - return llvm::make_unique<PowerPCLatencyBenchmarkRunner>(State); - } }; } // end anonymous namespace |