diff options
| author | Clement Courbet <courbet@google.com> | 2018-05-15 13:07:05 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2018-05-15 13:07:05 +0000 |
| commit | a66bfaa4c037ce4e64d24549a566ec5d29110577 (patch) | |
| tree | 7feca562f099977213549d142ef968f2a1f581bc /llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | |
| parent | 2aa395abcf4ef11b508b99ed5c9dc48c5278780d (diff) | |
| download | bcm5719-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.cpp | 7 |
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; |

