Skip to content

[Docs] Update Opt's Option to Specify Pass Pipeline (NFC) #148402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions llvm/docs/CommandGuide/opt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ OPTIONS

Write output in LLVM intermediate language (instead of bitcode).

.. option:: -{passname}
.. option:: -passes=<string>

:program:`opt` provides the ability to run any of LLVM's optimization or
analysis passes in any order. The :option:`-help` option lists all the passes
available. The order in which the options occur on the command line are the
order in which they are executed (within pass constraints).
A textual (comma-separated) description of the pass pipeline,
e.g., ``-passes="sroa,instcombine"``. See
`invoking opt <../NewPassManager.html#invoking-opt>`_ for more details on the
pass pipeline syntax.

.. option:: -strip-debug

Expand Down
Loading