[cfe-dev] [OpenCL patch] asType, Convert

Tanya Lattner lattner at apple.com
Wed May 25 15:08:33 PDT 2011


The attached patch adds support for builtins for astype, convert, and vec_step. I chose to group these together because they require very similar code modifications. I've included test cases for each.

__builtin_astype(): Used to reinterpreted as another data type of the same size using for both scalar and vector data types.
__builtin_convert(): provides a way to perform scalar and vector conversions with rounding and saturation.

I have fixed the concerns with asType and other areas as mentioned by Guy Benyei in his review. 

If there is no further objection and because this patch has had extensive review and has been out there for a long time, I feel this is ready to be committed and plan to do so shortly.

Thanks,
Tanya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110525/e5b88322/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asTypeConvertExpr.patch
Type: application/octet-stream
Size: 33970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110525/e5b88322/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110525/e5b88322/attachment-0001.html>


More information about the cfe-dev mailing list