]> granicus.if.org Git - clang/commit
[clang][ARM] Fix msvc arm{64} builtins to use int on LP64 systems.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 31 Jul 2019 20:42:28 +0000 (20:42 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 31 Jul 2019 20:42:28 +0000 (20:42 +0000)
commit77cef9257f5cad3bada4351bf1c22d2b39241495
tree3bd187eef991550edec12009e2696427a3ca9417
parent77e46c8463016de1fd39e02f5af66e0948de39a6
[clang][ARM] Fix msvc arm{64} builtins to use int on LP64 systems.

The `InterlockedX_{acq,nf,rel}` functions deal with 32 bits which is long on
MSVC, but int on most other systems.

This also checks that `ReadStatusRegister` and `WriteStatusRegister` have
the correct type on aarch64-darwin.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367479 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsAArch64.def
include/clang/Basic/BuiltinsARM.def
test/CodeGen/arm64-microsoft-status-reg.cpp
test/CodeGen/ms-intrinsics-other.c