[clang] [lld] [llvm] [RFC][LTO] Move responsibility for plugin loading to the hosts (PR #243887)

Alexis Engelke via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 22 08:11:27 PST 2026


Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/243887 at github.com>


aengelke wrote:

> PluginLoader.h itself looks like it's pretty widely used, but if I'm understanding correctly, nobody is currently suggesting we remove that?

PluginLoader.h is only useful when the plugin registers things using global ctors (e.g. cl::opt), which we're moving away from towards explicit configuration and calling of plugin functionality through the front-end/driver (e.g. as already done since a long time with pass plugins, which are explicitly called when they can do something). Ultimately, I think we should drop PluginLoader entirely; for opt, llvm-lto2, and lld this should be possible already, which only leaves clangd and clang-tidy -- areas I don't know much about.

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


More information about the cfe-commits mailing list