[cfe-commits] r61444 - /cfe/trunk/lib/Headers/float.h

Chris Lattner clattner at apple.com
Fri Dec 26 17:37:18 PST 2008

On Dec 26, 2008, at 3:00 PM, Eli Friedman wrote:
> On Fri, Dec 26, 2008 at 2:48 PM, Anders Carlsson <andersca at mac.com>  
> wrote:
>>> There's not much to say... I think we were planning at one point  
>>> to do
>>> this a bit differently so that we didn't have to define so many
>>> identifiers on initialization, but this works.
>> Oh, how?
> Roughly, define a new function, __builtin_limit(), or something like
> that, which the preprocessor expands, that allows queries for these
> sorts of things.  That way, we can get rid of the mess of
> DefineBuiltinMacro calls in Preprocessor.cpp.  I suppose it's not a
> particularly high priority, though.

Yep, something like __builtin_numeric_property("whatever") could be  
used.  This reduces load on the identifier table, and could be  
extensible to other related things.  I agree that this isn't a super  
high priority though :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081226/ddc44f2d/attachment.html>

More information about the cfe-commits mailing list