[cfe-dev] [RFC] Introduce overflow builtins

Chris Lattner clattner at apple.com
Wed Apr 4 13:58:26 PDT 2012


On Apr 4, 2012, at 1: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?

Also, this needs a patch to LanguageExtensions.html to describe the new builtins.

-Chris



More information about the cfe-dev mailing list