diff options
| author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2025-05-07 22:03:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-07 22:03:33 -0400 |
| commit | c16297cd3f0ed9d036e9cf16fb6885aa3c72d5d3 (patch) | |
| tree | bc4ef7a15694b308761bc1648cb387d40762ae84 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | b972164f38133fbc878275f4ae324908ae14d750 (diff) | |
[CUDA][HIP] Fix host/device attribute of builtin (#138162)
When a builtin function is passed a pointer with a different
address space, clang creates an overloaded
builtin function but does not copy the host/device attribute. This
causes
error when the builtin is called by device functions
since CUDA/HIP relies on the host/device attribute to treat
a builtin function as callable on both host and device
sides.
Fixed by copying the host/device attribute of the original
builtin function to the created overloaded builtin function.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
