[llvm] [OFFLOAD] Stricter enforcement of user offload disable (PR #133470)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 13:27:54 PDT 2025


================
@@ -39,6 +40,10 @@ void initRuntime() {
     llvm::omp::target::ompt::connectLibrary();
 #endif
 
+    if (OffloadPolicy::isOffloadDisabled()) {
----------------
jhuber6 wrote:

I'd prefer this in the `PM->init` function. Also use `git clang-format HEAD~1` to make sure everything's formatted.

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


More information about the llvm-commits mailing list