[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:44:09 PDT 2018


mattd added inline comments.


================
Comment at: tools/llvm-mca/Backend.h:62
   std::set<HWEventListener *> Listeners;
+  llvm::SmallVector<Stage *, 4> Stages;
   unsigned Cycles;
----------------
When we get stages for all of the components in MCA, this will become a unique_ptr<Stage> and we can remove the explicit references to Fetch, Dispatch above.  A pipeline should operates as a  composable sequence of stages.


https://reviews.llvm.org/D47306





More information about the llvm-commits mailing list