diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-05-05 15:36:47 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-05-05 15:36:47 +0000 |
commit | 450ea7aed3470a14795f4774c6a33fdc2abd478c (patch) | |
tree | 63644788b2489f1a90e66d09b808f29e97ec257b /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | 259f8ddff590059b8b338addb275f77b0fc34191 (diff) | |
download | bcm5719-llvm-450ea7aed3470a14795f4774c6a33fdc2abd478c.tar.gz bcm5719-llvm-450ea7aed3470a14795f4774c6a33fdc2abd478c.zip |
[llvm-mca] removes flag -instruction-tables from the "View Options" category.
This patch also improves the description of a couple of flags in the view
options. With this change, the -help now specifies which views are enabled by
default.
llvm-svn: 331594
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index abd6d8a85e9..75ffca6d20d 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -97,48 +97,40 @@ static cl::opt<unsigned> static cl::opt<bool> PrintRegisterFileStats("register-file-stats", cl::desc("Print register file statistics"), - cl::cat(ViewOptions), - cl::init(false)); + cl::cat(ViewOptions), cl::init(false)); static cl::opt<bool> PrintDispatchStats("dispatch-stats", cl::desc("Print dispatch statistics"), - cl::cat(ViewOptions), - cl::init(false)); + cl::cat(ViewOptions), cl::init(false)); static cl::opt<bool> PrintSchedulerStats("scheduler-stats", cl::desc("Print scheduler statistics"), - cl::cat(ViewOptions), - cl::init(false)); + cl::cat(ViewOptions), cl::init(false)); static cl::opt<bool> PrintRetireStats("retire-stats", cl::desc("Print retire control unit statistics"), - cl::cat(ViewOptions), - cl::init(false)); + cl::cat(ViewOptions), cl::init(false)); -static cl::opt<bool> - PrintResourcePressureView("resource-pressure", - cl::desc("Print the resource pressure view"), - cl::cat(ViewOptions), - cl::init(true)); +static cl::opt<bool> PrintResourcePressureView( + "resource-pressure", + cl::desc("Print the resource pressure view (enabled by default)"), + cl::cat(ViewOptions), cl::init(true)); static cl::opt<bool> PrintTimelineView("timeline", cl::desc("Print the timeline view"), - cl::cat(ViewOptions), - cl::init(false)); + cl::cat(ViewOptions), cl::init(false)); static cl::opt<unsigned> TimelineMaxIterations( "timeline-max-iterations", cl::desc("Maximum number of iterations to print in timeline view"), - cl::cat(ViewOptions), - cl::init(0)); + cl::cat(ViewOptions), cl::init(0)); static cl::opt<unsigned> TimelineMaxCycles( "timeline-max-cycles", cl::desc( "Maximum number of cycles in the timeline view. Defaults to 80 cycles"), - cl::cat(ViewOptions), - cl::init(80)); + cl::cat(ViewOptions), cl::init(80)); static cl::opt<bool> AssumeNoAlias( "noalias", @@ -154,14 +146,12 @@ static cl::opt<unsigned> static cl::opt<bool> PrintInstructionTables("instruction-tables", cl::desc("Print instruction tables"), - cl::cat(ViewOptions), cl::init(false)); -static cl::opt<bool> - PrintInstructionInfoView("instruction-info", - cl::desc("Print the instruction info view"), - cl::cat(ViewOptions), - cl::init(true)); +static cl::opt<bool> PrintInstructionInfoView( + "instruction-info", + cl::desc("Print the instruction info view (enabled by default)"), + cl::cat(ViewOptions), cl::init(true)); namespace { |