diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-23 19:40:04 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-23 19:40:04 +0000 |
commit | df5d9486aa4e044b0d7954689fa578fae02e06a0 (patch) | |
tree | 7c36d8fd26744c433522e1649e8b663f80e6e86e /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | 6f503b96fb75f271b5081d6535941ae96a19b112 (diff) | |
download | bcm5719-llvm-df5d9486aa4e044b0d7954689fa578fae02e06a0.tar.gz bcm5719-llvm-df5d9486aa4e044b0d7954689fa578fae02e06a0.zip |
[llvm-mca] Split the InstructionInfoView from the SummaryView.
llvm-svn: 328358
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 5c085af9685..2ddba762f88 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -23,6 +23,7 @@ #include "BackendPrinter.h" #include "BackendStatistics.h" +#include "InstructionInfoView.h" #include "ResourcePressureView.h" #include "SummaryView.h" #include "TimelineView.h" @@ -332,8 +333,10 @@ int main(int argc, char **argv) { std::unique_ptr<mca::BackendPrinter> Printer = llvm::make_unique<mca::BackendPrinter>(*B); + Printer->addView(llvm::make_unique<mca::SummaryView>(*S, Width)); + Printer->addView( - llvm::make_unique<mca::SummaryView>(*STI, *MCII, *S, *IP, Width)); + llvm::make_unique<mca::InstructionInfoView>(*STI, *MCII, *S, *IP)); if (PrintModeVerbose) Printer->addView(llvm::make_unique<mca::BackendStatistics>(*STI)); |