This is an archive of the discontinued LLVM Phabricator instance.

[coroutines] Refactor SuspendExpr to create just one OpaqueValue (almost NFC)
ClosedPublic

Authored by GorNishanov on Mar 8 2017, 11:12 PM.

Details

Summary

Create only one OpaqueValue for await_ready/await_suspend/await_resume.
Store OpaqueValue used in the CoroutineSuspendExpr node, so that CodeGen does not have to hunt looking for it.

Diff Detail

Event Timeline

GorNishanov created this revision.Mar 8 2017, 11:12 PM
EricWF accepted this revision.Mar 10 2017, 3:34 PM

This LGTM.

This revision is now accepted and ready to land.Mar 10 2017, 3:34 PM
This revision was automatically updated to reflect the committed changes.