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.
Paths
| Differential D16040
[OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr ClosedPublic Authored by pxli168 on Jan 10 2016, 3:21 AM.
Details 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.
Diff Detail Event Timelinepxli168 updated this object.
Comment Actions I think some tests for new diagnostics are still missing?
pxli168 edited edge metadata. pxli168 marked 4 inline comments as done. Comment ActionsRewrite some comments and add missing invalid test case.
Comment Actions Make some optimization
Comment Actions Adding a few final comments, otherwise, looks good!
pxli168 marked 5 inline comments as done. This revision is now accepted and ready to land.Feb 11 2016, 10:53 AM pekka.jaaskelainen edited edge metadata. Comment ActionsOtherwise LGTM.
aaron.ballman added inline comments.
pxli168 edited edge metadata. pxli168 marked 3 inline comments as done. Comment ActionsUpdate doc for OpenCL access qualifier, still find where to handle access qualifier for pipe type. pxli168 edited edge metadata. Comment ActionsNeed to refine access qualifier with pipe type.
Comment Actions Hi Anastasia, Thanks
Comment Actions It seems it is related with the pipe type. I am still working on how to fix this problem. pxli168 edited edge metadata. Comment ActionsRefine the pipe parse to solve the problem the attribute for pipe will be handled twice within Declarator Comment Actions A few small comments!
Comment Actions Mostly minor comments, but I like this approach!
Comment Actions Remove test case for access quilifier in test/SemaOpenCL/invalid-kernel-attrs.cl.
This revision is now accepted and ready to land.Feb 25 2016, 4:18 AM
Revision Contents
Diff 49007 include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CodeGenFunction.cpp
lib/Parse/ParseDecl.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaType.cpp
test/Parser/opencl-image-access.cl
test/SemaOpenCL/invalid-access-qualifier.cl
test/SemaOpenCL/invalid-kernel-attrs.cl
test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl
|
Please, if you are updating this attribute, document it.