summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Views/SummaryView.h
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-10-26 10:48:04 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-10-26 10:48:04 +0000
commit84d005131031f8426685cd7df748508752711da7 (patch)
tree00c6ca528a3fe74475186d784df1d19fce567ff3 /llvm/tools/llvm-mca/Views/SummaryView.h
parentbde31000b19496cb700c8a6d6a5d8ae1c83a22d8 (diff)
downloadbcm5719-llvm-84d005131031f8426685cd7df748508752711da7.tar.gz
bcm5719-llvm-84d005131031f8426685cd7df748508752711da7.zip
[llvm-mca] Removed dependency on mca::SourcMgr in some Views. NFC
llvm-svn: 345376
Diffstat (limited to 'llvm/tools/llvm-mca/Views/SummaryView.h')
-rw-r--r--llvm/tools/llvm-mca/Views/SummaryView.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/Views/SummaryView.h b/llvm/tools/llvm-mca/Views/SummaryView.h
index 3d4585e1d5a..8c330f28f39 100644
--- a/llvm/tools/llvm-mca/Views/SummaryView.h
+++ b/llvm/tools/llvm-mca/Views/SummaryView.h
@@ -29,7 +29,6 @@
#ifndef LLVM_TOOLS_LLVM_MCA_SUMMARYVIEW_H
#define LLVM_TOOLS_LLVM_MCA_SUMMARYVIEW_H
-#include "SourceMgr.h"
#include "Views/View.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/MC/MCSchedule.h"
@@ -40,8 +39,9 @@ namespace mca {
/// A view that collects and prints a few performance numbers.
class SummaryView : public View {
const llvm::MCSchedModel &SM;
- const SourceMgr &Source;
+ llvm::ArrayRef<llvm::MCInst> Source;
const unsigned DispatchWidth;
+ unsigned LastInstructionIdx;
unsigned TotalCycles;
// The total number of micro opcodes contributed by a block of instructions.
unsigned NumMicroOps;
@@ -62,7 +62,7 @@ class SummaryView : public View {
double getBlockRThroughput() const;
public:
- SummaryView(const llvm::MCSchedModel &Model, const SourceMgr &S,
+ SummaryView(const llvm::MCSchedModel &Model, llvm::ArrayRef<llvm::MCInst> S,
unsigned Width);
void onCycleEnd() override { ++TotalCycles; }
OpenPOWER on IntegriCloud