Skip to content

Commit 4a06385

Browse files
committed
fix missing/outdated pass options in registry
1 parent 52040b4 commit 4a06385

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

llvm/lib/Passes/PassRegistry.def

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ MODULE_PASS("wholeprogramdevirt", WholeProgramDevirtPass())
175175
MODULE_PASS_WITH_PARAMS(
176176
"asan", "AddressSanitizerPass",
177177
[](AddressSanitizerOptions Opts) { return AddressSanitizerPass(Opts); },
178-
parseASanPassOptions, "kernel")
178+
parseASanPassOptions, "kernel;use-after-scope")
179179
MODULE_PASS_WITH_PARAMS(
180180
"cg-profile", "CGProfilePass",
181181
[](bool InLTOPostLink) { return CGProfilePass(InLTOPostLink);},
@@ -187,15 +187,15 @@ MODULE_PASS_WITH_PARAMS(
187187
"group-by-use;ignore-single-use;max-offset=N;merge-const;"
188188
"merge-const-aggressive;merge-external;no-group-by-use;"
189189
"no-ignore-single-use;no-merge-const;no-merge-const-aggressive;"
190-
"no-merge-external;size-only")
190+
"no-merge-external")
191191
MODULE_PASS_WITH_PARAMS(
192192
"embed-bitcode", "EmbedBitcodePass",
193193
[](EmbedBitcodeOptions Opts) { return EmbedBitcodePass(Opts); },
194194
parseEmbedBitcodePassOptions, "thinlto;emit-summary")
195195
MODULE_PASS_WITH_PARAMS(
196196
"globaldce", "GlobalDCEPass",
197197
[](bool InLTOPostLink) { return GlobalDCEPass(InLTOPostLink); },
198-
parseGlobalDCEPassOptions, "in-lto-post-link")
198+
parseGlobalDCEPassOptions, "vfe-linkage-unit-visibility")
199199
MODULE_PASS_WITH_PARAMS(
200200
"hwasan", "HWAddressSanitizerPass",
201201
[](HWAddressSanitizerOptions Opts) { return HWAddressSanitizerPass(Opts); },
@@ -581,8 +581,7 @@ FUNCTION_PASS_WITH_PARAMS(
581581
"instcombine", "InstCombinePass",
582582
[](InstCombineOptions Opts) { return InstCombinePass(Opts); },
583583
parseInstCombineOptions,
584-
"no-use-loop-info;use-loop-info;no-verify-fixpoint;verify-fixpoint;"
585-
"max-iterations=N")
584+
"no-verify-fixpoint;verify-fixpoint;max-iterations=N")
586585
FUNCTION_PASS_WITH_PARAMS(
587586
"lint", "LintPass",
588587
[](bool AbortOnError) { return LintPass(AbortOnError); },
@@ -604,7 +603,7 @@ FUNCTION_PASS_WITH_PARAMS(
604603
FUNCTION_PASS_WITH_PARAMS(
605604
"lower-allow-check", "LowerAllowCheckPass",
606605
[](LowerAllowCheckPass::Options Opts) { return LowerAllowCheckPass(Opts); },
607-
parseLowerAllowCheckPassOptions, "")
606+
parseLowerAllowCheckPassOptions, "cutoffs[indices]=N")
608607
FUNCTION_PASS_WITH_PARAMS(
609608
"lower-matrix-intrinsics", "LowerMatrixIntrinsicsPass",
610609
[](bool Minimal) { return LowerMatrixIntrinsicsPass(Minimal); },
@@ -662,10 +661,14 @@ FUNCTION_PASS_WITH_PARAMS(
662661
"simplifycfg", "SimplifyCFGPass",
663662
[](SimplifyCFGOptions Opts) { return SimplifyCFGPass(Opts); },
664663
parseSimplifyCFGOptions,
665-
"no-forward-switch-cond;forward-switch-cond;no-switch-range-to-icmp;"
666-
"switch-range-to-icmp;no-switch-to-lookup;switch-to-lookup;no-keep-loops;"
667-
"keep-loops;no-hoist-common-insts;hoist-common-insts;no-sink-common-insts;"
668-
"sink-common-insts;bonus-inst-threshold=N")
664+
"no-speculate-blocks;speculate-blocks;no-simplify-cond-branch;"
665+
"simplify-cond-branch;no-forward-switch-cond;forward-switch-cond;"
666+
"no-switch-range-to-icmp;switch-range-to-icmp;no-switch-to-lookup;"
667+
"switch-to-lookup;no-keep-loops;keep-loops;no-hoist-common-insts;"
668+
"hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;"
669+
"hoist-loads-stores-with-cond-faulting;no-sink-common-insts;"
670+
"sink-common-insts;no-speculate-unpredictables;speculate-unpredictables;"
671+
"bonus-inst-threshold=N")
669672
FUNCTION_PASS_WITH_PARAMS(
670673
"speculative-execution", "SpeculativeExecutionPass",
671674
[](bool OnlyIfDivergentTarget) {
@@ -693,7 +696,8 @@ FUNCTION_PASS_WITH_PARAMS(
693696
[](BoundsCheckingPass::Options Options) {
694697
return BoundsCheckingPass(Options);
695698
},
696-
parseBoundsCheckingOptions, "trap")
699+
parseBoundsCheckingOptions,
700+
"trap;rt;rt-abort;min-rt;min-rt-abort;merge;guard=N")
697701
#undef FUNCTION_PASS_WITH_PARAMS
698702

699703
#ifndef LOOPNEST_PASS
@@ -753,10 +757,10 @@ LOOP_PASS("print<loopnest>", LoopNestPrinterPass(errs()))
753757
#endif
754758
LOOP_PASS_WITH_PARAMS(
755759
"licm", "LICMPass", [](LICMOptions Params) { return LICMPass(Params); },
756-
parseLICMOptions, "allowspeculation")
760+
parseLICMOptions, "allowspeculation;no-allowspeculation")
757761
LOOP_PASS_WITH_PARAMS(
758762
"lnicm", "LNICMPass", [](LICMOptions Params) { return LNICMPass(Params); },
759-
parseLICMOptions, "allowspeculation")
763+
parseLICMOptions, "allowspeculation;no-allowspeculation")
760764
LOOP_PASS_WITH_PARAMS(
761765
"loop-rotate", "LoopRotatePass",
762766
[](std::pair<bool, bool> Params) {

0 commit comments

Comments
 (0)