Skip to content
Projets

À propos

Go bindings to LLVM. Used as part of TinyGo.

Outils de développement

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Go bindings to system LLVM

This library provides bindings to a system-installed LLVM.

Currently supported:

  • LLVM 24 (development), 23, 22, 21, 20, 19, 18, 17, 16 and 15 from apt.llvm.org on Debian/Ubuntu.
  • LLVM 23, 22, 21, 20, 19, 18, 17, 16 and 15 from Homebrew on macOS.
  • Any supported version with a manually built LLVM through the byollvm build tag. You need to set up CFLAGS/LDFLAGS etc yourself in this case. If you use a version other than LLVM 22, also set the matching llvmNN build tag.

You can select the LLVM version using a build tag, for example -tags=llvm17 to use LLVM 17.

Usage

If you have a supported LLVM installation, you should be able to do a simple go get:

go get tinygo.org/x/go-llvm

You can use build tags to select a LLVM version. For example, use -tags=llvm15 to select LLVM 15. Setting a build tag for a LLVM version that is not supported will be ignored. With a manually built LLVM, combine byollvm with the matching version tag unless you use LLVM 22, for example -tags="byollvm,llvm17". The byollvm tag does not detect the LLVM version.

License

These LLVM bindings for Go originally come from LLVM, but they have since been removed. Still, they remain under the same license as they were originally, which is the Apache License 2.0 (with LLVM exceptions). Check upstream LLVM for detailed copyright information.

This README, the backports* files, and the Makefile are separate from LLVM but are licensed under the same license.

Explorer des projets similaires

Chargement…