[OpenCL] Allow pointer-to-pointer kernel args beyond CL 1.2
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 1 Dec 2020 11:33:10 +0000 (11:33 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 1 Dec 2020 11:33:10 +0000 (11:33 +0000)
commit523775f96742e6f099b3498b6606b7250c0af841
tree621c76be938e72565ebb2894cdce0f5a8ad0120e
parentcba4accda08f90bbc96d7662ef6b1bb12a7733f2
[OpenCL] Allow pointer-to-pointer kernel args beyond CL 1.2

The restriction on pointer-to-pointer kernel arguments has been
relaxed in OpenCL 2.0.  Apply the same address space restrictions for
pointer argument types to the inner pointer types.

Differential Revision: https://reviews.llvm.org/D92091
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaOpenCL/invalid-kernel-parameters.cl