]> granicus.if.org Git - clang/commit
Headers: Add ARM support to intrin.h for MSVC compatibility
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 6 Aug 2016 17:58:24 +0000 (17:58 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 6 Aug 2016 17:58:24 +0000 (17:58 +0000)
commitcfc8939a5f184eff60e37c53dd62e98878e8a9d4
treeb5d6954ad7efca7f8d46a53a11f1482330817f34
parent70a62d39b1fc3c6d2b5aa4b78ddf5e5edee7c4c4
Headers: Add ARM support to intrin.h for MSVC compatibility

This fixes compiling with headers from the Windows SDK for ARM, where the
YieldProcessor function (in winnt.h) refers to _ARM_BARRIER_ISHST.

The actual MSVC armintr.h contains a lot more definitions, but this is enough to
build code that uses the Windows SDK but doesn't use ARM intrinsics directly.

An alternative would to just keep the addition to intrin.h (to include
armintr.h), but not actually ship armintr.h, instead having clang's intrin.h
include armintr.h from MSVC's include directory. (That one works fine with
clang, at least for building code that uses the Windows SDK.)

Patch by Martin Storsjö!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277928 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/CMakeLists.txt
lib/Headers/armintr.h [new file with mode: 0644]
lib/Headers/intrin.h
test/Headers/ms-intrin.cpp