[PATCH] D18458: [CUDA] Mangle __host__ __device__ functions differently than __host__ or __device__ functions.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 13:52:09 PDT 2016
rsmith added a comment.
It seems like we have the following constraint: on host, no attributes must mangle the same as `__host__ __device__` and `constexpr` (and probably `__global__`?).
Are there any others? What do we need to do to be ABI-compatible with NVCC? (And is that possible if we allow `__host__` to overload `__host__ __device__`?)
One possibility given only that constraint would be to use a different mangling for H functions and D functions, but mangle HD and unattributed functions the same.
More information about the cfe-commits