[all-commits] [llvm/llvm-project] 7476e5: [mlir][Pass] Enable printing pass options as part ...

River Riddle via All-commits all-commits at lists.llvm.org
Fri Feb 7 14:17:59 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7476e569b55ab260522751e9c2e8c5646956f8d1
      https://github.com/llvm/llvm-project/commit/7476e569b55ab260522751e9c2e8c5646956f8d1
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

  Changed paths:
    M mlir/include/mlir/Pass/Pass.h
    M mlir/include/mlir/Pass/PassOptions.h
    M mlir/include/mlir/Pass/PassRegistry.h
    M mlir/lib/Pass/PassRegistry.cpp

  Log Message:
  -----------
  [mlir][Pass] Enable printing pass options as part of `-help`.

Summary:
This revision adds support for printing pass options as part of the normal help description. This also moves registered passes and pipelines into different sections of the help.

Example:
```
  Compiler passes to run
    --pass-pipeline                                     -   ...
    Passes:
      --affine-data-copy-generate                       -   ...
      --convert-gpu-to-spirv                            -   ...
        --workgroup-size=<long>                         - ...
      --test-options-pass                               -   ...
        --list=<int>                                    - ...
        --string=<string>                               - ...
        --string-list=<string>                          - ...
    Pass Pipelines:
      --test-options-pass-pipeline                      -   ...
        --list=<int>                                    - ...
        --string=<string>                               - ...
        --string-list=<string>                          - ...
```

Differential Revision: https://reviews.llvm.org/D74246




More information about the All-commits mailing list