Skip to content

Commit c910217

Browse files
committed
Merge llvmorg-20.1.3 into cheriot
2 parents 72c6c21 + 923a5c4 commit c910217

File tree

709 files changed

+26981
-13121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

709 files changed

+26981
-13121
lines changed

.github/workflows/clang-tests.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/libclang-abi-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ jobs:
103103
uses: llvm/actions/install-ninja@main
104104
- name: Install abi-compliance-checker
105105
run: |
106-
sudo apt-get install abi-dumper autoconf pkg-config
106+
sudo apt-get update
107+
sudo apt-get install -y abi-dumper autoconf pkg-config
107108
- name: Install universal-ctags
108109
run: |
109110
git clone https://github.com/universal-ctags/ctags.git
@@ -154,7 +155,9 @@ jobs:
154155
path: build-latest
155156

156157
- name: Install abi-compliance-checker
157-
run: sudo apt-get install abi-compliance-checker
158+
run: |
159+
sudo apt-get update
160+
sudo apt-get install -y abi-compliance-checker
158161
- name: Compare ABI
159162
run: |
160163
for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do

.github/workflows/libclc-tests.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ jobs:
251251
- name: Install a current LLVM
252252
if: ${{ matrix.mingw != true }}
253253
run: |
254-
choco install -y llvm --version=18.1.6 --allow-downgrade
254+
choco install -y llvm --version=19.1.7 --allow-downgrade
255255
- name: Install llvm-mingw
256256
if: ${{ matrix.mingw == true }}
257257
run: |
258-
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20240606/llvm-mingw-20240606-ucrt-x86_64.zip
258+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250114/llvm-mingw-20250114-ucrt-x86_64.zip
259259
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
260260
del llvm-mingw*.zip
261261
mv llvm-mingw* c:\llvm-mingw

.github/workflows/lld-tests.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/lldb-tests.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/llvm-tests.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ on:
1111
paths:
1212
- 'llvm/**'
1313
- '.github/workflows/llvm-tests.yml'
14-
- '.github/workflows/llvm-project-tests.yml'
1514
pull_request:
1615
branches:
1716
- 'release/**'
1817
paths:
1918
- 'llvm/**'
2019
- '.github/workflows/llvm-tests.yml'
21-
- '.github/workflows/llvm-project-tests.yml'
2220

2321
concurrency:
2422
# Skip intermediate builds: always.
@@ -27,14 +25,6 @@ concurrency:
2725
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
2826

2927
jobs:
30-
check-all:
31-
if: github.repository_owner == 'llvm'
32-
name: Build and Test
33-
uses: ./.github/workflows/llvm-project-tests.yml
34-
with:
35-
build_target: check-all
36-
projects: clang;lld;libclc;lldb
37-
3828
abi-dump-setup:
3929
if: github.repository_owner == 'llvm'
4030
runs-on: ubuntu-latest
@@ -101,7 +91,8 @@ jobs:
10191
uses: llvm/actions/install-ninja@main
10292
- name: Install abi-compliance-checker
10393
run: |
104-
sudo apt-get install abi-dumper autoconf pkg-config
94+
sudo apt-get update
95+
sudo apt-get -y install abi-dumper autoconf pkg-config
10596
- name: Install universal-ctags
10697
run: |
10798
git clone https://github.com/universal-ctags/ctags.git
@@ -173,7 +164,9 @@ jobs:
173164
path: symbol-list
174165

175166
- name: Install abi-compliance-checker
176-
run: sudo apt-get install abi-compliance-checker
167+
run: |
168+
sudo apt-get update
169+
sudo apt-get -y install abi-compliance-checker
177170
- name: Compare ABI
178171
run: |
179172
if [ -s symbol-list/llvm.symbols ]; then

.github/workflows/premerge.yaml

Lines changed: 88 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,30 @@ permissions:
55

66
on:
77
pull_request:
8-
paths:
9-
- .github/workflows/premerge.yaml
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
# When a PR is closed, we still start this workflow, but then skip
13+
# all the jobs, which makes it effectively a no-op. The reason to
14+
# do this is that it allows us to take advantage of concurrency groups
15+
# to cancel in progress CI jobs whenever the PR is closed.
16+
- closed
1017
push:
1118
branches:
1219
- 'main'
20+
- 'release/**'
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
24+
cancel-in-progress: true
1325

