[cfe-commits] r160308 - in /cfe/trunk: lib/CodeGen/CGBuiltin.cpp lib/CodeGen/CodeGenFunction.h test/CodeGen/builtins-mips-ovld.c

reed kotler rkotler at mips.com
Tue Jul 17 13:03:43 PDT 2012


On 07/17/2012 01:26 AM, Simon Atanasyan wrote:
> On Tue, Jul 17, 2012 at 8:15 AM, reed kotler<rkotler at mips.com>  wrote:
>> Hmmm...
>>
>> Seems like any kind of overloading resolution should be done by clang.
>>
>> there can be lots of issues regarding implicit conversions and other c++
>> things.
> It's not an overloading in the spirit of C++. Here is we select
> intrinsics based on an argument's value. While C++ overloading uses an
> argument's type.
>
> --
> Simon
Register is a different type.

These two inline functions are essentially inline assembly instructions 
and we should give the user what he is asking for.

They have subtly different semantics too.

Reed




More information about the cfe-commits mailing list