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?
Thread overview |
---|
June 10, 2023 Is there a way to get LLVM coroutine support from LDC? | ||||
---|---|---|---|---|
| ||||
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 Re: Is there a way to get LLVM coroutine support from LDC? | ||||
---|---|---|---|---|
| ||||
Posted in reply to d007 | 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 Re: Is there a way to get LLVM coroutine support from LDC? | ||||
---|---|---|---|---|
| ||||
Posted in reply to d007 | 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? Maybe build a c object and some link it with D will work ? I am not able to think a way to handle this |