[PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.
Jingyue Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 3 17:43:59 PST 2016
jingyue added inline comments.
================
Comment at: include/clang/Sema/Sema.h:8801
@@ -8798,3 +8800,3 @@
// LangOpts.CUDADisableTargetCallChecks is true.
- CFP_Fallback, // Low priority caller/callee combination
- CFP_Best, // Preferred caller/callee combination
+ CFP_SameSide, // Calls from host-device to host or device
+ // function matching current compilation mode.
----------------
Why not merging CFP_SameSide and CFP_Native? You can conceptually treat HD as H in host mode or D in device mode. Then, it seems that we can just reuse CFP_Native to express the same meaning.
http://reviews.llvm.org/D16870
More information about the cfe-commits
mailing list