llvm
llvm copied to clipboard
Library for interacting with LLVM IR in pure Go.
ref: #220. LLVM 15.0 is **yet to be released** (release candidate at: https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.0-rc1) TODO: Once released, create a diff as follows: ```bash wget https://github.com/llvm/llvm-project/archive/llvmorg-14.0.6.tar.gz wget https://github.com/llvm/llvm-project/archive/llvmorg-15.0.0.tar.gz tar zxf llvmorg-14.0.6.tar.gz tar...
How do you call the `sizeof` function from LLVM? When C code using `sizeof` is generated, the code generated just has a constant. Is there a way to find the...
Generic(a.k.a. parametric polymorphism) added into Go, let's explore how would it change our codebase, this issue is created to track related discussion. - Go 1.18 Beta 1 or later -...
Should we rethink sumtypes to allow for user-defined types? For instance, `ir.Instruction` currently requires the unexported `isInstruction` method, but there are valid use cases where users may wish to define...
@mewmew and I had a brief thought about reducing external dependencies. This is a reminder to discuss this further. We're currently thinking that pkg/errors doesn't bring much to the table...
As suggested in https://github.com/llir/llvm/pull/187#issuecomment-860148771: > I would say the biggest difficulty was the C standard library - it would be super cool to have a stdlib package, with bindings to...
irutil: add utility API for creating dwarf metadata (was: Example with inclusion of DWARF output?)
Looking at the examples, would it be feasible to add one that includes the DWARF debugging info? For example, the current "Output example - Produce LLVM IR assembly" is useful...
Thanks for this cool project! @mewmew I'm wondering if llir/llvm could be used to generate code in a Go program that interacts with the Go (gc) runtime... allocating objects that...
Is there a simple way how to clone functions? I'd like to duplicate a function like this: ```go func duplicate(m *ir.Module, foo string) { for _, f := range m.Funcs...
I don't know what type my function's return type will be until I have made all of the code up to the return statement. Most of the time this works,...