[CUDA] Merge most of CodeGenCUDA/function-overload.cu into SemaCUDA/function-overload.cu.
authorJustin Lebar <jlebar@google.com>
Wed, 23 Mar 2016 22:42:30 +0000 (22:42 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 23 Mar 2016 22:42:30 +0000 (22:42 +0000)
commite5eed04d52fb2a45f012cfe83f54659f811db2a0
tree9093d680d4e1327e8bd25939eda7fc4e425d645e
parente82caa3055692d396c5cbb5a0a7c9241153c4b9f
[CUDA] Merge most of CodeGenCUDA/function-overload.cu into SemaCUDA/function-overload.cu.

Summary:
Previously we were using the codegen test to ensure that we choose the
right overload.  But we can do this within sema, with a bit of
cleverness.

I left the constructor/destructor checks in CodeGen, because these
overloads (particularly on the destructors) are hard to check in Sema.

Reviewers: tra

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D18386

llvm-svn: 264207
clang/test/CodeGenCUDA/function-overload.cu
clang/test/SemaCUDA/function-overload.cu