[cfe-commits] Please review this patch to enable vector select
Yin Ma
yinma at codeaurora.org
Thu Oct 27 15:26:12 PDT 2011
Hi,
Currently vector select, such as a < b ? a : c type, is not enabled in
clang
for C/C++ code. When I try to compile, clang will give error message. By
reading
the code, vector select is only supported for OpenCL. I have made a patch in
clang to
support vector select for C/C++ code.
I have tested for ARM. Everything works fine so far. So I limit the
parsing for arm
architecture only. Could anybody review this change. Thanks.
I attached the diff file and a sample test case I wrote with this email.
Thanks,
Yin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111027/bd657dac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector_select.diff
Type: application/octet-stream
Size: 3094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111027/bd657dac/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector_select_validation.c
Type: application/octet-stream
Size: 4208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111027/bd657dac/attachment-0001.obj>
More information about the cfe-commits
mailing list