[cfe-dev] MSVC compiler intrinsics, need for direction.
Francois Pichet
pichet2000 at gmail.com
Wed Oct 6 07:58:25 PDT 2010
I did some research and it will be easier than I thought.
With the exception of __noop and __assume (possibly more), MSVC
intrinsics require a prototype.
So they will be handled like normal functions by clang.
On Wed, Oct 6, 2010 at 9:54 AM, Douglas Gregor <dgregor at apple.com> wrote:
>
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
More information about the cfe-dev
mailing list