[cfe-commits] [PATCH] Fixing include order for Windows

Chandler Carruth chandlerc at gmail.com
Mon Feb 20 00:06:45 PST 2012


On Sun, Feb 19, 2012 at 8:04 PM, Aaron Ballman <aaron at aaronballman.com>wrote:

> Here's what we've figured out so far.
>
> Several platform SDK header files include intrin.h from Visual Studio.
>  This file declares all of the intrinsics used by MSVC, including
> chip-specific intrinsics (MMX, SSE, etc) as well as
> platform-independent intrinsics (Interlocked***, etc).
>
> A full list of intrinsics is documented on MSDN at
> <http://msdn.microsoft.com/en-us/library/26td21ds.aspx> and
> <http://msdn.microsoft.com/en-US/library/w5405h95(v=vs.100).aspx>
>
> We need to come up with our own intrin.h that supports Microsoft's so
> that we can compile Win32 applications (and Microsoft's STL
> implementation).


Here is an initial cut at adding an MSVC compatible 'intrin.h' builtin
header. I've left a FIXME to fill in the MS-specific intrinsics. This
should at least provide a place to begin fleshing out the intrinsics.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120220/b925b69c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvc_intrin_header.patch
Type: text/x-patch
Size: 3139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120220/b925b69c/attachment.bin>


More information about the cfe-commits mailing list