1426
jobs:
1527
premerge-checks-linux:
16-
if: github.repository_owner == 'llvm'
28+
if: >-
29+
false && github.repository_owner == 'llvm' &&
30+
(github.event_name != 'pull_request' || github.event.action != 'closed')
1731
runs-on: llvm-premerge-linux-runners
18-
concurrency:
19-
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.sha }}
20-
cancel-in-progress: true
2132
steps:
2233
- name: Checkout LLVM
2334
uses: actions/checkout@v4
@@ -72,11 +83,10 @@ jobs:
7283
./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})"
7384
7485
premerge-checks-windows:
75-
if: github.repository_owner == 'llvm'
86+
if: >-
87+
false && github.repository_owner == 'llvm' &&
88+
(github.event_name != 'pull_request' || github.event.action != 'closed')
7689
runs-on: llvm-premerge-windows-runners
77-
concurrency:
78-
group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }}
79-
cancel-in-progress: true
8090
defaults:
8191
run:
8292
shell: bash
@@ -132,3 +142,71 @@ jobs:
132142
call C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64
133143
bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}"
134144
145+
permerge-check-macos:
146+
runs-on: macos-14
147+
if: >-
148+
github.repository_owner == 'llvm' &&
149+
(startswith(github.ref_name, 'release/') ||
150+
startswith(github.base_ref, 'release/')) &&
151+
(github.event_name != 'pull_request' || github.event.action != 'closed')
152+
steps:
153+
- name: Checkout LLVM
154+
uses: actions/checkout@v4
155+
with:
156+
fetch-depth: 2
157+
- name: Setup ccache
158+
uses: hendrikmuhs/[email protected]
159+
with:
160+
max-size: "2000M"
161+
- name: Install Ninja
162+
uses: llvm/actions/install-ninja@main
163+
- name: Build and Test
164+
run: |
165+
modified_files=$(git diff --name-only HEAD~1...HEAD)
166+
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
167+
168+
echo $modified_files
169+
echo $modified_dirs
170+
171+
. ./.ci/compute-projects.sh
172+
173+
all_projects="clang clang-tools-extra lld lldb llvm mlir"
174+
modified_projects="$(keep-modified-projects ${all_projects})"
175+
176+
# We have to disable the runtimes builds due to https://github.com/llvm/llvm-project/issues/90568
177+
# and the lldb tests depend on libcxx, so we need to skip them.
178+
mac_check_targets=$(check-targets ${modified_projects} | sort | uniq | tr '\n' ' ' | sed -e 's/check-lldb //g')
179+
mac_projects=$(add-dependencies ${modified_projects} | sort | uniq | tr '\n' ' ')
180+
181+
mac_runtimes_to_test=$(compute-runtimes-to-test ${modified_projects})
182+
mac_runtime_check_targets=$(check-targets ${mac_runtimes_to_test} | sort | uniq | tr '\n' ' ')
183+
mac_runtimes=$(echo ${mac_runtimes_to_test} | tr ' ' '\n' | sort | uniq | tr '\n' ' ')
184+
185+
if [[ "${mac_projects}" == "" ]]; then
186+
echo "No projects to build"
187+
exit 0
188+
fi
189+
190+
echo "Projects to test: ${modified_projects}"
191+
echo "Runtimes to test: ${mac_runtimes_to_test}"
192+
echo "Building projects: ${mac_projects}"
193+
echo "Running project checks targets: ${mac_check_targets}"
194+
echo "Building runtimes: ${mac_runtimes}"
195+
echo "Running runtimes checks targets: ${mac_runtime_check_targets}"
196+
197+
# -DLLVM_DISABLE_ASSEMBLY_FILES=ON is for
198+
# https://github.com/llvm/llvm-project/issues/81967
199+
# Disable sharding in lit so that the LIT_XFAIL environment var works.
200+
cmake -G Ninja \
201+
-B build \
202+
-S llvm \
203+
-DLLVM_ENABLE_PROJECTS="$(echo ${mac_projects} | tr ' ' ';')" \
204+
-DLLVM_DISABLE_ASSEMBLY_FILES=ON \
205+
-DCMAKE_BUILD_TYPE=Release \
206+
-DLLDB_INCLUDE_TESTS=OFF \
207+
-DLLVM_ENABLE_ASSERTIONS=ON \
208+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
209+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
210+
211+
# The libcxx tests fail, so we are skipping the runtime targets.
212+
ninja -C build $mac_check_targets

.github/workflows/release-binaries-all.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
required: true
2828
default: false
2929
type: boolean
30+
secrets:
31+
RELEASE_TASKS_USER_TOKEN:
32+
description: "Secret used to check user permissions."
33+
required: false
3034

3135
pull_request:
3236
types:

0 commit comments

Comments
 (0)