Code generation with LLVM bindings

46 views
Skip to first unread message

Jim Idle

unread,
Apr 1, 2020, 12:58:10 PM4/1/20
to golang-nuts
It isn't immediately obvious to me which package should be used to generate code using LLVM and go bindings.

On the one hand there is this package:

https://godoc.org/llvm.org/llvm/bindings/go/llvm

But I also see this one:

https://github.com/llir/llvm

Which seems to be specifically about IR. 

Instinct tells me that the llvm.org package is probably the one to use when implementing a code generator for a DSL, but a little searching does not make it obvious. 

Before I go diving in on my own, anyone on here used either of them? If this is not the right group I am about to rejoin the LLVM group and can ask there if further searching does not give me the answer.

Cheers,

Jim
Reply all
Reply to author
Forward
0 new messages