diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-03-29 14:58:01 +0000 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-03-29 14:58:01 +0000 |
| commit | 4d81e877657a08007b95a839a8125cc1d9a8e00c (patch) | |
| tree | 3532acf0afd4a2655c4d767b3d15946603e4b28a /llvm/tools/llvm-exegesis/lib/SchedClassResolution.h | |
| parent | d6827ce3a35e3670b11c703ed25201728503e26c (diff) | |
| download | bcm5719-llvm-4d81e877657a08007b95a839a8125cc1d9a8e00c.tar.gz bcm5719-llvm-4d81e877657a08007b95a839a8125cc1d9a8e00c.zip | |
[NFC][llvm-exegesis] Also promote getSchedClassPoint() into ResolvedSchedClass.
Summary:
It doesn't need anything from Analysis::SchedClassCluster class,
and takes ResolvedSchedClass as param, so this seems rather fitting.
Reviewers: courbet, gchatelet
Reviewed By: courbet
Subscribers: tschuett, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59994
llvm-svn: 357263
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/SchedClassResolution.h')
| -rw-r--r-- | llvm/tools/llvm-exegesis/lib/SchedClassResolution.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/SchedClassResolution.h b/llvm/tools/llvm-exegesis/lib/SchedClassResolution.h index 00f65ee2edf..0d27f2eae3e 100644 --- a/llvm/tools/llvm-exegesis/lib/SchedClassResolution.h +++ b/llvm/tools/llvm-exegesis/lib/SchedClassResolution.h @@ -7,13 +7,14 @@ //===----------------------------------------------------------------------===// /// /// \file -/// Analysis output for benchmark results. +/// Resolution of MCInst sched class into expanded form for further analysis. /// //===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_EXEGESIS_SCHEDCLASSRESOLUTION_H #define LLVM_TOOLS_LLVM_EXEGESIS_SCHEDCLASSRESOLUTION_H +#include "BenchmarkResult.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCDisassembler/MCDisassembler.h" #include "llvm/MC/MCInstPrinter.h" @@ -44,6 +45,10 @@ struct ResolvedSchedClass { const llvm::MCInstrInfo &InstrInfo, const llvm::MCInst &MCI); + std::vector<BenchmarkMeasure> + getAsPoint(InstructionBenchmark::ModeE Mode, const llvm::MCSubtargetInfo &STI, + ArrayRef<PerInstructionStats> Representative) const; + const unsigned SchedClassId; const llvm::MCSchedClassDesc *const SCDesc; const bool WasVariant; // Whether the original class was variant. |

