hanchenye-llvm-project/clang/test/SemaOpenCL
Anastasia Stulova 1f95cc097c [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0
Applying the following restrictions for block types in OpenCL (v2.0 s6.12.5):
 - __block storage class is disallowed
 - every block declaration must be const qualified and initialized
 - a block can't be used as a return type of a function
 - a blocks can't be used to declare a structure or union field
 - extern speficier is disallowed

Corrected image and sampler types diagnostics with struct and unions.

Review: http://reviews.llvm.org/D16928
llvm-svn: 262616
2016-03-03 13:33:19 +00:00
..
address-spaces-conversions-cl2.0.cl
address-spaces.cl
amdgpu-num-register-attrs.cl Workaround attribute ordering issue with kernel only attributes 2014-12-05 18:03:58 +00:00
array-parameters.cl
bool-vectors.cl [Sema] Make extended vectors of `bool` an error. 2016-01-28 01:38:18 +00:00
builtin.cl [OpenCL] Disable C99 standard lib functions 2016-02-12 12:07:04 +00:00
builtins-amdgcn.cl AMDGPU: Add builtins for recently added intrinsics 2016-02-27 09:54:43 +00:00
cond.cl [OpenCL] Disallow taking an address of a function. 2016-01-05 14:39:27 +00:00
endian-attr.cl
event_t.cl [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0 2016-03-03 13:33:19 +00:00
event_t_overload.cl
extension-fp64-cl1.1.cl Fix OpenCL 1.2 double as an optional core feature behaviour 2015-01-30 10:51:46 +00:00
extension-fp64.cl
extern.cl
func_ptr.cl [OpenCL] Disallow taking an address of a function. 2016-01-05 14:39:27 +00:00
half.cl [OpenCL] Added half type literal with suffix h. 2016-02-17 11:34:37 +00:00
init.cl
invalid-access-qualifier.cl [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr 2016-02-26 03:13:03 +00:00
invalid-block.cl [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0 2016-03-03 13:33:19 +00:00
invalid-constant.cl
invalid-image.cl [OpenCL] Add Sema checks for types 2016-02-25 03:34:20 +00:00
invalid-kernel-attrs.cl [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr 2016-02-26 03:13:03 +00:00
invalid-kernel-parameters.cl [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0 2016-03-03 13:33:19 +00:00
invalid-kernel.cl
invalid-logical-ops-1.1.cl
invalid-logical-ops-1.2.cl
invalid-pipe-builtin-cl2.0.cl [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr 2016-02-26 03:13:03 +00:00
invalid-pipes-cl2.0.cl [OpenCL] Add Sema checks for types 2016-02-25 03:34:20 +00:00
lit.local.cfg
null_literal.cl [OpenCL 2.0] In OpenCL v2.0 s6.5 all pointers are implicitly in generic 2015-12-11 17:41:19 +00:00
optional-core-fp64-cl1.2.cl Fix OpenCL 1.2 double as an optional core feature behaviour 2015-01-30 10:51:46 +00:00
optional-core-fp64-cl2.0.cl Fix OpenCL 1.2 double as an optional core feature behaviour 2015-01-30 10:51:46 +00:00
pipes-1.2-negative.cl [OpenCL] Pipe type support 2016-01-09 12:53:17 +00:00
sampler_t.cl [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0 2016-03-03 13:33:19 +00:00
sampler_t_overload.cl
shifts.cl Restores r228382, which was reverted in r228406. 2015-02-25 05:48:23 +00:00
sizeof.cl
storageclass-cl20.cl [OpenCL 2.0] Apply default address space (AS). 2015-11-23 11:14:44 +00:00
storageclass.cl [OpenCL 2.0] Enable program scope variables, Section 6.5.1. 2015-09-30 14:08:20 +00:00
str_literals.cl
unroll-hint.cl [OpenCL] Generate metadata for opencl_unroll_hint attribute 2016-02-19 18:30:11 +00:00
unsupported.cl [OpenCL] Adding reserved operator logical xor for OpenCL 2016-02-03 15:17:14 +00:00
vec_compare.cl
vec_step.cl
vector_conv_invalid.cl
vector_inc_dec_ops.cl
vector_literals_const.cl
vector_literals_invalid.cl
warn-missing-prototypes.cl