From 0d79aaf1a7303cc0840563d7ed3a2f2cf2bab25f Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Thu, 8 Nov 2018 12:09:45 +0000 Subject: Revert "[llvm-exegesis] Add a snippet generator to generate snippets to compute ROB sizes." This reverts accidental commit rL346394. llvm-svn: 346398 --- llvm/tools/llvm-exegesis/lib/Target.cpp | 54 ++++++++++++--------------------- 1 file changed, 20 insertions(+), 34 deletions(-) (limited to 'llvm/tools/llvm-exegesis/lib/Target.cpp') diff --git a/llvm/tools/llvm-exegesis/lib/Target.cpp b/llvm/tools/llvm-exegesis/lib/Target.cpp index 085518c9a67..06557770418 100644 --- a/llvm/tools/llvm-exegesis/lib/Target.cpp +++ b/llvm/tools/llvm-exegesis/lib/Target.cpp @@ -9,7 +9,6 @@ #include "Target.h" #include "Latency.h" -#include "ROBSize.h" #include "Uops.h" namespace llvm { @@ -38,31 +37,6 @@ void ExegesisTarget::registerTarget(ExegesisTarget *Target) { FirstTarget = Target; } -std::unique_ptr -ExegesisTarget::createLatencySnippetGenerator(const LLVMState &State) const { - return llvm::make_unique(State); -} - -std::unique_ptr -ExegesisTarget::createUopsSnippetGenerator(const LLVMState &State) const { - return llvm::make_unique(State); -} - -std::unique_ptr -static createROBSizeSnippetGenerator(const LLVMState &State) { - return llvm::make_unique(State); -} - -std::unique_ptr -ExegesisTarget::createLatencyBenchmarkRunner(const LLVMState &State) const { - return llvm::make_unique(State); -} - -std::unique_ptr -ExegesisTarget::createUopsBenchmarkRunner(const LLVMState &State) const { - return llvm::make_unique(State); -} - std::unique_ptr ExegesisTarget::createSnippetGenerator(InstructionBenchmark::ModeE Mode, const LLVMState &State) const { @@ -73,8 +47,6 @@ ExegesisTarget::createSnippetGenerator(InstructionBenchmark::ModeE Mode, return createLatencySnippetGenerator(State); case InstructionBenchmark::Uops: return createUopsSnippetGenerator(State); - case InstructionBenchmark::ROBSize: - return createROBSizeSnippetGenerator(State); } return nullptr; } @@ -86,7 +58,6 @@ ExegesisTarget::createBenchmarkRunner(InstructionBenchmark::ModeE Mode, case InstructionBenchmark::Unknown: return nullptr; case InstructionBenchmark::Latency: - case InstructionBenchmark::ROBSize: return createLatencyBenchmarkRunner(State); case InstructionBenchmark::Uops: return createUopsBenchmarkRunner(State); @@ -94,6 +65,26 @@ ExegesisTarget::createBenchmarkRunner(InstructionBenchmark::ModeE Mode, return nullptr; } +std::unique_ptr +ExegesisTarget::createLatencySnippetGenerator(const LLVMState &State) const { + return llvm::make_unique(State); +} + +std::unique_ptr +ExegesisTarget::createUopsSnippetGenerator(const LLVMState &State) const { + return llvm::make_unique(State); +} + +std::unique_ptr +ExegesisTarget::createLatencyBenchmarkRunner(const LLVMState &State) const { + return llvm::make_unique(State); +} + +std::unique_ptr +ExegesisTarget::createUopsBenchmarkRunner(const LLVMState &State) const { + return llvm::make_unique(State); +} + static_assert(std::is_pod::value, "We shouldn't have dynamic initialization here"); const PfmCountersInfo PfmCountersInfo::Default = {nullptr, nullptr, nullptr, 0u}; @@ -132,11 +123,6 @@ private: llvm_unreachable("Not yet implemented"); } - std::vector copyReg(const llvm::MCSubtargetInfo &STI, - unsigned ToReg, unsigned FromReg) const override { - llvm_unreachable("Not yet implemented"); - } - bool matchesArch(llvm::Triple::ArchType Arch) const override { llvm_unreachable("never called"); return false; -- cgit v1.2.3