[PATCH] D47306: [llvm-mca] Register listeners with the Stage instances.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 23 19:39:29 PDT 2018


mattd created this revision.
mattd added reviewers: andreadb, courbet, RKSimon.
Herald added subscribers: gbedwell, tschuett, javed.absar.

This is an intermediate patch for moving the notification/eventing from the backend into the individual stages.
For now, the simplest approach, to put us on the right path, is to use the Backend::addEventListener to register 
listeners for all stages.  In the future a listener will be able to listen for events from a particular stage.

For now, we still need to maintain a list of listeners in the backend to handle events from MCA components that are not
yet stages, and to handle the cycleBegin and cycleEnd events.  With this in place we can start to remove the Owner 
pointers from stages that use the Owner for event dispatch.  Stages should start to handle that now.


https://reviews.llvm.org/D47306

Files:
  tools/llvm-mca/Backend.cpp
  tools/llvm-mca/Backend.h
  tools/llvm-mca/DispatchStage.cpp
  tools/llvm-mca/DispatchStage.h
  tools/llvm-mca/Scheduler.cpp
  tools/llvm-mca/Stage.cpp
  tools/llvm-mca/Stage.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47306.148311.patch
Type: text/x-patch
Size: 6921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/75c3d6e0/attachment.bin>


More information about the llvm-commits mailing list