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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 20:04:32 PDT 2026


================
@@ -64,8 +70,10 @@ class CombinedAllocator {
     // using a non-fixed base address). The secondary takes care of the
     // alignment without such requirement, and allocating 'size' would use
     // extraneous memory, so we employ 'original_size'.
-    void *res;
-    if (primary_.CanAllocate(size, alignment))
+    void* res;
+    if (da_info)
----------------
vitalybuka wrote:

why do we nee to go through combined if we endup in device allocato if we go from amd side?

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


More information about the llvm-commits mailing list