[cfe-dev] MSVC compiler intrinsics, need for direction.

Douglas Gregor dgregor at apple.com
Wed Oct 6 06:54:37 PDT 2010


On Oct 6, 2010, at 6:32 AM, Sebastian Redl wrote:

> On 06.10.2010 08:09, Francois Pichet wrote:
>> sorry this was meant for clang-dev
>> 
>> Hi, I am preparing a patch to add MSVC builtins compiler intrinsics to
>> clang. (http://msdn.microsoft.com/en-us/library/26td21ds(v=VS.90).aspx)
>> 
>> I see 2 possible implementations:
>>  1. Put the MSVC intrinsics directly into
>> clang\include\clang\Basic\Builtins.def and add an argument to specify
>> if they are MSVC, GCC, ALLNOMS or ALL etc..
>> 
>> 2. Add a new file BuiltinsMSVC.def.
>> 
> I still don't know what's stopping us from adding them unconditionally.

I think it's fine for them to be unconditional. They're all in the implementer's namespace anyway.

	- Doug



More information about the cfe-dev mailing list