Skip to content

maleadt/LLVM.jl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
lib
 
 
res
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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")

Note that the package is 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).