Is there a way to get LLVM coroutine support from LDC?

d007 d007 at gmail.com
Sat Jun 10 15:52:27 UTC 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


More information about the Digitalmars-d mailing list