Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This LLVM C backend has been resurrected by Julia Computing with various improve
Installation instructions
=========================

This version of the LLVM C backend works with LLVM 19, for older versions please check the [tags](https://github.com/JuliaHubOSS/llvm-cbe/tags).
This version of the LLVM C backend works with LLVM 20, for older versions please check the [tags](https://github.com/JuliaHubOSS/llvm-cbe/tags).

Step 1: Installing LLVM
=======================
Expand All @@ -26,10 +26,10 @@ On CentOS, install the llvm-devel package:

On Debian and derivatives, install the llvm-dev package via:
```sh
~$ apt install llvm-19-dev clang-19 ninja-build
~$ apt install llvm-20-dev clang-20 ninja-build
```

Note: this project uses LLVM 19, so make sure that the package manager is installing it and not some other version. At the time of writing, [`Ubuntu 24.04 LTS` installs version 18](https://launchpad.net/ubuntu/noble/+package/llvm-dev).
Note: this project uses LLVM 20, so make sure that the package manager is installing it and not some other version. At the time of writing, [`Ubuntu 24.04 LTS` installs version 18](https://launchpad.net/ubuntu/noble/+package/llvm-dev).

Or compile LLVM yourself:
-----------------------------
Expand All @@ -39,7 +39,7 @@ The first step is to compile LLVM on your machine
(this assumes an in-tree build, but out-of-tree will also work):

```sh
~$ git clone --single-branch --branch llvmorg-19.1.1 --depth 1 https://github.com/llvm/llvm-project.git
~$ git clone --single-branch --branch llvmorg-20.1.8 --depth 1 https://github.com/llvm/llvm-project.git
~$ cd llvm-project
llvm-project$ mkdir llvm/build
llvm-project$ cd llvm/build
Expand Down Expand Up @@ -77,7 +77,7 @@ If llvm-cbe compiles, you should be able to run it with the following commands.
llvm-cbe$ cd test/selectionsort
selectionsort$ ls
main.c
selectionsort$ clang-19 -S -emit-llvm -g main.c
selectionsort$ clang-20 -S -emit-llvm -g main.c
selectionsort$ ls
main.c main.ll
selectionsort$ ../../build/tools/llvm-cbe/llvm-cbe main.ll
Expand Down
Loading