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

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


On Mon, Feb 20, 2012 at 12:06 AM, Chandler Carruth <chandlerc at gmail.com>wrote:

> 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.
>

Just to emphasize, this is completely untested. =] Just finished typing it
up w/o all the weird include_next logic.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120220/457f491e/attachment.html>


More information about the cfe-commits mailing list