diff options
author | Alexey Sotkin <alexey.sotkin@intel.com> | 2018-07-31 20:26:43 +0000 |
---|---|---|
committer | Alexey Sotkin <alexey.sotkin@intel.com> | 2018-07-31 20:26:43 +0000 |
commit | 9d1ee0acfb6a2b51afac501a07894ec0fcfc346f (patch) | |
tree | 425fc053e0922b8c931f7a87b36a5e721b68620b /llvm/lib/Analysis/CodeMetrics.cpp | |
parent | 907f4f6a74591938c44c61bede5de1a1b8e617ae (diff) | |
download | bcm5719-llvm-9d1ee0acfb6a2b51afac501a07894ec0fcfc346f.tar.gz bcm5719-llvm-9d1ee0acfb6a2b51afac501a07894ec0fcfc346f.zip |
[OpenCL] Forbid size dependent types used as kernel arguments
Summary:
Size_t, intptr_t, uintptr_t and ptrdiff_t cannot be used as kernel
arguments, according to OpenCL Specification s6.9k:
The size in bytes of these types are implementation-defined and in
addition can also be different for the OpenCL device and the host
processor making it difficult to allocate buffer objects to be passed
as arguments to a kernel declared as pointer to these types.
Patch by: Andrew Savonichev
Reviewers: Anastasia, yaxunl
Subscribers: yaxunl, Anastasia, cfe-commits
Differential Revision: https://reviews.llvm.org/D49725
llvm-svn: 338432
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
0 files changed, 0 insertions, 0 deletions