]> granicus.if.org Git - clang/commit
[X86] Add inline assembly versions of _InterlockedExchange_HLEAcquire/Release and...
authorCraig Topper <craig.topper@intel.com>
Thu, 14 Jun 2018 18:43:52 +0000 (18:43 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 14 Jun 2018 18:43:52 +0000 (18:43 +0000)
commit95ac99d8fa2569187bca496f14209a8b24cb6a05
treef63f9e935679b0e08f3c13b99693bcd5d98d0795
parent8d508f1184162f913ec51593a1118700b018d78a
[X86] Add inline assembly versions of _InterlockedExchange_HLEAcquire/Release and _InterlockedCompareExchange_HLEAcquire/Release for MSVC compatibility.

Clang/LLVM doesn't have a way to pass an HLE hint through to the X86 backend to emit HLE prefixed instructions. So this is a good short term fix.

Differential Revision: https://reviews.llvm.org/D47672

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334751 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/immintrin.h
lib/Headers/intrin.h
test/CodeGen/bitscan-builtins.c
test/CodeGen/ms-intrinsics.c