summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Uops.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-06 09:42:36 +0000
committerClement Courbet <courbet@google.com>2018-06-06 09:42:36 +0000
commit62b34fa89a9cabfebe56848e25be4413ee009520 (patch)
tree445956971d8c96465c4ec3aa81652f78cd289b4f /llvm/tools/llvm-exegesis/lib/Uops.cpp
parent57f661bd7d20412f21ac6b7611c41a0f8b84fc01 (diff)
downloadbcm5719-llvm-62b34fa89a9cabfebe56848e25be4413ee009520.tar.gz
bcm5719-llvm-62b34fa89a9cabfebe56848e25be4413ee009520.zip
[llvm-exegesis] move Mode from Key to BenchmarResult.
Moves the Mode field out of the Key. The existing yaml benchmark results can be fixed with the following script: ``` readonly FILE=$1 readonly MODE=latency # Change to uops to fix a uops benchmark. cat $FILE | \ sed "/^\ \+mode:\ \+$MODE$/d" | \ sed "/^cpu_name.*$/i mode: $MODE" ``` Differential Revision: https://reviews.llvm.org/D47813 Authored by: Guillaume Chatelet llvm-svn: 334079
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Uops.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Uops.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Uops.cpp b/llvm/tools/llvm-exegesis/lib/Uops.cpp
index 145bfad733b..b90ab1a22e4 100644
--- a/llvm/tools/llvm-exegesis/lib/Uops.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Uops.cpp
@@ -141,8 +141,8 @@ static llvm::Error makeError(llvm::Twine Msg) {
UopsBenchmarkRunner::~UopsBenchmarkRunner() = default;
-InstructionBenchmarkKey::ModeE UopsBenchmarkRunner::getMode() const {
- return InstructionBenchmarkKey::Uops;
+InstructionBenchmark::ModeE UopsBenchmarkRunner::getMode() const {
+ return InstructionBenchmark::Uops;
}
llvm::Expected<std::vector<llvm::MCInst>>
OpenPOWER on IntegriCloud