]> granicus.if.org Git - clang/commit
Add OpenCL/SPIR kernel_arg_base_type metadata node
authorFraser Cormack <fraser@codeplay.com>
Wed, 30 Jul 2014 14:39:53 +0000 (14:39 +0000)
committerFraser Cormack <fraser@codeplay.com>
Wed, 30 Jul 2014 14:39:53 +0000 (14:39 +0000)
commitbe6a901f17b98b0b0c62cf62463528958a6aaa12
treec97242d82259e18e289f0483d3f6256f565b565f
parent09c64f6528b118e5e37e01402b8ac8fc9ec33c57
Add OpenCL/SPIR kernel_arg_base_type metadata node

As defined in the SPIR 1.2 specification, this node behaves similarly to
kernel_arg_type but will print the underlying type name, e.g., without
typedefs.

Example:
  typedef unsigned int myunsignedint;
would report:
  'myunsignedint' in the kernel_arg_type node
  'uint' in the kernel_arg_base_type node

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