Thread overview
Is there a way to get LLVM coroutine support from LDC?
Jun 10, 2023
d007
Jun 10, 2023
d007
Jun 10, 2023
d007
June 10, 2023

I want try LLVM coroutine with LDC, is there a way to do it without not modify the LDC source code?

for example write some LLVM IR code and build it into asm, then link with D code by lld.

Is this doable?

June 10, 2023

On Saturday, 10 June 2023 at 15:36:27 UTC, d007 wrote:

>

I want try LLVM coroutine with LDC, is there a way to do it without not modify the LDC source code?

for example write some LLVM IR code and build it into asm, then link with D code by lld.

Is this doable?

Find this link https://forum.dlang.org/post/ovulivsigcyrlajzmkdq@forum.dlang.org

any one know how to fix the "Intrinsic has incorrect return type!" error?

June 10, 2023

On Saturday, 10 June 2023 at 15:43:22 UTC, d007 wrote:

>

On Saturday, 10 June 2023 at 15:36:27 UTC, d007 wrote:

>

I want try LLVM coroutine with LDC, is there a way to do it without not modify the LDC source code?

for example write some LLVM IR code and build it into asm, then link with D code by lld.

Is this doable?

Find this link https://forum.dlang.org/post/ovulivsigcyrlajzmkdq@forum.dlang.org

any one know how to fix the "Intrinsic has incorrect return type!" error?

I find this https://chromium.googlesource.com/external/github.com/llvm-mirror/clang/+/refs/heads/master/test/CodeGenCoroutines/coro-builtins.c

Maybe build a c object and some link it with D will work ? I am not able to think a way to handle this