[llvm-mca] Add a new option category for views.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Wed, 25 Apr 2018 11:33:14 +0000 (11:33 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Wed, 25 Apr 2018 11:33:14 +0000 (11:33 +0000)
commit534e1dab7984cab91b341deaa409c73f354dd2b7
tree27a7aecb84fc3ee04f3ab57389d08b4a10b0718b
parent03e85e126c608b023c8e9825aa0495ff24907ac4
[llvm-mca] Add a new option category for views.

With this patch, options to add/tweak views are all grouped together in the
-help output.

The new "View Options" category looks like this:

```
  View Options:

    -dispatch-stats                 - Print dispatch statistics
    -instruction-info               - Print the instruction info view
    -instruction-tables             - Print instruction tables
    -register-file-stats            - Print register file statistics
    -resource-pressure              - Print the resource pressure view
    -retire-stats                   - Print retire control unit statistics
    -scheduler-stats                - Print scheduler statistics
    -timeline                       - Print the timeline view
    -timeline-max-cycles=<uint>     - Maximum number of cycles in the timeline view. Defaults to 80 cycles
    -timeline-max-iterations=<uint> - Maximum number of iterations to print in timeline view
```

llvm-svn: 330816
llvm/tools/llvm-mca/llvm-mca.cpp