[HIP] Support ASAN with malloc/free
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 9 Jan 2023 21:50:15 +0000 (16:50 -0500)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 6 Feb 2023 15:18:02 +0000 (10:18 -0500)
commit993bce9680c6a8f403a4a753fcbcb13ac7cddca3
tree98351d5f6f7b7b9bdcccc51994d3a77934985634
parent1fdf06d6d79ea0ced79d680b7fcd622ef63fb9a5
[HIP] Support ASAN with malloc/free

Device side malloc/free needs special
implementation for ASAN.

Reviewed by: Artem Belevich, Matt Arsenault

Differential Revision: https://reviews.llvm.org/D143111
clang/lib/Headers/__clang_hip_runtime_wrapper.h
clang/test/Headers/hip-header.hip