_InterlockedCompareExchange128 (an MSVC intrinsic) is declared on line 280 of intrin.h, but there is no implementation (that I could find), and using: #pragma intrinsic(_InterlockedCompareExchange128) Produces: error: '_InterlockedCompareExchange128' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Werror,-Wignored-pragma-intrinsic] #pragma intrinsic(_InterlockedCompareExchange128)
I should also mention that when using the function, I get the following linker error: f:\path\to\lld-link.exe: warning: test.o: undefined symbol: _InterlockedCompareExchange128
I'm working on implementing this.
Submitted as r320730 (http://llvm.org/viewvc/llvm-project?view=revision&revision=320730)