Skip to content

[NFC] Make some PassManager options to accept comma separated values #32141

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
Jun 11, 2020
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
16 changes: 8 additions & 8 deletions lib/SILOptimizer/PassManager/PassManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,42 +69,42 @@ llvm::cl::opt<std::string>
"whose name contains this substring"));

llvm::cl::list<std::string>
SILPrintBefore("sil-print-before",
SILPrintBefore("sil-print-before", llvm::cl::CommaSeparated,
llvm::cl::desc("Print out the sil before passes which "
"contain a string from this list."));

llvm::cl::list<std::string>
SILPrintAfter("sil-print-after",
SILPrintAfter("sil-print-after", llvm::cl::CommaSeparated,
llvm::cl::desc("Print out the sil after passes which contain "
"a string from this list."));

llvm::cl::list<std::string>
SILPrintAround("sil-print-around",
SILPrintAround("sil-print-around", llvm::cl::CommaSeparated,
llvm::cl::desc("Print out the sil before and after passes "
"which contain a string from this list"));

llvm::cl::list<std::string>
SILDisablePass("sil-disable-pass",
SILDisablePass("sil-disable-pass", llvm::cl::CommaSeparated,
llvm::cl::desc("Disable passes "
"which contain a string from this list"));

llvm::cl::list<std::string> SILVerifyBeforePass(
"sil-verify-before-pass",
"sil-verify-before-pass", llvm::cl::CommaSeparated,
llvm::cl::desc("Verify the module/analyses before we run "
"a pass from this list"));

llvm::cl::list<std::string> SILVerifyAroundPass(
"sil-verify-around-pass",
"sil-verify-around-pass", llvm::cl::CommaSeparated,
llvm::cl::desc("Verify the module/analyses before/after we run "
"a pass from this list"));

llvm::cl::list<std::string>
SILVerifyAfterPass("sil-verify-after-pass",
SILVerifyAfterPass("sil-verify-after-pass", llvm::cl::CommaSeparated,
llvm::cl::desc("Verify the module/analyses after we run "
"a pass from this list"));

llvm::cl::list<std::string> SILForceVerifyAroundPass(
"sil-verify-force-analysis-around-pass",
"sil-verify-force-analysis-around-pass", llvm::cl::CommaSeparated,
llvm::cl::desc("For the given passes, precompute analyses before the pass "
"and verify analyses after the pass"));

Expand Down