Skip to content

JuliaLLVM/LLVM.jl

Folders and files

NameName
Last commit message
Last commit date
Feb 20, 2025
Jan 21, 2025
Jan 9, 2025
Sep 6, 2024
Dec 12, 2024
Jan 22, 2025
Aug 22, 2024
Jan 22, 2025
Jan 22, 2025
Aug 29, 2024
May 10, 2019
Jul 6, 2020
Jun 17, 2024
Jan 9, 2025
Jan 22, 2025
Jan 11, 2025
Jun 30, 2023

Repository files navigation

LLVM C API wrapper

A Julia wrapper for the LLVM C API.

PkgEval

The LLVM.jl package is a Julia wrapper for the LLVM C API, and can be used to work with the LLVM compiler framework from Julia. You can use the package to work with LLVM code generated by Julia, to interoperate with the Julia compiler, or to create your own compiler. It is heavily used by the different GPU compilers for the Julia programming language.

Requirements

LLVM.jl is supported on Julia 1.10+, and thus requires LLVM 15. However, the package is really only intended to be used with the LLVM library shipped with Julia. That means you can not use it with other LLVM libraries, like the one provided by your operating system. It is recommended to use the official binaries from julialang.org, but custom builds are supported too (as long as they provide a dynamically-linked copy of the LLVM library).

Installation

LLVM.jl can be installed with the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and run:

pkg> add LLVM

Or, equivalently, via the Pkg API:

julia> import Pkg; Pkg.add("LLVM")