[cfe-dev] [RFC] Introduce overflow builtins

Tobias Grosser tobias at grosser.es
Sat Apr 21 08:21:02 PDT 2012

On 04/04/2012 10:48 PM, Chris Lattner wrote:
> On Apr 2, 2012, at 11:57 AM, Xi Wang wrote:
>> On Apr 2, 2012, at 1:04 PM, Dave Zarzycki wrote:
>>> A colleague pointed out that i8 works. See the example at the end of this email and please consider adding support for 8-bit integers for the sake of completeness. Thanks! :-)
>> Hah, thanks for letting me know this hidden feature.  Probably http://llvm.org/docs/LangRef.html should get updated, too.
>> Pushed out.
>> https://github.com/xiw/clang/compare/master...builtin-overflow
> This looks generally reasonable to me, but could use review by someone else.  Eli or John, could you take a look?

I am very interested in this. The patch is very simple and looks at a 
first glance clean.

Eli or John: I attached it to simplify review. Mind having a look?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Introduce-builtins-for-integer-calculations-with-ove.patch
Type: text/x-diff
Size: 12806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120421/b8f4ce65/attachment.patch>

More information about the cfe-dev mailing list