diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-05-11 12:57:21 -0400 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-05-23 11:52:52 -0400 |
commit | f5033c37025db46df95a7859d7189d09b5e3433e (patch) | |
tree | f35eabbcbaa916d3e37623e048da995a8d6ac716 /llvm/lib/IR/Module.cpp | |
parent | 18c4695dedb4fad1132b50bf2c247afd8413e321 (diff) | |
download | llvm-f5033c37025db46df95a7859d7189d09b5e3433e.zip llvm-f5033c37025db46df95a7859d7189d09b5e3433e.tar.gz llvm-f5033c37025db46df95a7859d7189d09b5e3433e.tar.bz2 |
[HIP] Allow std::malloc in device function
D106463 caused a regression that prevents std::malloc to be
called in the device function, which is allowed with nvcc.
Basically the standard C++ header introducing malloc in
std namespace by using ::malloc. The device ::malloc
function needs to be declared before using ::malloc
to be introduced into std namespace.
Revert D106463 and add a test.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D150965
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions