]> granicus.if.org Git - clang/commit
CodeGen: improve ms instrincics support
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 18 Jun 2014 20:51:10 +0000 (20:51 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 18 Jun 2014 20:51:10 +0000 (20:51 +0000)
commitdaff6b03876a7206ebe0f3b708afaadcedd4f5d1
treeadbcf59dd0da7a500d31e6f5009db6f26549ae6f
parent82a8be9ffd9c29490b8b85e336a73aec8aa8442e
CodeGen: improve ms instrincics support

Add support for _InterlockedCompareExchangePointer, _InterlockExchangePointer,
_InterlockExchange.  These are available as a compiler intrinsic on ARM and x86.
These are used directly by the Windows SDK headers without use of the intrin
header.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211216 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
lib/CodeGen/CGBuiltin.cpp
lib/Headers/Intrin.h
test/CodeGen/ms-intrinsics.c [new file with mode: 0644]