Need help about LLVM build coroutine
Dakota
dakota at gmail.com
Sat Mar 2 13:14:09 UTC 2024
On Saturday, 2 March 2024 at 13:08:48 UTC, Richard (Rikki) Andrew
Cattermole wrote:
> Even if I was to help you get that IR working, it won't do
> anything useful for you.
>
> A coroutine in LLVM IR is the top of the call stack.
>
> It must be able to see all functions it calls.
>
> You can't pass a function in by pointer, it has to be hard
> coded.
>
> This needs compiler support, you can't write code outside of
> the compiler for this.
I see tinygo get this support by mix cpp
https://github.com/tinygo-org/llvm-project/blob/master/libcxx/include/experimental/coroutine
Is the same thing can be done for D ?
More information about the digitalmars-d-ldc
mailing list