Skip to content

[NFC] Clarify the syntax of passes flag #136175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions llvm/tools/opt/optdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down
Loading