[PATCH] D21989: [OpenCL] Improve diagnostics of OpenCL types
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 5 04:47:14 PDT 2016
Anastasia created this revision.
Anastasia added reviewers: bader, yaxunl.
Anastasia added a subscriber: cfe-commits.
This change:
1. Changes diagnostics for Blocks to be implicitly const qualified OpenCL v2.0 s6.12.5.
2. Adds and unifies diagnostics of some OpenCL special types: blocks, images, samplers, pipes. These types are intended for use with the OpenCL builtin function only and, therefore, most regular uses are not allowed including assignments, arithmetic operations, pointer dereferencing, etc...
http://reviews.llvm.org/D21989
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaType.cpp
test/SemaOpenCL/invalid-block.cl
test/SemaOpenCL/invalid-image.cl
test/SemaOpenCL/invalid-pipes-cl2.0.cl
test/SemaOpenCL/sampler_t.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21989.62733.patch
Type: text/x-patch
Size: 12438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160705/98c4952d/attachment-0001.bin>
More information about the cfe-commits
mailing list