[llvm] 715b1d5 - [NFC] Clarify the syntax of passes flag (#136175)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 06:18:46 PDT 2025


Author: AdityaK
Date: 2025-04-25T06:18:43-07:00
New Revision: 715b1d59ec45dba361030d5413007635722c794f

URL: https://github.com/llvm/llvm-project/commit/715b1d59ec45dba361030d5413007635722c794f
DIFF: https://github.com/llvm/llvm-project/commit/715b1d59ec45dba361030d5413007635722c794f.diff

LOG: [NFC] Clarify the syntax of passes flag (#136175)

Added: 
    

Modified: 
    llvm/tools/opt/optdriver.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/opt/optdriver.cpp b/llvm/tools/opt/optdriver.cpp
index 78ed1662682d9..5ca4d883697f0 100644
--- a/llvm/tools/opt/optdriver.cpp
+++ b/llvm/tools/opt/optdriver.cpp
@@ -84,8 +84,12 @@ static cl::opt<bool> EnableLegacyPassManager(
 static cl::opt<std::string> PassPipeline(
     "passes",
     cl::desc(
-        "A textual description of the pass pipeline. To have analysis passes "
-        "available before a certain pass, add \"require<foo-analysis>\"."));
+        "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 "
+        "https://llvm.org/docs/NewPassManager.html#invoking-opt "
+        "for more details on the pass pipeline syntax. "));
+
 static cl::alias PassPipeline2("p", cl::aliasopt(PassPipeline),
                                cl::desc("Alias for -passes"));
 


        


More information about the llvm-commits mailing list