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)
commitdadc371e851105c77f21a6cb0e67979453b29d22
tree39643a3390e1b865d3831a99352c644d6d15028c
parent326e48cd096cf2960a99699437c5f0f4526854c9
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

llvm-svn: 214308
clang/lib/CodeGen/CodeGenFunction.cpp
clang/test/CodeGenOpenCL/kernel-arg-info.cl