Skip to content

Commit 6da1a09

Browse files
[Docs] Update Opt's Option to Specify Pass Pipeline (NFC) (#148402)
Since the new pass manager, we use `--passes=<string>` to specify the pass pipeline instead of the `-{passname}` syntax.
1 parent 3eda63c commit 6da1a09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/docs/CommandGuide/opt.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ OPTIONS
4646

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

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

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

5656
.. option:: -strip-debug
5757

0 commit comments

Comments
 (0)