[coro async] Add the swiftasync attribute to the resume partial function
authorArnold Schwaighofer <aschwaighofer@apple.com>
Wed, 19 May 2021 16:59:13 +0000 (09:59 -0700)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Wed, 2 Jun 2021 14:44:33 +0000 (07:44 -0700)
commitf1a0c5d67ca9600d3a08d1d81ad1da9b75a60138
tree067aa8897e7e098173954a2225cac87f7930621d
parent369c64839946d89cf5697550b6feeea031b2f270
[coro async] Add the swiftasync attribute to the resume partial function

Transfer the swiftasync attribute to the resume partial function according to
suspend.async specification. It's first argument denotes which argument is the
async context.

rdar://71499498

Differential Revision: https://reviews.llvm.org/D103285
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/test/Transforms/Coroutines/coro-async.ll