HomePhabricator

[clang][ARM] Fix msvc arm{64} builtins to use int on LP64 systems.

Authored by Bigcheese on Jul 31 2019, 1:42 PM.

Description

[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