[PATCH] D48672: [llvm-mca] Simplify eventing by adding an onEvent templated method.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 00:26:05 PDT 2018


courbet accepted this revision.
courbet added a comment.
This revision is now accepted and ready to land.

Thanks !



================
Comment at: tools/llvm-mca/Stage.h:59
+  /// Notify listeners of a particular hardware event.
+  template <typename EventT> void notifyEvent(const EventT &Event) {
+    for (HWEventListener *Listener : Listeners)
----------------
This can now be const.


https://reviews.llvm.org/D48672





More information about the llvm-commits mailing list