search for: f_inner

Displaying 2 results from an estimated 2 matches for "f_inner".

Did you mean: brinner
2016 Jun 09
2
Fwd: [RFC] LLVM Coroutines
...I will be glad to try it out and come back with the report on how it went. >> Maybe you could reduce the amount of magic involved by splitting the >> initialization into a separate function? So the initialization is always >> just something like "f(int x) { frame = init(); f_inner(x, frame); return >> frame; }", and you don't have to deal with the weirdness of fork(). I think outlining the "start" part will be sufficient (starting at the coro.fork and cutting all of the branches ending in coro.end). In this case llvm won't see coro.fork and coro...
2016 Jun 09
6
Fwd: [RFC] LLVM Coroutines
Hi all: Below is a proposal to add experimental coroutine support to LLVM. Though this proposal is motivated primarily by the desire to support C++ Coroutines [1], the llvm representation is language neutral and can be used to support coroutines in other languages as well. Clang + llvm coroutines allows you to take this code: generator<int> range(int from, int to) { for(int i =