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

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 05:52: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();                                       \
----------------
adurang wrote:

Just for the non-existing-environment fallback. It's different for the host than other plugins... :/

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


More information about the llvm-commits mailing list