www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Request for Help: Updating LDC to LLVM 15

reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
Hi All

LLVM 15 has changed the API quite significantly, mostly with the 
transition to opaque pointer types which pushes the onus of 
keeping track of what types are loaded to the driver (i.e. LDC), 
and in order to update I've put together a checklist[1].

As the reacting required touches a large number of site but is it 
otherwise mostly the same set of changes, with replacing loads 
which rely on LLVM for type information, with typed loads derived 
from the D types. However these changes are different enough that 
each call site requires individual analysis.

This has been quite a slog so far and I'd like to solicit the 
time of anyone interested in helping and/or learning the LDC 
codebase (for this it's mostly DMD's Type class hierarchy, LDC's 
LLVM IR generations, and the interface of LLVM).

I'll be available on the beerconf jitsi for most of the weekend 
as well as the discord to provide more details and directions.

Many thanks,
Nic

[1]: https://github.com/ldc-developers/ldc/issues/4042
Aug 27 2022
next sibling parent reply test123 <test123 gmail.com> writes:
On Saturday, 27 August 2022 at 13:27:47 UTC, Nicholas Wilson 
wrote:
 Hi All

 LLVM 15 has changed the API quite significantly, mostly with 
 the transition to opaque pointer types which pushes the onus of 
 keeping track of what types are loaded to the driver (i.e. 
 LDC), and in order to update I've put together a checklist[1].

 As the reacting required touches a large number of site but is 
 it otherwise mostly the same set of changes, with replacing 
 loads which rely on LLVM for type information, with typed loads 
 derived from the D types. However these changes are different 
 enough that each call site requires individual analysis.

 This has been quite a slog so far and I'd like to solicit the 
 time of anyone interested in helping and/or learning the LDC 
 codebase (for this it's mostly DMD's Type class hierarchy, 
 LDC's LLVM IR generations, and the interface of LLVM).

 I'll be available on the beerconf jitsi for most of the weekend 
 as well as the discord to provide more details and directions.

 Many thanks,
 Nic

 [1]: https://github.com/ldc-developers/ldc/issues/4042
Thanks for all the hard work put into D open source compiler. I am sorry I can not able to help(dont know C++). D community get smaller every year. If there is not enough qualified developer maintain LDC, D will disappear soon.
Aug 31 2022
next sibling parent Tejas <notrealemail gmail.com> writes:
On Wednesday, 31 August 2022 at 12:18:51 UTC, test123 wrote:
 On Saturday, 27 August 2022 at 13:27:47 UTC, Nicholas Wilson 
 wrote:
 [...]
Thanks for all the hard work put into D open source compiler. I am sorry I can not able to help(dont know C++). D community get smaller every year. If there is not enough qualified developer maintain LDC, D will disappear soon.
The extremely large number of people that attended dconf this year would beg to differ
Aug 31 2022
prev sibling next sibling parent Mike Parker <aldacron gmail.com> writes:
On Wednesday, 31 August 2022 at 12:18:51 UTC, test123 wrote:

 D community get smaller every year. If there is not enough 
 qualified developer maintain LDC, D will disappear soon.
LDC has always had fewer contributors than the core D repositories. That's nothing new. It's just that this particular project requires a significant amount of work. And the D community is getting larger from where I sit. What's shrinking is the ratio of contributors to non-contributors, but that just means we need to get serious about managing available resources. And that's what we're doing. D isn't going to disappear anytime soon.
Aug 31 2022
prev sibling next sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
On Wednesday, 31 August 2022 at 12:18:51 UTC, test123 wrote:
 D community get smaller every year. If there is not enough 
 qualified developer maintain LDC, D will disappear soon.
What a bunch of nonsense...
Sep 01 2022
prev sibling parent bauss <jacobbauss gmail.com> writes:
On Wednesday, 31 August 2022 at 12:18:51 UTC, test123 wrote:
 D community get smaller every year. If there is not enough 
 qualified developer maintain LDC, D will disappear soon.
Source?
Sep 01 2022
prev sibling parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Saturday, 27 August 2022 at 13:27:47 UTC, Nicholas Wilson 
wrote:
 Hi All

 [1]: https://github.com/ldc-developers/ldc/issues/4042
Someone has stepped up: https://github.com/ldc-developers/ldc/pull/4105 Thank you!
Sep 03 2022