[llvm-mca] Turn InstructionTables into a Stage.
authorMatt Davis <Matthew.Davis@sony.com>
Sat, 14 Jul 2018 23:52:50 +0000 (23:52 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Sat, 14 Jul 2018 23:52:50 +0000 (23:52 +0000)
commit0e8402eccd74c20630eefed63a8ff8635f3d0350
tree880a4d348d039acd77b03658e54789a1475d81f2
parentc7bc4c02eb3ebb1075ac608a8351e8c9ccb92ee6
[llvm-mca] Turn InstructionTables into a Stage.

Summary:
This patch converts the InstructionTables class into a subclass of mca::Stage.  This change allows us to use the Stage's inherited Listeners for event notifications.  This also allows us to create a simple pipeline for viewing the InstructionTables report.

I have been working on a follow on patch that should cleanup addView in InstructionTables.  Right now, addView adds the view to both the Listener list and Views list.  The follow-on patch addresses the fact that we don't really need two lists in this case.  That change is not specific to just InstructionTables, so it will be a separate patch.

Reviewers: andreadb, courbet, RKSimon

Reviewed By: andreadb

Subscribers: tschuett, gbedwell, llvm-commits

Differential Revision: https://reviews.llvm.org/D49329

llvm-svn: 337113
llvm/tools/llvm-mca/InstructionTables.cpp
llvm/tools/llvm-mca/InstructionTables.h
llvm/tools/llvm-mca/PipelinePrinter.cpp
llvm/tools/llvm-mca/llvm-mca.cpp