forked from OSchip/llvm-project
c813c8113d
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 |
||
---|---|---|
.. | ||
access-qualifier.cl | ||
address-spaces-conversions-cl2.0.cl | ||
address-spaces.cl | ||
amdgpu-num-register-attrs.cl | ||
array-parameters.cl | ||
as_type.cl | ||
bool-vectors.cl | ||
builtin.cl | ||
cl20-device-side-enqueue.cl | ||
clang-builtin-version.cl | ||
cond.cl | ||
endian-attr.cl | ||
event_t.cl | ||
event_t_overload.cl | ||
extension-version.cl | ||
extensions.cl | ||
extern.cl | ||
func_ptr.cl | ||
half.cl | ||
images.cl | ||
init.cl | ||
invalid-block.cl | ||
invalid-constant.cl | ||
invalid-image.cl | ||
invalid-kernel-attrs.cl | ||
invalid-kernel-parameters.cl | ||
invalid-kernel.cl | ||
invalid-logical-ops-1.1.cl | ||
invalid-logical-ops-1.2.cl | ||
invalid-pipe-builtin-cl2.0.cl | ||
invalid-pipes-cl2.0.cl | ||
lit.local.cfg | ||
nosvm.cl | ||
null_literal.cl | ||
pipes-1.2-negative.cl | ||
sampler_t.cl | ||
sampler_t_overload.cl | ||
shifts.cl | ||
sizeof.cl | ||
storageclass-cl20.cl | ||
storageclass.cl | ||
str_literals.cl | ||
to_addr_builtin.cl | ||
unroll-hint.cl | ||
unsupported.cl | ||
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 |