Skip to content

Commit b5a8b51

Browse files
authored
Merge pull request #32141 from meg-gupta/commaflags
[NFC] Make some PassManager options to accept comma separated values
2 parents 409603c + 15583ac commit b5a8b51

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/SILOptimizer/PassManager/PassManager.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,42 +69,42 @@ llvm::cl::opt<std::string>
6969
"whose name contains this substring"));
7070

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)