summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/TimelineView.h
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-03-13 13:11:01 +0000
committerClement Courbet <courbet@google.com>2018-03-13 13:11:01 +0000
commit844f22d3c3806f372c1bec258a4bc559f974081d (patch)
treeba6ab90f820ffd1d69f46206e07e9e9f49322d76 /llvm/tools/llvm-mca/TimelineView.h
parent9d7e9032f1bd3a7cd83ed1883069bcced7b52b21 (diff)
downloadbcm5719-llvm-844f22d3c3806f372c1bec258a4bc559f974081d.tar.gz
bcm5719-llvm-844f22d3c3806f372c1bec258a4bc559f974081d.zip
[llvm-mca] Refactor event listeners to make the backend agnostic to event types.
Summary: This is a first step towards making the pipeline configurable. Subscribers: llvm-commits, andreadb Differential Revision: https://reviews.llvm.org/D44309 llvm-svn: 327389
Diffstat (limited to 'llvm/tools/llvm-mca/TimelineView.h')
-rw-r--r--llvm/tools/llvm-mca/TimelineView.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/tools/llvm-mca/TimelineView.h b/llvm/tools/llvm-mca/TimelineView.h
index e6ee79b8fcc..c7300f82117 100644
--- a/llvm/tools/llvm-mca/TimelineView.h
+++ b/llvm/tools/llvm-mca/TimelineView.h
@@ -162,14 +162,8 @@ public:
void initialize(unsigned MaxIterations);
// Event handlers.
- void onInstructionDispatched(unsigned Index) override;
- void onInstructionReady(unsigned Index) override;
- void onInstructionIssued(
- unsigned Index,
- const llvm::ArrayRef<std::pair<ResourceRef, unsigned>> &Used) override;
- void onInstructionExecuted(unsigned Index) override;
- void onInstructionRetired(unsigned Index) override;
void onCycleBegin(unsigned Cycle) override { CurrentCycle = Cycle; }
+ void onInstructionEvent(const HWInstructionEvent &Event) override;
// print functionalities.
void printTimeline(llvm::raw_ostream &OS) const;
OpenPOWER on IntegriCloud