Skip to content

Commit ed3f0fe

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/docs/CommandGuide/opt.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ 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="foo,bar", to have analysis passes available before a pass, add
53+
"require<foo-analysis>". See `Using the New Pass Manager
54+
<../NewPassManager.html>`_, section ``#invoking-opt`` for more details on the
55+
pass pipeline syntax.
5556

5657
.. option:: -strip-debug
5758

0 commit comments

Comments
 (0)