ARM, AArch64: support `__attribute__((__swiftcall__))`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 6 Dec 2018 03:28:37 +0000 (03:28 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 6 Dec 2018 03:28:37 +0000 (03:28 +0000)
commitf587857c8834981fe142826e3001d28ce9cf8922
tree8fb722dd8e3a3bdd671f3668cd7c03a5417440f9
parent889d20715ea1144b812e589a008746cbcab052ff
ARM, AArch64: support `__attribute__((__swiftcall__))`

Support the Swift calling convention on Windows ARM and AArch64.  Both
of these conform to the AAPCS, AAPCS64 calling convention, and LLVM has
been adjusted to account for the register usage.  Ensure that the
frontend passes this into the backend.  This allows the swift runtime to
be built for Windows.

llvm-svn: 348454
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/ARM.cpp
clang/test/CodeGen/swift-call-conv.c [new file with mode: 0644]
clang/test/Sema/swift-call-conv.c [new file with mode: 0644]