summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-15 13:07:05 +0000
committerClement Courbet <courbet@google.com>2018-05-15 13:07:05 +0000
commita66bfaa4c037ce4e64d24549a566ec5d29110577 (patch)
tree7feca562f099977213549d142ef968f2a1f581bc /llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
parent2aa395abcf4ef11b508b99ed5c9dc48c5278780d (diff)
downloadbcm5719-llvm-a66bfaa4c037ce4e64d24549a566ec5d29110577.tar.gz
bcm5719-llvm-a66bfaa4c037ce4e64d24549a566ec5d29110577.zip
[llvm-exegesis] Split AsmTemplate.Name into components.
Summary: AsmTemplate becomes IntructionBenchmarkKey, which has three components. This allows retreiving the opcode for analysis. Reviewers: gchatelet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D46873 llvm-svn: 332348
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index bdce72c1c11..2615a829902 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -26,11 +26,8 @@ BenchmarkRunner::run(const LLVMState &State, const unsigned Opcode,
const InstructionFilter &Filter) const {
InstructionBenchmark InstrBenchmark;
- InstrBenchmark.AsmTmpl.Name =
- llvm::Twine(getDisplayName())
- .concat(" ")
- .concat(State.getInstrInfo().getName(Opcode))
- .str();
+ InstrBenchmark.Key.OpcodeName = State.getInstrInfo().getName(Opcode);
+ InstrBenchmark.Key.Mode = getDisplayName();
InstrBenchmark.CpuName = State.getCpuName();
InstrBenchmark.LLVMTriple = State.getTriple();
InstrBenchmark.NumRepetitions = NumRepetitions;
OpenPOWER on IntegriCloud