Re: [PATCH] D16372: [CUDA] Make printf work.

2016-01-23 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL258642: [CUDA] Make printf work. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D16372?vs=45456&id=45810#toc Repository: rL LLVM http://reviews.llvm.org/D16372 Files: cfe/t

Re: [PATCH] D16372: [CUDA] Make printf work.

2016-01-20 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. This revision is now accepted and ready to land. Looks reasonable to me. -eric http://reviews.llvm.org/D16372 ___ cfe-commits mailing list cfe-commits@l

Re: [PATCH] D16372: [CUDA] Make printf work.

2016-01-20 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 45456. jlebar marked 3 inline comments as done. jlebar added a comment. Address tra's review comments. http://reviews.llvm.org/D16372 Files: lib/CodeGen/CGBuiltin.cpp lib/CodeGen/CGCUDABuiltin.cpp lib/CodeGen/CMakeLists.txt lib/CodeGen/CodeGenFunctio

Re: [PATCH] D16372: [CUDA] Make printf work.

2016-01-20 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: test/CodeGenCUDA/printf.cu:12 @@ +11,3 @@ +// Check a simple call to printf end-to-end. +__device__ int CheckSimple() { + // CHECK: [[FMT:%[0-9]+]] = load{{.*}}%fmt tra wrote: > You may want to add a test case for printf(

Re: [PATCH] D16372: [CUDA] Make printf work.

2016-01-20 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: lib/CodeGen/CGCUDACall.cpp:1 @@ +1,2 @@ +//===- CGCUDACall.cpp - Codegen for special CUDA calls ===// +// We'll need to handle other builtins soon. Perhaps we can keep them in this file and rename it CGC

Re: [PATCH] D16372: [CUDA] Make printf work.

2016-01-20 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 45446. jlebar added a comment. Remove {} around an if statement. http://reviews.llvm.org/D16372 Files: lib/CodeGen/CGBuiltin.cpp lib/CodeGen/CGCUDACall.cpp lib/CodeGen/CMakeLists.txt lib/CodeGen/CodeGenFunction.h lib/Headers/__clang_cuda_runtime_wr

[PATCH] D16372: [CUDA] Make printf work.

2016-01-20 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added subscribers: jhen, echristo, cfe-commits. The code in CGCUDACall is largely based on a patch written by Eli Bendersky: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20140324/210218.html That patch implemented an L