2016 LLVM Developers’ Meeting: G. Nishanov “LLVM Coroutines”

2016 LLVM Developers’ Meeting: G. Nishanov “LLVM Coroutines”

5.629 Lượt nghe
2016 LLVM Developers’ Meeting: G. Nishanov “LLVM Coroutines”
http://www.LLVM.org/devmtg/2016-11/ — LLVM Coroutines: Bringing resumable functions to LLVM - Gor Nishanov, Microsoft Slides: http://llvm.org/devmtg/2016-11/Slides/Nishanov-LLVMCoroutines.pdf — Though invented long time ago in 1957, coroutines are getting popular in this century. More and more languages adopt them to deal with lazily produced sequences and to simplify asynchronous programming. However, until recently, coroutines in high level languages were distinctly not a zero-overhead abstraction. We are rectifying that by adding coroutine support to LLVM that allows, finally, for high-level language to have efficient coroutines In this talk, we will look at coroutine examples in C++ and LLVM IR, at optimization passes that deal with coroutines and at LLVM coroutine representation that C++ and other frontend can use to describe coroutines to LLVM. LLVM coroutines are functions that can suspend their execution and return control back to their callers. Suspended coroutines can be resumed to continue execution when desired. Though coroutine support in LLVM is motivated primarily by the desire to support C++ Coroutines, the LLVM coroutine representation is language neutral and can be used to support coroutines in other languages as well. — Videos Filmed & Edited by Bash Films: http://www.BashFilms.com