[LLVMdev] Regular Expression lib support

Chris Lattner clattner at apple.com
Sun Aug 23 21:58:51 PDT 2009


On Aug 23, 2009, at 9:50 PM, OvermindDL1 wrote:

> On Sun, Aug 23, 2009 at 10:20 PM, Chris Lattner<clattner at apple.com>  
> wrote:
>> On Aug 23, 2009, at 9:11 PM, OvermindDL1 wrote:
>>>>
>>>> Again, forget boost regex. :)
>>>
>>> What about std::regex?
>>
>> No, we have to build with c++'98 compilers.  I think you're missing  
>> the
>> point here.  We care about code size in llvm, and the best code  
>> size you can
>> get is to link to the one already in your address space because  
>> it's part of
>> libc.
>
> There are multiple ones that have been created that fullfill
> std::regex that work just fine on C++98, such as boost::regex and
> dinkumware's and I know there is at least one other.

I think you're missing the whole "we value small code size more than  
speed of matching" thing.

-Chris




More information about the llvm-dev mailing list