Please find a revised patch attached. The patch conforms to latest versions
of the OpenCL specification, e.g. accepts both 'const' and 'constant' in
sampler variable declarations.
Anton.
Date: Fri, 18 Mar 2011 17:27:33 -0000
From: "Anton Lokhmotov" <Anton.Lokhmotov@arm.com>
Subject: [cfe-dev] [PATCH] OpenCL-specific image2d_t, image3d_t and
sampler_t types
To: <cfe-dev@cs.uiuc.edu>
Message-ID: <000101cbe591$c4771bf0$4d6553d0$@Lokhmotov@arm.com>
Content-Type: text/plain; charset="windows-1252"We have implemented the OpenCL-specific image2d_t, image3d_t and
sampler_t types as a separate type OpenCLOtherType, unlike in Tanya's
patch [1]. The OpenCL event_t will be supported by OpenCLOtherType as
well.
The OpenCL-specific types have many semantic restrictions (e.g. see [2]
for restrictions on the sampler_t type). We will supply shortly semantic
checks in a separate patch (or update this one), as well as tests.Please note that we assume support for keywords as in our previous
patch [3]. We will revise the patch once Peter's changes [4] are merged
into the trunk.Please review.
Anton.
[1] Tanya,
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/013865.html
[2] Anton,
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/014118.html
[3] Anton,
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013463.html
[4] Peter,
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/013921.html
00006-image-sampler.patch (36.9 KB)