[PATCH] D17890: [OpenMP][NVPTX][CUDA] Adding support for printf for an NVPTX OpenMP device.

Arpith Jacob via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 4 08:44:40 PST 2016


arpith-jacob created this revision.
arpith-jacob added a reviewer: jlebar.
arpith-jacob added subscribers: carlo.bertolli, sfantao, caomhin, cfe-commits.

Support for CUDA printf is exploited to support printf for an NVPTX OpenMP device.

To reflect the support of both programming models, the file CGCUDABuiltin.cpp has been changed to CGGPUBuiltin.cpp, and the call EmitCUDADevicePrintfCallExpr has been changed to EmitGPUDevicePrintfCallExpr.

http://reviews.llvm.org/D17890

Files:
  lib/CodeGen/CGBuiltin.cpp
  lib/CodeGen/CGCUDABuiltin.cpp
  lib/CodeGen/CGGPUBuiltin.cpp
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/CodeGenFunction.h
  test/OpenMP/nvptx_target_printf_codegen.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17890.49832.patch
Type: text/x-patch
Size: 15755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160304/13ae41a0/attachment-0001.bin>


More information about the cfe-commits mailing list