search for: coroutine_descriptor_size

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

2011 Jul 28
4
[LLVMdev] [RFC] Coroutines
...t coroutine switch left off. In this state: w1 contains the IP to jump to. w2 contains the stack pointer. w3 is undefined. Directly based on previous discussions on the list, I think it makes sense to add the following intrinsics to LLVM: // Returns the size of a coroutine descriptor. i32 llvm.coroutine_descriptor_size() // Creates a new coroutine, which starts off with the function // `function' being called with the argument `baton'. For this to // work correctly, function must be of the type `void () (i8 *)'. // `stack_size' will be the initial stack size. `descriptor' is a // block of mem...
2011 Aug 04
0
[LLVMdev] [RFC] Coroutines
...1 contains the IP to jump to. > w2 contains the stack pointer. > w3 is undefined. > > > > Directly based on previous discussions on the list, I think it makes > sense to add the following intrinsics to LLVM: > > // Returns the size of a coroutine descriptor. > i32 llvm.coroutine_descriptor_size() > > // Creates a new coroutine, which starts off with the function > // `function' being called with the argument `baton'. For this to > // work correctly, function must be of the type `void () (i8 *)'. > // `stack_size' will be the initial stack size. `descriptor...