Xiuli Pan
11e13f60ea
[OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr
...
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
2016-02-26 03:13:03 +00:00
Joey Gouly
b1d23a8db3
[OpenCL] Reject reqd_work_group_size(X, Y, Z) where X, Y or Z == 0.
...
Patch by Pedro Ferreira!
llvm-svn: 209127
2014-05-19 14:41:38 +00:00
Aaron Ballman
2689133805
Simplifying the OpenCL image attribute. It does not need a semantic integer parameter because the required information is encoded in the spelling. Added an appropriate subject to the attribute, and simplified the semantic checking (which will likely be expanded upon in a future patch). Also, removed the GNU spelling since it was unsupported in the first place.
...
llvm-svn: 199229
2014-01-14 17:41:53 +00:00
Joey Gouly
96b94e610b
[OpenCL] Variables in the constant address space must be initialized.
...
llvm-svn: 198417
2014-01-03 14:16:55 +00:00
Joey Gouly
d4993032a9
[OpenCL] The kernel attribute can only be used on functions.
...
llvm-svn: 198300
2014-01-02 12:04:42 +00:00
Joey Gouly
2cd9db1cef
[OpenCL] Produce an error when the work group and vec type hint attributes
...
are used on non-kernel functions.
Reviewed by Aaron over IRC!
llvm-svn: 197243
2013-12-13 16:15:28 +00:00
Aaron Ballman
b7243381c2
Added the attribute name to the err_attribute_wrong_number_arguments diagnostic for clarity; updated almost all of the affected test cases.
...
Thanks to Fariborz Jahanian for the suggestion!
llvm-svn: 186980
2013-07-23 19:30:11 +00:00
Joey Gouly
4bd55d9356
Add a test case for the 'vec_type_hint' attribute that was introduced in
...
r176686. I missed this file in the previous commit.
llvm-svn: 176803
2013-03-11 12:38:45 +00:00