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

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 1 06:18:04 PDT 2025


Author: veera
Date: 2025-08-01T15:18:01+02:00
New Revision: 6da1a0908a975a55adb5eae293b37ae0a850b21d

URL: https://github.com/llvm/llvm-project/commit/6da1a0908a975a55adb5eae293b37ae0a850b21d
DIFF: https://github.com/llvm/llvm-project/commit/6da1a0908a975a55adb5eae293b37ae0a850b21d.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/docs/CommandGuide/opt.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CommandGuide/opt.rst b/llvm/docs/CommandGuide/opt.rst
index f067f6253a199..da93b8e4e9c54 100644
--- a/llvm/docs/CommandGuide/opt.rst
+++ b/llvm/docs/CommandGuide/opt.rst
@@ -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
 


        


More information about the llvm-commits mailing list