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

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 13:41:57 PST 2016


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 LLVM pass lowering printf to vprintf; this
one does something similar, but in Clang codegen.

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_wrapper.h
  test/CodeGenCUDA/Inputs/cuda.h
  test/CodeGenCUDA/printf.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16372.45439.patch
Type: text/x-patch
Size: 10003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160120/67173217/attachment.bin>


More information about the cfe-commits mailing list