[compiler-rt] [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
Fri Jul 17 03:03:58 PDT 2026


================
@@ -0,0 +1,141 @@
+//===-- hsa/hsa_ext_amd.h ----------------------------- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Minimal AMD HSA extension declarations used by compiler-rt host sanitizers.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef HSA_EXT_AMD_H_
----------------
ampandey-1995 wrote:

I am not sure about this . `compiler-rt` is frequently built standalone (COMPILER_RT_STANDALONE_BUILD) without `offload/` present, and neither subproject is supposed to #include from the other's source tree. There should be a neutral location in llvm-project where both offload and compiler-rt components can access. 

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


More information about the llvm-commits mailing list