[AArch64][SVE] Add aarch64_sve_pcs attribute to Clang
authorMatt Devereau <matthew.devereau@arm.com>
Tue, 29 Mar 2022 17:52:48 +0000 (17:52 +0000)
committerMatt Devereau <matthew.devereau@arm.com>
Wed, 11 May 2022 13:33:56 +0000 (13:33 +0000)
commit75bb815231f6967bd5f4e24143141b9fe69d01f8
treecf103f82ec12ea8c3e7b67d3f5fe349c4a90f7ee
parentf5d45d70a5114c6c93822ba9f8e9e042f881238f
[AArch64][SVE] Add aarch64_sve_pcs attribute to Clang

Enable function attribute aarch64_sve_pcs at the C level, which correspondes to
aarch64_sve_vector_pcs at the LLVM IR level.

This requirement was created by this addition to the ARM C Language Extension:
https://github.com/ARM-software/acle/pull/194

Differential Revision: https://reviews.llvm.org/D124998
16 files changed:
clang/include/clang-c/Index.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/Specifiers.h
clang/lib/AST/ItaniumMangle.cpp
clang/lib/AST/Type.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaType.cpp
clang/test/CodeGen/aarch64-svepcs.c [new file with mode: 0644]
clang/test/Sema/aarch64-svepcs.c [new file with mode: 0644]
clang/test/Sema/callingconv.c
clang/tools/libclang/CXType.cpp