[PATCH] D95228: Add swift_async_context parameter attribute mapping to IR equivalent

Tim Northover via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 22 06:24:57 PST 2021


t.p.northover created this revision.
Herald added subscribers: dexonsmith, jdoerfert, mcrosier.
Herald added a reviewer: aaron.ballman.
t.p.northover requested review of this revision.

This adds `__attribute__((swift_async_context))` very much following the existing `swift_context` so that Swift's runtime implementation in C++ can generate functions that interact with Swift code properly. Hopefully nothing too controversial.

It depends on D95044 <https://reviews.llvm.org/D95044> for the IR support.


https://reviews.llvm.org/D95228

Files:
  clang/include/clang/AST/Attr.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/TypePrinter.cpp
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/lib/Sema/SemaType.cpp
  clang/test/CodeGen/arm-swiftcall.c
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/test/Sema/attr-swiftcall.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95228.318507.patch
Type: text/x-patch
Size: 9136 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210122/3ff174f1/attachment.bin>


More information about the cfe-commits mailing list