[compiler-rt] [llvm] [compiler-rt][asan] Add AMDGPU ASan support via HSA API interceptors. (PR #192240)

Amit Kumar Pandey via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 00:03:31 PDT 2026


================
@@ -269,7 +269,14 @@ static const uptr kNumberOfSizeClasses = SizeClassMap::kNumClasses;
 
 template <typename AddressSpaceView>
 using AsanAllocatorASVT =
+#if SANITIZER_AMDHSA
----------------
ampandey-1995 wrote:

On Linux (non-Android), SANITIZER_AMDHSA is enabled by default, so AsanAllocator is always DeviceCombinedAllocator<...>. That does not mean host malloc/free go through the device heap — those still use the inner `CombinedAllocator`. The device tier is only used when HSA interceptors call `AllocateDevice` with a non-null `DeviceAllocationInfo`. The HSA backend stays inactive until ROCr is dlopen'd.

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


More information about the llvm-commits mailing list