[PATCH] D23915: [OpenCL] Remove access qualifiers on images in arg info metadata.

Tyurin, Evgeniy via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 26 02:16:30 PDT 2016


etyurin created this revision.
etyurin added reviewers: Anastasia, bader, yaxunl.
etyurin added a subscriber: cfe-commits.

Remove access qualifiers on images in arg info metadata:
 * kernel_arg_type
 * kernel_arg_base_type

Image access qualifiers are inseparable from type in clang implementation,
but OpenCL spec provides a special query to get access qualifier
via clGetKernelArgInfo with CL_KERNEL_ARG_ACCESS_QUALIFIER.

Besides that OpenCL conformance test_api get_kernel_arg_info expects
image types without access qualifier.

https://reviews.llvm.org/D23915

Files:
  lib/CodeGen/CodeGenFunction.cpp
  test/CodeGenOpenCL/kernel-arg-info.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23915.69329.patch
Type: text/x-patch
Size: 4815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160826/6f232bd4/attachment.bin>


More information about the cfe-commits mailing list