[llvm] [Docs] Update Opt's Option to Specify Pass Pipeline (NFC) (PR #148402)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 13 03:44:56 PDT 2025
================
@@ -46,12 +46,13 @@ 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="foo,bar", to have analysis passes available before a pass, add
+ "require<foo-analysis>". See `Using the New Pass Manager
----------------
nikic wrote:
Having to explicitly require analyses is rare, I don't think it needs to be mentioned here.
https://github.com/llvm/llvm-project/pull/148402
More information about the llvm-commits
mailing list