mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-22 13:05:52 -04:00

Summary: OpenCL access qualifiers are now not only used for image types, refine it to avoid misleading, Add semacheck for OpenCL access qualifier as well as test caees. Reviewers: pekka.jaaskelainen, Anastasia, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: http://reviews.llvm.org/D16040 llvm-svn: 261961
20 lines
460 B
Common Lisp
20 lines
460 B
Common Lisp
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify -cl-std=CL2.0 -DCL20
|
|
// expected-no-diagnostics
|
|
|
|
__kernel void f__ro(__read_only image2d_t a) { }
|
|
|
|
__kernel void f__wo(__write_only image2d_t a) { }
|
|
|
|
#if CL20
|
|
__kernel void f__rw(__read_write image2d_t a) { }
|
|
#endif
|
|
|
|
__kernel void fro(read_only image2d_t a) { }
|
|
|
|
__kernel void fwo(write_only image2d_t a) { }
|
|
|
|
#if CL20
|
|
__kernel void frw(read_write image2d_t a) { }
|
|
#endif
|