[PATCH] D143111: [HIP] Support ASAN with malloc/free

2023-02-06 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. yaxunl marked an inline comment as done. Closed by commit rG993bce9680c6: [HIP] Support ASAN with malloc/free (authored by yaxunl). Herald added a project: clang. Repo

[PATCH] D143111: [HIP] Support ASAN with malloc/free

2023-02-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked an inline comment as done. yaxunl added inline comments. Comment at: clang/test/Headers/hip-header.hip:142 +// MALLOC-ASAN-LABEL: define weak {{.*}}i8* @malloc(i64 +// MALLOC-ASAN: call i8* @llvm.returnaddress(i32 0) +// MALLOC-ASAN: call i64 @__asan_malloc_impl(i

[PATCH] D143111: [HIP] Support ASAN with malloc/free

2023-02-02 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: clang/test/Headers/hip-header.hip:142 +// MALLOC-ASAN-LABEL: define weak {{.*}}i8* @malloc(i64 +// MALLOC-ASAN: call i8* @llvm.returnaddress(i32 0) +// MALLOC-ASAN: call i64 @__asan_malloc_impl(i64 {{.*}}, i64 {{.*}}) S

[PATCH] D143111: [HIP] Support ASAN with malloc/free

2023-02-01 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added reviewers: tra, b-sumner. Herald added a project: All. yaxunl requested review of this revision. Device side malloc/free needs special implementation for ASAN. https://reviews.llvm.org/D143111 Files: clang/lib/Headers/__clang_hip_runtime_wrapper.h