]> granicus.if.org Git - clang/commit
Always emit kernel arg info for SPIR.
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>
Thu, 4 Dec 2014 05:30:58 +0000 (05:30 +0000)
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>
Thu, 4 Dec 2014 05:30:58 +0000 (05:30 +0000)
commitf514ca8aa824579b46ddecbdebd34315c356505d
treee483a1a7292f40cf18010659b48df2b327eaffa7
parentc082dc34da69a0d0dacf3cbe6de32d259ce43642
Always emit kernel arg info for SPIR.

http://llvm.org/bugs/show_bug.cgi?id=21555

Currently, kernel argument metadata is omitted unless the
"-cl-kernel-arg-info" option is specified. But the SPIR 1.2 spec
requires that all metadata except kernel_arg_name should always be
emitted, and kernel_arg_name is only emitted when
"-cl-kernel-arg-info" is specified.

Patch ported by Ryan Burn from the Khronos SPIR generator.
https://github.com/KhronosGroup/SPIR

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenOpenCL/kernel-arg-info.cl
test/CodeGenOpenCL/kernel-attributes.cl
test/CodeGenOpenCL/kernel-metadata.cl