[PATCH] D36678: [OpenCL] Do not use vararg in emitted functions for enqueue_kernel

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 14 06:42:09 PDT 2017


yaxunl created this revision.
Herald added a subscriber: tpr.

Not all targets support vararg (e.g. amdgpu). Instead of using vararg in the emitted functions for enqueue_kernel,
this patch creates a temporary array of size_t, stores the size arguments in the temporary array
and passes it to the emitted functions for enqueue_kernel.


https://reviews.llvm.org/D36678

Files:
  lib/CodeGen/CGBuiltin.cpp
  test/CodeGenOpenCL/cl20-device-side-enqueue.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36678.110956.patch
Type: text/x-patch
Size: 18730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170814/506ed816/attachment-0001.bin>


More information about the cfe-commits mailing list