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.


http://reviews.llvm.org/D18458



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to