[compiler-rt] [compiler-rt][asan] Add AMDGPU ASan support via HSA API interceptors. (PR #192240)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 11:46:42 PDT 2026
================
@@ -56,6 +56,13 @@ void ReportNewDeleteTypeMismatch(uptr addr, uptr delete_size,
void ReportFreeSizeMismatch(uptr addr, uptr delete_size, uptr delete_alignment,
BufferedStackTrace* free_stack);
void ReportDoubleFree(uptr addr, BufferedStackTrace *free_stack);
+#if SANITIZER_AMDHSA
----------------
jhuber6 wrote:
General question, why do these need to be guarded with `SANITIZER_AMDHSA`? They're just forward declarations, and I think in general sanitizers are intended to be compiled for whatever can be supported. I am curious what our discriminator is here, we either force the uesr to pass `ON` for this, or do it by default and add a few KB to a static library on Linux. Static linking semantics should mean that we don't link anything that's not actually used, as long as these are properly separated (part of why I said that everything needs to be in its own file more or less).
https://github.com/llvm/llvm-project/pull/192240
More information about the llvm-commits
mailing list