llvm icon indicating copy to clipboard operation
llvm copied to clipboard

Library for interacting with LLVM IR in pure Go.

Results 21 llvm issues
Sort by recently updated
recently updated
newest added

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...

llvm 15.0

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...

util
howto
duplicate

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 -...

API

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...

API

@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...

meta
proposal

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...

util

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...

util
howto
metadata

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...

help wanted
Go interpreter

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...

util

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,...

semantic analysis
type-checking