Re: [PATCH] D14000: [CUDA] Allow code generation for functions with target attributes that don't match compilation mode.

2016-03-15 Thread Jingyue Wu via cfe-commits
jingyue added a comment. Is this patch obsolete? Are you still trying to push it in? http://reviews.llvm.org/D14000 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-11 Thread Jingyue Wu via cfe-commits
jingyue added a comment. I'll defer to Justin's approval. http://reviews.llvm.org/D16870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-05 Thread Jingyue Wu via cfe-commits
jingyue added inline comments. Comment at: test/SemaCUDA/function-overload.cu:138 @@ -149,3 +137,3 @@ fp_t cdhp = cdh; - gp_t gp = g; // expected-error {{reference to __global__ function 'g' in __global__ function}} - // expected-note@67 {{'g' declared here}} +

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-03 Thread Jingyue Wu via cfe-commits
jingyue added inline comments. Comment at: lib/Sema/SemaCUDA.cpp:132-141 @@ -131,12 +131,12 @@ // (d) HostDevice behavior depends on compilation mode. if (CallerTarget == CFT_HostDevice) { // Calling a function that matches compilation mode is OK. // Calling a func

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-03 Thread Jingyue Wu via cfe-commits
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 comb

r248951 - [CUDA] fix codegen for __nvvm_atom_cas_*

2015-09-30 Thread Jingyue Wu via cfe-commits
Author: jingyue Date: Wed Sep 30 16:49:32 2015 New Revision: 248951 URL: http://llvm.org/viewvc/llvm-project?rev=248951&view=rev Log: [CUDA] fix codegen for __nvvm_atom_cas_* Summary: __nvvm_atom_cas_* returns the old value instead of whether the swap succeeds. Reviewers: eliben, tra Subscribe

Re: [PATCH] D12739: [CUDA] Allow trivial constructors as initializer for __shared__ variables.

2015-09-09 Thread Jingyue Wu via cfe-commits
jingyue accepted this revision. jingyue added a comment. This revision is now accepted and ready to land. Thanks for fixing this. http://reviews.llvm.org/D12739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

r246455 - [CUDA] fix codegen for __nvvm_atom_min/max_gen_u*

2015-08-31 Thread Jingyue Wu via cfe-commits
Author: jingyue Date: Mon Aug 31 12:25:51 2015 New Revision: 246455 URL: http://llvm.org/viewvc/llvm-project?rev=246455&view=rev Log: [CUDA] fix codegen for __nvvm_atom_min/max_gen_u* Summary: Clang should emit "atomicrmw umin/umax" instead of "atomicrmw min/max". Reviewers: eliben, tra Subscri

r245786 - [CUDA] Change initializer for CUDA device code based on CUDA documentation.

2015-08-21 Thread Jingyue Wu via cfe-commits
Author: jingyue Date: Sat Aug 22 00:49:28 2015 New Revision: 245786 URL: http://llvm.org/viewvc/llvm-project?rev=245786&view=rev Log: [CUDA] Change initializer for CUDA device code based on CUDA documentation. Summary: According to CUDA documentation, global variables declared with __device__, __