[llvm] [offload][omp] Move reading _kernel_environment to libomptarget (PR #222606)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 06:01:27 PDT 2026


================
@@ -44,6 +47,8 @@ void PluginManager::init() {
   do {                                                                         \
     Plugins.emplace_back(                                                      \
         std::unique_ptr<GenericPluginTy>(createPlugin_##Name()));              \
+    if (strcmp(#Name, "host") == 0)                                            \
+      HostPlugin = Plugins.back().get();                                       \
----------------
jhuber6 wrote:

I'm not a fan of this being added as a special case. Any way we could simplify it? It seems the only reason we need this is to fork off of the execution mode, but does the host plugin even use that?

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


More information about the llvm-commits mailing list