What parts of llvm are exposed to llgo?

135 views
Skip to first unread message

jbec...@gmail.com

unread,
Mar 30, 2020, 2:35:10 PM3/30/20
to llgo-dev
I assume this is just to the go build compiler that uses llvm?

Does this have access to the llvm-ir or the llvm-disassembler?  Can I use Go to do binary analysis?

Ian Smith

unread,
Apr 9, 2020, 6:54:17 AM4/9/20
to llgo-dev
Not sure if you are aware of this:


but this go compiler (not complete) has built an interface to LLVM from go via CGO.  Thus, you can make calls to the LLVM infrastructure/libraries from go code.  I doubt it has all the calls you would need (since LLVM is huge) but it at least has done the work of figuring how to create such an interface.

hope this helps,
ian

Ian Smith

unread,
Apr 10, 2020, 12:25:06 AM4/10/20
to llgo...@googlegroups.com
That's a little beyond what I know about their interface to LLVM.    You might try their slack channel (tinygo on gophers) and ask.


On Mon, Mar 30, 2020 at 2:35 PM <jbec...@gmail.com> wrote:
I assume this is just to the go build compiler that uses llvm?

Does this have access to the llvm-ir or the llvm-disassembler?  Can I use Go to do binary analysis?

--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/llgo-dev/b04e1992-6063-4e08-8386-5756f45dc702%40googlegroups.com.


--
---------------------------------
ians...@acm.org
Je suis Marxiste—tendance Groucho.
Reply all
Reply to author
Forward
0 new messages