aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringMapTest.cpp
diff options
context:
space:
mode:
authorEgor Churaev <egor.churaev@gmail.com>2017-03-31 10:14:52 +0000
committerEgor Churaev <egor.churaev@gmail.com>2017-03-31 10:14:52 +0000
commitba8b84d7fb9b5e8253386930a9fa464cbeef3d81 (patch)
treed5089c681016640ec3b45839b6fea95b572aed89 /llvm/unittests/ADT/StringMapTest.cpp
parent2a7d39dfe8cf0681baa5b64effc641a9c04a2a71 (diff)
downloadllvm-ba8b84d7fb9b5e8253386930a9fa464cbeef3d81.zip
llvm-ba8b84d7fb9b5e8253386930a9fa464cbeef3d81.tar.gz
llvm-ba8b84d7fb9b5e8253386930a9fa464cbeef3d81.tar.bz2
[OpenCL] Do not generate "kernel_arg_type_qual" metadata for non-pointer args
Summary: "kernel_arg_type_qual" metadata should contain const/volatile/restrict tags only for pointer types to match the corresponding requirement of the OpenCL specification. OpenCL 2.0 spec 5.9.3 Kernel Object Queries: CL_KERNEL_ARG_TYPE_VOLATILE is returned if the argument is a pointer and the referenced type is declared with the volatile qualifier. [...] Similarly, CL_KERNEL_ARG_TYPE_CONST is returned if the argument is a pointer and the referenced type is declared with the restrict or const qualifier. [...] CL_KERNEL_ARG_TYPE_RESTRICT will be returned if the pointer type is marked restrict. Reviewers: Anastasia, cfe-commits Reviewed By: Anastasia Subscribers: bader, yaxunl Differential Revision: https://reviews.llvm.org/D31321 llvm-svn: 299192
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
0 files changed, 0 insertions, 0 deletions