[cfe-commits] r159965 - in /cfe/trunk: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td lib/CodeGen/CodeGenFunction.cpp lib/CodeGen/CodeGenFunction.h lib/Sema/SemaDeclAttr.cpp test/CodeGenOpenCL/kernel-attributes.cl
Simon Atanasyan
satanasyan at mips.com
Tue Aug 7 04:38:17 PDT 2012
Hi,
On Tue, Jul 10, 2012 at 2:06 AM, Tanya Lattner <tonic at nondot.org> wrote:
> Author: tbrethou
> Date: Mon Jul 9 17:06:01 2012
> New Revision: 159965
>
> URL: http://llvm.org/viewvc/llvm-project?rev=159965&view=rev
> Log:
> Patch by Anton Lokhmotov to add OpenCL work group size attributes.
>
> Added:
> cfe/trunk/test/CodeGenOpenCL/kernel-attributes.cl
> ...
Unfortunately this test case failed on MIPS platform because
mips-specific part of clang's codegen expands "kernel2(float4 a)"
into:
[[
@kernel2(i32 %a.coerce0, i32 %a.coerce1, i32 %a.coerce2, i32 %a.coerce3)
]]
not into:
[[
@kernel2(<4 x float> %a)
]]
The attached patch fixes this problem and the test works correctly on
all platforms. Could you please review the patch?
Thanks.
--
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-attr-test.patch
Type: application/octet-stream
Size: 715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120807/4a307eb6/attachment.obj>
More information about the cfe-commits
mailing list