[PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 10:14:27 PST 2016
tra updated the summary for this revision.
tra updated this revision to Diff 47335.
tra marked 3 inline comments as done.
tra added a comment.
Updated the way WrongSide functions are removed from consideration during overload resolution.
Previous version could provide inconsistent results depending on the order of candidates in the overload set.
This version removes WrongSide functions from the set before we perform pair-wise comparison of candidates.
Added another test case to make sure HD->{H,H} or HD->{D,D} overloads are resolved consistently during host and device compilation.
http://reviews.llvm.org/D16870
Files:
include/clang/Sema/Sema.h
lib/Sema/SemaCUDA.cpp
lib/Sema/SemaOverload.cpp
test/CodeGenCUDA/function-overload.cu
test/SemaCUDA/function-overload.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16870.47335.patch
Type: text/x-patch
Size: 19737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160209/fe35aa93/attachment-0001.bin>
More information about the cfe-commits
mailing list