[MCA] Moved View.h and View.cpp from /tools/llvm-mca/ to /lib/MCA/.
authorPatrick Holland <patrickeholland@gmail.com>
Sun, 22 Aug 2021 00:37:02 +0000 (17:37 -0700)
committerPatrick Holland <patrickeholland@gmail.com>
Wed, 25 Aug 2021 19:12:47 +0000 (12:12 -0700)
commitfe01014faa336d25543561fc65201dea7f424347
tree33b5845b594976775366cfb538b184e8dfb87ac9
parentb72fd31bdaf2cba3bac03a1d83a231266160527c
[MCA] Moved View.h and View.cpp from /tools/llvm-mca/ to /lib/MCA/.

Moved View.h and View.cpp from /tools/llvm-mca/Views/ to /lib/MCA/ and
/include/llvm/MCA/. This is so that targets can define their own Views within
the /lib/Target/ directory (so that the View can use backend functionality).
To enable these Views within mca, targets will need to add them to the vector of
Views returned by their target's CustomBehaviour::getViews() methods.

Differential Revision: https://reviews.llvm.org/D108520
16 files changed:
llvm/docs/CommandGuide/llvm-mca.rst
llvm/include/llvm/MCA/CustomBehaviour.h
llvm/include/llvm/MCA/View.h [moved from llvm/tools/llvm-mca/Views/View.h with 94% similarity]
llvm/lib/MCA/CMakeLists.txt
llvm/lib/MCA/CustomBehaviour.cpp
llvm/lib/MCA/View.cpp [moved from llvm/tools/llvm-mca/Views/View.cpp with 96% similarity]
llvm/tools/llvm-mca/CMakeLists.txt
llvm/tools/llvm-mca/PipelinePrinter.cpp
llvm/tools/llvm-mca/PipelinePrinter.h
llvm/tools/llvm-mca/Views/DispatchStatistics.h
llvm/tools/llvm-mca/Views/InstructionView.h
llvm/tools/llvm-mca/Views/RegisterFileStatistics.h
llvm/tools/llvm-mca/Views/RetireControlUnitStatistics.h
llvm/tools/llvm-mca/Views/SchedulerStatistics.h
llvm/tools/llvm-mca/Views/SummaryView.h
llvm/tools/llvm-mca/llvm-mca.cpp