[LLVMdev] std::string

Dmitri Gribenko gribozavr at gmail.com
Mon Jan 21 06:12:28 PST 2013


On Mon, Jan 21, 2013 at 3:08 PM, Krzysztof Parzyszek
<kparzysz at codeaurora.org> wrote:
> On 1/21/2013 12:35 AM, Chris Lattner wrote:
>> I'm confused here.  You're acting as though we don't use the STL.  In
>> fact, we do use std::string, std::vector, std::map etc when they are the
>> right solution for the job.
>
> I'm trying to understand the reasoning behind the decisions made at the
> beginning of LLVM.  My working assumption is that ADT didn't exist when LLVM
> started (whereas STL did).  In such case, I'm assuming that creation of ADT
> was motivated by needs of LLVM that STL didn't meet. I'm trying to
> understand what the needs were and where STL was considered inadequate.
> Creating a new set of containers is an investment, so, again, I'm assuming
> that there were specific motives that caused that investment to be made.
> Benjamin's answer was actually very informative, that was that kind of
> information I was looking for.

Also, there was no hashtable in STL before C++11 (DenseMap), and there
is still no StringRef and ArrayRef equivalent.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the llvm-dev mailing list