[PATCH] D18025: Add attributes for preserve_mostcc/preserve_allcc calling conventions to the C/C++ front-end

Roman Levenstein via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 9 19:25:11 PST 2016


swiftix created this revision.
swiftix added reviewers: ributzka, aaron.ballman.
swiftix added a subscriber: cfe-commits.
Herald added a subscriber: aemerson.

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.

http://reviews.llvm.org/D18025

Files:
  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_all.c
  test/CodeGen/preserve_most.c
  test/Sema/preserve_all-call-conv.c
  test/Sema/preserve_most-call-conv.c
  tools/libclang/CXType.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18025.50228.patch
Type: text/x-patch
Size: 16813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160310/2a80d643/attachment-0001.bin>


More information about the cfe-commits mailing list