[PATCH] D18458: [CUDA] Mangle __host__ __device__ functions differently than __host__ or __device__ functions.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 24 13:06:07 PDT 2016


jlebar created this revision.
jlebar added a reviewer: rsmith.
jlebar added subscribers: tra, cfe-commits.

This is important because in a later patch, we will allow __host__
__device__ functions to be overloaded with __host__ / __device__
functions with the same signature, and we don't want a naming conflict
in this case.

Based on changes from http://reviews.llvm.org/D12453?vs=on&id=33483.

http://reviews.llvm.org/D18458

Files:
  lib/AST/ItaniumMangle.cpp
  test/CodeGenCUDA/convergent.cu
  test/CodeGenCUDA/device-var-init.cu
  test/CodeGenCUDA/function-overload.cu
  test/CodeGenCUDA/mangling.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18458.51588.patch
Type: text/x-patch
Size: 5657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160324/80f7a0f9/attachment-0001.bin>


More information about the cfe-commits mailing list