diff --git a/tools/llvm-mca/llvm-mca.cpp b/tools/llvm-mca/llvm-mca.cpp index d0f942a6dde..73d4d8efb25 100644 --- a/tools/llvm-mca/llvm-mca.cpp +++ b/tools/llvm-mca/llvm-mca.cpp @@ -52,6 +52,8 @@ using namespace llvm; +llvm::cl::OptionCategory ViewOptions("View Options"); + static cl::opt InputFilename(cl::Positional, cl::desc(""), cl::init("-")); @@ -95,39 +97,47 @@ static cl::opt static cl::opt PrintRegisterFileStats("register-file-stats", cl::desc("Print register file statistics"), + cl::cat(ViewOptions), cl::init(false)); static cl::opt PrintDispatchStats("dispatch-stats", cl::desc("Print dispatch statistics"), + cl::cat(ViewOptions), cl::init(false)); static cl::opt PrintSchedulerStats("scheduler-stats", cl::desc("Print scheduler statistics"), + cl::cat(ViewOptions), cl::init(false)); static cl::opt PrintRetireStats("retire-stats", cl::desc("Print retire control unit statistics"), + cl::cat(ViewOptions), cl::init(false)); static cl::opt PrintResourcePressureView("resource-pressure", cl::desc("Print the resource pressure view"), + cl::cat(ViewOptions), cl::init(true)); static cl::opt PrintTimelineView("timeline", cl::desc("Print the timeline view"), + cl::cat(ViewOptions), cl::init(false)); static cl::opt TimelineMaxIterations( "timeline-max-iterations", cl::desc("Maximum number of iterations to print in timeline view"), + cl::cat(ViewOptions), cl::init(0)); static cl::opt TimelineMaxCycles( "timeline-max-cycles", cl::desc( "Maximum number of cycles in the timeline view. Defaults to 80 cycles"), + cl::cat(ViewOptions), cl::init(80)); static cl::opt AssumeNoAlias( @@ -144,11 +154,13 @@ static cl::opt static cl::opt PrintInstructionTables("instruction-tables", cl::desc("Print instruction tables"), + cl::cat(ViewOptions), cl::init(false)); static cl::opt PrintInstructionInfoView("instruction-info", cl::desc("Print the instruction info view"), + cl::cat(ViewOptions), cl::init(true)); namespace {