summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/ResourcePressureView.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/ResourcePressureView.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/ResourcePressureView.h')
-rw-r--r--llvm/tools/llvm-mca/ResourcePressureView.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/ResourcePressureView.h b/llvm/tools/llvm-mca/ResourcePressureView.h
index 105aa408068..1b577a27234 100644
--- a/llvm/tools/llvm-mca/ResourcePressureView.h
+++ b/llvm/tools/llvm-mca/ResourcePressureView.h
@@ -96,9 +96,7 @@ public:
initialize();
}
- void onInstructionIssued(
- unsigned Index,
- const llvm::ArrayRef<std::pair<ResourceRef, unsigned>> &Used) override;
+ void onInstructionEvent(const HWInstructionEvent &Event) override;
void printView(llvm::raw_ostream &OS) const override {
unsigned Executions = Source.getNumIterations();
OpenPOWER on IntegriCloud