[llvm] Scalarizer: Replace cl::opts with pass parameters (PR #110645)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 11:55:07 PDT 2024


================
@@ -573,6 +572,12 @@ FUNCTION_PASS_WITH_PARAMS(
       return StackLifetimePrinterPass(dbgs(), Type);
     },
     parseStackLifetimeOptions, "may;must")
+FUNCTION_PASS_WITH_PARAMS(
+    "scalarizer", "ScalarizerPass",
+    [](ScalarizerPassOptions Opts) { return ScalarizerPass(Opts); },
+    parseScalarizerOptions,
+    "load-store;no-load-store;variable-insert-extract;"
+    "no-variable-insert-extract;no-min-bits=N;min-bits=N;")
----------------
arsenm wrote:

I copied this from some of the other thresholds, but I don't see how it makes any sense. I think I'll just drop it 

https://github.com/llvm/llvm-project/pull/110645


More information about the llvm-commits mailing list