summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/SchedClassResolution.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/SchedClassResolution.h')
-rw-r--r--llvm/tools/llvm-exegesis/lib/SchedClassResolution.h7
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.
OpenPOWER on IntegriCloud