Files
clang-p2996/clang/lib/Frontend/InitPreprocessor.cpp
Yaxun (Sam) Liu d55f05d9f7 [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
2021-12-07 18:08:16 -05:00

55 KiB