diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2021-11-30 14:45:16 -0500 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2021-12-07 18:08:16 -0500 |
commit | d55f05d9f7dc8aa0468a9db19d84671acf05823a (patch) | |
tree | e6c1747c39ab2e436915bd781a6ec7113886ca31 /llvm/lib/IR/Module.cpp | |
parent | f75885977cefe4d5ebbe51f85b353bb9989dd777 (diff) | |
download | llvm-d55f05d9f7dc8aa0468a9db19d84671acf05823a.zip llvm-d55f05d9f7dc8aa0468a9db19d84671acf05823a.tar.gz llvm-d55f05d9f7dc8aa0468a9db19d84671acf05823a.tar.bz2 |
[CUDA][HIP] Add pre-defined macro `__CLANG_RDC__`
nvcc defines __CUDACC_RDC__ for both host and
device compilation when -rdc=true is specified
(https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-identification-macro)
This patch defines __CLANG_RDC__ when -fgpu-rdc
is specified for CUDA/HIP.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D114812
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions