From a66bfaa4c037ce4e64d24549a566ec5d29110577 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 15 May 2018 13:07:05 +0000 Subject: [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 --- llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp') 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; -- cgit v1.2.3