[gollvm] Are there any plans to sync with LLVM16 or above?

204 views
Skip to first unread message

sophie zhao

unread,
Feb 26, 2024, 12:57:17 AM2/26/24
to golang-nuts
Hello,
We want to add support for the loongarch architecture to gollvm, which requires using an LLVM version that supports loongarch (that is, a version >= 16.0.0). The current gollvm only syncs with LLVM trunk at 09629215c272. We did some work synchronizing LLVM locally, but it wasn't enough. We would like to ask if the community has any work plan to synchronize LLVM. If necessary, we can also join in this work.

Than McIntosh

unread,
Feb 26, 2024, 9:25:10 AM2/26/24
to sophie zhao, golang-nuts
Hi Sophie,

Thanks for the question.

The chief blocker for updating gollvm to later versions of LLVM trunk is dealing with LLVM's opaque pointer migration in the gollvm bridge source code. The bridge (which maps from gofrontend's IR to LLVM IR) was written prior to opaque pointers and it assumes that given an LLVM type T, it can always ask for what T points to (which is exactly what you can't do under the opaque pointer model).

Fixing this is not a huge amounts of work (maybe a few weeks? hard to tell) but the folks with the highest level of gollvm expertise have been tied up with other more important priorities.

So to answer your question, no plans in the short term.  I could provide some limited help (pointers etc) but I don't have the time to make a significant investment in this at the moment.

Thanks, Than

On Mon, Feb 26, 2024 at 12:57 AM sophie zhao <sophie...@gmail.com> wrote:
Hello,
We want to add support for the loongarch architecture to gollvm, which requires using an LLVM version that supports loongarch (that is, a version >= 16.0.0). The current gollvm only syncs with LLVM trunk at 09629215c272. We did some work synchronizing LLVM locally, but it wasn't enough. We would like to ask if the community has any work plan to synchronize LLVM. If necessary, we can also join in this work.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/b9ff523c-1e13-43a4-bb22-03ca46e84c7fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages