Go to file
Alexey Bader c813c8113d [OpenCL] Fix access qualifiers handling for typedefs
OpenCL s6.6: "Access qualifier must be used with image object arguments
of kernels and of user-defined functions [...] If no qualifier is
provided, read_only is assumed".

This does not define the behavior for image types used in typedef
declaration, but following the spec logic, we should allow access
qualifiers specification in typedefs, e.g.:

  typedef write_only image1d_t img1d_wo;

Unlike cv-qualifiers, user cannot add access qualifier to a typedef
type, i.e. this is not allowed:

  typedef image1d_t img1d; // note: previously declared 'read_only' here
  void foo(write_only img1d im) {} // error: multiple access qualifier

Patch by Andrew Savonichev.
Reviewers: Anastasia Stulova.

Differential revision: http://reviews.llvm.org/D20948

llvm-svn: 274858
2016-07-08 15:34:59 +00:00
clang [OpenCL] Fix access qualifiers handling for typedefs 2016-07-08 15:34:59 +00:00
clang-tools-extra [include-fixer] Don't add qualifiers to symbols which have global scope operator. 2016-07-08 14:28:43 +00:00
compiler-rt [compiler-rt] Fix minimal stack reserved for unittest on MSVC build 2016-07-07 18:41:08 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc configure: Remove device specific defines 2016-06-17 20:30:50 +00:00
libcxx [libc++] Check hash before calling __hash_table key_eq function 2016-07-08 15:34:28 +00:00
libcxxabi Fix [libcxxabi] Fix warning about uninitialized const member. 2016-06-15 19:59:16 +00:00
libunwind [PATCH] [libunwind][ehabi] Use early returns where possible. 2016-07-08 12:13:31 +00:00
lld Revert R274836 Add Thunk support framework for ARM and Mips 2016-07-08 12:25:50 +00:00
lldb Add an API to unwind from a hand-called expression. 2016-07-08 02:12:05 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm [Sparc] Leon errata fix passes. 2016-07-08 15:33:56 +00:00
openmp D22138: Added more Intel compiler versions as allowed build compilers 2016-07-08 15:23:35 +00:00
parallel-libs Change mailing list names in README 2016-06-24 22:50:09 +00:00
polly Fix assertion due to buildMemoryAccess. 2016-07-08 12:38:28 +00:00