[compiler-rt] [llvm] [PGO][AMDGPU] Add basic HIP offload PGO support (PR #177665)
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 07:13:51 PDT 2026
================
@@ -9,19 +9,68 @@
// This file is a part of AddressSanitizer, an address sanity checker.
//
// Linux-specific interception methods.
+//
+// POSIX dynamic-library helpers (dlopen / dlsym) live here for every
+// non-Windows interception target (Linux, *BSD, Darwin, AIX, Fuchsia, …).
+// macOS/AIX/Fuchsia compile this TU for RTInterception but do not use the
+// Linux-specific InterceptFunction helpers below.
//===----------------------------------------------------------------------===//
#include "interception.h"
+#if !SANITIZER_WINDOWS
+
+# include <dlfcn.h>
+
+# pragma weak dlopen
+# pragma weak dlsym
+# pragma weak dlvsym
----------------
yxsamliu wrote:
In compiler-rt/lib/interception/.clang-format there is IndentPPDirectives: AfterHash, which triggered noises by clang-format. I have reverted pure formatting changes.
https://github.com/llvm/llvm-project/pull/177665
More information about the llvm-commits
mailing list