[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:54:29 PDT 2024


arsenm wrote:

> We intentionally brought back the old pass manager semantics. The directX backend is still experimental so if someone removes the legacy pass manager our builds will break silently. Our thinking was keeping around the legacy flag makes it so someone has to grep the codebase before removing.

If you want to set the options from an invocation in the backend, you can still directly pass them to the pass constructor. cl::opts are not a viable way for backends to configure passes, and only potentially useful for test flags and debugging (where running in old PM is obsolete). 

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


More information about the llvm-commits mailing list