]> granicus.if.org Git - clang/commit
Add attributes for preserve_mostcc/preserve_allcc calling conventions to the C/C...
authorRoman Levenstein <rlevenstein@apple.com>
Wed, 16 Mar 2016 18:00:46 +0000 (18:00 +0000)
committerRoman Levenstein <rlevenstein@apple.com>
Wed, 16 Mar 2016 18:00:46 +0000 (18:00 +0000)
commit5e8bd88711d23b2a5db79f43580afebdfd10a394
treee296efbc729aa7ddc371c93ba3094ba3848a103f
parentdc4b244bbdddbabdcdc66306a5fbb12470cbf4d8
Add attributes for preserve_mostcc/preserve_allcc calling conventions to the C/C++ front-end

Till now, preserve_mostcc/preserve_allcc calling convention attributes were only
available at the LLVM IR level. This patch adds attributes for
preserve_mostcc/preserve_allcc calling conventions to the C/C++ front-end.

The code was mostly written by Juergen Ributzka.
I just added support for the AArch64 target and tests.

Differential Revision: http://reviews.llvm.org/D18025

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263647 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang-c/Index.h
include/clang/AST/Type.h
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/Specifiers.h
lib/AST/ItaniumMangle.cpp
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/Basic/Targets.cpp
lib/CodeGen/CGCall.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaType.cpp
test/CodeGen/preserve-call-conv.c [new file with mode: 0644]
test/Sema/preserve-call-conv.c [new file with mode: 0644]
tools/libclang/CXType.cpp