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
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
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
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