HomePhabricator

[coro] Add support for polymorphic return typed coro.suspend.async

Authored by aschwaighofer on Feb 11 2021, 8:25 AM.

Description

[coro] Add support for polymorphic return typed coro.suspend.async

This allows for suspend point specific resume function types.

Return values from a suspend point can therefore be modelled as
arguments to the resume function. Allowing for directly passed return
types.

Differential Revision: https://reviews.llvm.org/D96136