[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)
commit33703fb9f908113f93bd9af83a79eb56f5131735
tree2efc95a5788adbccd4f2d4ad673cef4ef6b3a256
parent61b6b0eb1bbf711a78f7d55c7cc7f0682a9fade7
[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

llvm-svn: 367479
clang/include/clang/Basic/BuiltinsAArch64.def
clang/include/clang/Basic/BuiltinsARM.def
clang/test/CodeGen/arm64-microsoft-status-reg.cpp
clang/test/CodeGen/ms-intrinsics-other.c