Displaying 1 result from an estimated 1 matches for "coro_end".
Did you mean:
core_env
2016 Jul 21
2
RFC: LLVM Coroutine Representation, Round 2
...t;> #include "Inputs/coro.h"
>> void print(int v);
>>
>> void* f(int n) {
>> CORO_BEGIN(malloc);
>>
>> while (n-- > 0) {
>> print(n+1);
>> CORO_SUSPEND();
>> }
>>
>> CORO_END(free);
>> }
>>
>> // CHECK-LABEL: @main
>> int main() {
>> void* coro = f(4);
>> CORO_RESUME(coro);
>> CORO_RESUME(coro);
>> CORO_DESTROY(coro);
>> }
>>
>> https://github.com/GorNishanov/clang/...