summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/llvm-mca.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-11 12:12:53 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-11 12:12:53 +0000
commitf41ad5c59efd7a11d78b9742228dcf858bd33d84 (patch)
tree9f4dfcdc009eb0a9551d1999eb5f0b311faf1546 /llvm/tools/llvm-mca/llvm-mca.cpp
parent1cc29c045e07dd2f9adda3a5569df6e249613135 (diff)
downloadbcm5719-llvm-f41ad5c59efd7a11d78b9742228dcf858bd33d84.tar.gz
bcm5719-llvm-f41ad5c59efd7a11d78b9742228dcf858bd33d84.zip
[llvm-mca] Renamed BackendStatistics to RetireControlUnitStatistics.
Also, removed flag -verbose in favor of flag -retire-stats. llvm-svn: 329794
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r--llvm/tools/llvm-mca/llvm-mca.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp
index 7b50196f418..3cb62928349 100644
--- a/llvm/tools/llvm-mca/llvm-mca.cpp
+++ b/llvm/tools/llvm-mca/llvm-mca.cpp
@@ -22,13 +22,13 @@
//===----------------------------------------------------------------------===//
#include "BackendPrinter.h"
-#include "BackendStatistics.h"
#include "CodeRegion.h"
#include "DispatchStatistics.h"
#include "InstructionInfoView.h"
#include "InstructionTables.h"
#include "RegisterFileStatistics.h"
#include "ResourcePressureView.h"
+#include "RetireControlUnitStatistics.h"
#include "SchedulerStatistics.h"
#include "SummaryView.h"
#include "TimelineView.h"
@@ -101,11 +101,16 @@ static cl::opt<bool>
cl::init(false));
static cl::opt<bool>
- PrintiSchedulerStats("scheduler-stats",
+ PrintSchedulerStats("scheduler-stats",
cl::desc("Print scheduler statistics"),
cl::init(false));
static cl::opt<bool>
+ PrintRetireStats("retire-stats",
+ cl::desc("Print retire control unit statistics"),
+ cl::init(false));
+
+static cl::opt<bool>
PrintResourcePressureView("resource-pressure",
cl::desc("Print the resource pressure view"),
cl::init(true));
@@ -438,11 +443,11 @@ int main(int argc, char **argv) {
if (PrintDispatchStats)
Printer.addView(llvm::make_unique<mca::DispatchStatistics>(*STI));
- if (PrintiSchedulerStats)
+ if (PrintSchedulerStats)
Printer.addView(llvm::make_unique<mca::SchedulerStatistics>(*STI));
- if (PrintModeVerbose)
- Printer.addView(llvm::make_unique<mca::BackendStatistics>(*STI));
+ if (PrintRetireStats)
+ Printer.addView(llvm::make_unique<mca::RetireControlUnitStatistics>());
if (PrintRegisterFileStats)
Printer.addView(llvm::make_unique<mca::RegisterFileStatistics>(*STI));
OpenPOWER on IntegriCloud