[OpenCL] Fix for integer parameters of enqueue_kernel
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 14 Nov 2016 17:39:58 +0000 (17:39 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 14 Nov 2016 17:39:58 +0000 (17:39 +0000)
commit0df4ac3f94fc02df2d1263893a38a894e32078ea
tree60e22252168ce91bf30df1687f1e3709dd3fcc4d
parente1e344ed05bb83787ed90524154b7b04ddc49759
[OpenCL] Fix for integer parameters of enqueue_kernel

Make handling integer parameters more flexible:

- For the number of events argument allow to pass larger
integers than 32 bits as soon as compiler can prove that
the range fits in 32 bits. If not, the diagnostic will be given.

- Change type of the arguments specifying the sizes of
the corresponding block arguments to be size_t.

Review: https://reviews.llvm.org/D26509
llvm-svn: 286849
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
clang/test/SemaOpenCL/cl20-device-side-enqueue.cl