Skip to content

Commit a62756e

Browse files
committed
Upgrade to LLVM 21
1 parent ffb1e94 commit a62756e

18 files changed

+86
-84
lines changed

.github/workflows/apple-silicon-llvm-from-sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
echo "${GITHUB_WORKSPACE}/ninja" >> $GITHUB_PATH
2222
- name: Clone llvm-project
2323
run: |
24-
git clone --depth 1 --single-branch --branch release/20.x https://github.com/llvm/llvm-project
24+
git clone --depth 1 --single-branch --branch release/21.x https://github.com/llvm/llvm-project
2525
- name: Build LLVM
2626
run: |
2727
cd llvm-project

.github/workflows/apple-silicon.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ jobs:
2727
- name: Install Dependencies
2828
run: |
2929
brew update
30-
brew install llvm@20
30+
brew install llvm@21
3131
brew install lit
3232
- name: Build HelloWorld
3333
run: |
3434
cd HelloWorld
3535
mkdir build && cd build
36-
cmake -DLT_LLVM_INSTALL_DIR="/opt/homebrew/opt/llvm@20/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
36+
cmake -DLT_LLVM_INSTALL_DIR="/opt/homebrew/opt/llvm@21/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
3737
make -j2
3838
- name: Build llvm-tutor + run tests
3939
run: |
4040
cd $GITHUB_WORKSPACE
4141
mkdir build && cd build
42-
cmake -DLT_LLVM_INSTALL_DIR="/opt/homebrew/opt/llvm@20/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
42+
cmake -DLT_LLVM_INSTALL_DIR="/opt/homebrew/opt/llvm@21/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
4343
make -j2
4444
lit test/

.github/workflows/docker-archlinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Build the Docker image
16-
run: docker build . --file Dockerfile_archlinux --tag llvm-tutor:llvm-20
16+
run: docker build . --file Dockerfile_archlinux --tag llvm-tutor:llvm-21

.github/workflows/docker-fedora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Build the Docker image
16-
run: docker build . --file Dockerfile_fedora --tag llvm-tutor:llvm-20
16+
run: docker build . --file Dockerfile_fedora --tag llvm-tutor:llvm-21

.github/workflows/docker-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Build the Docker image
16-
run: docker build . --file Dockerfile_ubuntu --tag llvm-tutor:llvm-20
16+
run: docker build . --file Dockerfile_ubuntu --tag llvm-tutor:llvm-21

.github/workflows/docker-ubunut-apt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Build the Docker image
16-
run: docker build . --file Dockerfile_ubuntu_apt --tag llvm-tutor:llvm-20
16+
run: docker build . --file Dockerfile_ubuntu_apt --tag llvm-tutor:llvm-21

.github/workflows/x86-ubuntu-llvm-from-sources-static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
echo "${GITHUB_WORKSPACE}/ninja" >> $GITHUB_PATH
2222
- name: Clone llvm-project
2323
run: |
24-
git clone --depth 1 --single-branch --branch release/20.x https://github.com/llvm/llvm-project
24+
git clone --depth 1 --single-branch --branch release/21.x https://github.com/llvm/llvm-project
2525
cd llvm-project
2626
- name: Register MBAAdd statically
2727
run: |

.github/workflows/x86-ubuntu-llvm-from-sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
echo "${GITHUB_WORKSPACE}/ninja" >> $GITHUB_PATH
2424
- name: Clone llvm-project
2525
run: |
26-
git clone --depth 10 --single-branch --branch release/20.x https://github.com/llvm/llvm-project
26+
git clone --depth 10 --single-branch --branch release/21.x https://github.com/llvm/llvm-project
2727
- name: Build LLVM
2828
run: |
2929
cd llvm-project

.github/workflows/x86-ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
CXX: ${{ matrix.compiler.CXX }}
2626
run: |
2727
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
28-
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-20 main"
28+
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-21 main"
2929
sudo apt-get update
30-
sudo apt-get install -y llvm-20 llvm-20-dev llvm-20-tools clang-20
30+
sudo apt-get install -y llvm-21 llvm-21-dev llvm-21-tools clang-21
3131
sudo apt-get install python3-setuptools
3232
sudo pip3 install lit
3333
- name: Build HelloWorld
@@ -37,12 +37,12 @@ jobs:
3737
run: |
3838
cd HelloWorld
3939
mkdir build && cd build
40-
cmake -DLT_LLVM_INSTALL_DIR="/usr/lib/llvm-20/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
40+
cmake -DLT_LLVM_INSTALL_DIR="/usr/lib/llvm-21/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
4141
make -j2
4242
- name: Build llvm-tutor + run tests
4343
run: |
4444
cd $GITHUB_WORKSPACE
4545
mkdir build && cd build
46-
cmake -DLT_LLVM_INSTALL_DIR="/usr/lib/llvm-20/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
46+
cmake -DLT_LLVM_INSTALL_DIR="/usr/lib/llvm-21/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../
4747
make -j2
4848
lit -va test/

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ list(APPEND CMAKE_PREFIX_PATH "${LT_LLVM_INSTALL_DIR}/lib/cmake/llvm/")
5252
find_package(LLVM CONFIG)
5353

5454
# We defer the version checking to this statement
55-
if("${LLVM_VERSION_MAJOR}" VERSION_LESS 20)
56-
message(FATAL_ERROR "Found LLVM ${LLVM_VERSION_MAJOR}, but need LLVM 20 or above")
55+
if("${LLVM_VERSION_MAJOR}" VERSION_LESS 21)
56+
message(FATAL_ERROR "Found LLVM ${LLVM_VERSION_MAJOR}, but need LLVM 21 or above")
5757
endif()
5858

5959
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")

0 commit comments

Comments
 (0)