[LLVMdev] Using C++'11 language features in LLVM itself
eli.friedman at gmail.com
Tue Jan 8 16:07:59 PST 2013
On Tue, Jan 8, 2013 at 3:54 PM, Reed Kotler <rkotler at mips.com> wrote:
> On 01/08/2013 03:45 PM, Chris Lattner wrote:
>> It's seems like a quiet and peaceful day, lets stir things up a bit :)
>> How crazy would it be for us to start using basic C++'11 language features
>> (but not C++'11 library features) in LLVM: things like auto, rvalue-refs,
>> lambdas, etc? I think that we can keep things well defined with a few
>> simple requirements: language features must be supported by MSVC 2010 and
>> later, some version of GCC and later (linux folks should pick?), some
>> version of Clang and later (Freebsd folks?).
>> On the one hand, this would greatly clean up code and is definitely the
>> path forward. On the other hand, I don't want to substantially harm
>> adoption or use of LLVM by adding another burden to building and developing
>> If doing this would be a big problem for you, please speak up, and explain
>> how/when the problem can be resolved. We will certainly adopt C++'11
>> features someday, so even if it isn't soon, it is good to have the
>> discussion to find out what the issues are.
> How about being able to use RTTI and exceptions? (stir, stir...)
Please don't discuss RTTI/exceptions in this thread. All the
compilers which can compile LLVM already support both RTTI and
exceptions to a usable level; we don't use them for other reasons.
More information about the llvm-dev