Skip to content

Commit 5efa687

Browse files
authored
Merge branch 'llvm:main' into otherwise-clause
2 parents 6ebd599 + 8a2a694 commit 5efa687

File tree

10,950 files changed

+705513
-436124
lines changed

Some content is hidden

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

10,950 files changed

+705513
-436124
lines changed

.ci/metrics/metrics.py

+368-140
Large diffs are not rendered by default.

.ci/metrics/requirements.lock.txt

+8
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,18 @@ pynacl==1.5.0 \
247247
--hash=sha256:a422368fc821589c228f4c49438a368831cb5bbc0eab5ebe1d7fac9dded6567b \
248248
--hash=sha256:e46dae94e34b085175f8abb3b0aaa7da40767865ac82c928eeb9e57e1ea8a543
249249
# via pygithub
250+
python-dateutil==2.9.0.post0 \
251+
--hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
252+
--hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427
253+
# via -r ./requirements.txt
250254
requests==2.32.3 \
251255
--hash=sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760 \
252256
--hash=sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6
253257
# via pygithub
258+
six==1.17.0 \
259+
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
260+
--hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81
261+
# via python-dateutil
254262
typing-extensions==4.12.2 \
255263
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
256264
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8

.ci/metrics/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pygithub==2.5.0
2+
python-dateutil==2.9.0.post0

.ci/monolithic-linux.sh

+1-18
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,6 @@ if [[ "${runtimes}" != "" ]]; then
9090
INSTALL_DIR="${BUILD_DIR}/install"
9191
mkdir -p ${RUNTIMES_BUILD_DIR}
9292

93-
echo "--- cmake runtimes C++03"
94-
95-
cmake -S "${MONOREPO_ROOT}/runtimes" -B "${RUNTIMES_BUILD_DIR}" -GNinja \
96-
-D CMAKE_C_COMPILER="${INSTALL_DIR}/bin/clang" \
97-
-D CMAKE_CXX_COMPILER="${INSTALL_DIR}/bin/clang++" \
98-
-D LLVM_ENABLE_RUNTIMES="${runtimes}" \
99-
-D LIBCXX_CXX_ABI=libcxxabi \
100-
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
101-
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
102-
-D LIBCXX_TEST_PARAMS="std=c++03" \
103-
-D LIBCXXABI_TEST_PARAMS="std=c++03" \
104-
-D LLVM_LIT_ARGS="${lit_args}"
105-
106-
echo "--- ninja runtimes C++03"
107-
108-
ninja -vC "${RUNTIMES_BUILD_DIR}" ${runtime_targets}
109-
11093
echo "--- cmake runtimes C++26"
11194

11295
rm -rf "${RUNTIMES_BUILD_DIR}"
@@ -140,6 +123,6 @@ if [[ "${runtimes}" != "" ]]; then
140123
-D LLVM_LIT_ARGS="${lit_args}"
141124

142125
echo "--- ninja runtimes clang modules"
143-
126+
144127
ninja -vC "${RUNTIMES_BUILD_DIR}" ${runtime_targets}
145128
fi

.github/workflows/build-ci-container.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
# The arch names should match the names used on dockerhub.
2828
# See https://github.com/docker-library/official-images#architectures-other-than-amd64
2929
- arch: amd64
30-
runs-on: depot-ubuntu-22.04-16
30+
runs-on: depot-ubuntu-24.04-16
3131
- arch: arm64v8
32-
runs-on: depot-ubuntu-22.04-arm-16
32+
runs-on: depot-ubuntu-24.04-arm-16
3333
steps:
3434
- name: Checkout LLVM
3535
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/build-metrics-container.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ on:
2020
jobs:
2121
build-metrics-container:
2222
if: github.repository_owner == 'llvm'
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2424
outputs:
2525
container-name: ${{ steps.vars.outputs.container-name }}
2626
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}
2727
container-filename: ${{ steps.vars.outputs.container-filename }}
2828
steps:
2929
- name: Checkout LLVM
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131
with:
3232
sparse-checkout: .ci/metrics/
3333
- name: Write Variables
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
5151
- name: Upload Container Image
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
5353
with:
5454
name: container
5555
path: ${{ steps.vars.outputs.container-filename }}
@@ -66,7 +66,7 @@ jobs:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6767
steps:
6868
- name: Download Container
69-
uses: actions/download-artifact@v4
69+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
7070
with:
7171
name: container
7272
- name: Push Container

.github/workflows/ci-post-commit-analyzer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4545

4646
- name: Setup ccache
47-
uses: hendrikmuhs/ccache-action@v1
47+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
4848
with:
4949
# A full build of llvm, clang, lld, and lldb takes about 250MB
5050
# of ccache space. There's not much reason to have more than this,

.github/workflows/commit-access-greeter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: >-
1616
github.repository_owner == 'llvm' &&
1717
github.event.label.name == 'infra:commit-access-request'
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2121
with:

.github/workflows/commit-access-review.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ permissions:
1212
jobs:
1313
commit-access-review:
1414
if: github.repository_owner == 'llvm'
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Fetch LLVM sources
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/containers/github-action-ci/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN cmake -B ./build -G Ninja ./llvm \
4040
RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution
4141

4242
FROM base as ci-container
43-
43+
4444
COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
4545

4646
# Need to install curl for hendrikmuhs/ccache-action
@@ -49,7 +49,7 @@ COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
4949
# Need git for SPIRV-Tools tests.
5050
RUN apt-get update && \
5151
DEBIAN_FRONTEND=noninteractive apt-get install -y \
52-
binutils \
52+
binutils \
5353
cmake \
5454
curl \
5555
git \
@@ -59,7 +59,6 @@ RUN apt-get update && \
5959
perl-modules \
6060
python3-psutil \
6161
sudo \
62-
6362
# These are needed by the premerge pipeline. Pip is used to install
6463
# dependent python packages and ccache is used for build caching. File and
6564
# tzdata are used for tests.

.github/workflows/docs.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ on:
5151
jobs:
5252
check-docs-build:
5353
name: "Test documentation build"
54-
runs-on: ubuntu-latest
54+
runs-on: ubuntu-24.04
5555
if: github.repository == 'llvm/llvm-project'
5656
steps:
5757
# Don't fetch before checking for file changes to force the file changes
@@ -60,12 +60,12 @@ jobs:
6060
# a local checkout beforehand.
6161
- name: Fetch LLVM sources (Push)
6262
if: ${{ github.event_name == 'push' }}
63-
uses: actions/checkout@v4
63+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6464
with:
6565
fetch-depth: 1
6666
- name: Get subprojects that have doc changes
6767
id: docs-changed-subprojects
68-
uses: tj-actions/changed-files@v39
68+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
6969
with:
7070
files_yaml: |
7171
llvm:
@@ -98,11 +98,11 @@ jobs:
9898
- '.github/workflows/docs.yml'
9999
- name: Fetch LLVM sources (PR)
100100
if: ${{ github.event_name == 'pull_request' }}
101-
uses: actions/checkout@v4
101+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102102
with:
103103
fetch-depth: 1
104104
- name: Setup Python env
105-
uses: actions/setup-python@v5
105+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
106106
with:
107107
python-version: '3.11'
108108
cache: 'pip'
@@ -216,7 +216,7 @@ jobs:
216216
mkdir built-docs/flang
217217
cp -r flang-build/docs/* built-docs/flang/
218218
- name: Upload docs
219-
uses: actions/upload-artifact@v4
219+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
220220
with:
221221
name: docs-output
222222
path: built-docs/

.github/workflows/email-check.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ permissions:
1010

1111
jobs:
1212
validate_email:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Fetch LLVM sources
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
ref: ${{ github.event.pull_request.head.sha }}
2020

.github/workflows/issue-release-workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ env:
3232
jobs:
3333
backport-commits:
3434
name: Backport Commits
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-24.04
3636
permissions:
3737
issues: write
3838
pull-requests: write
@@ -42,7 +42,7 @@ jobs:
4242
contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
4343
steps:
4444
- name: Fetch LLVM sources
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4646
with:
4747
repository: llvm/llvm-project
4848
# GitHub stores the token used for checkout and uses it for pushes

.github/workflows/issue-subscriber.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ permissions:
1010

1111
jobs:
1212
auto-subscribe:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Checkout Automation Script
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
sparse-checkout: llvm/utils/git/
2020
ref: main

.github/workflows/issue-write.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
pr-comment:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
1818
permissions:
1919
pull-requests: write
2020
if: >
@@ -25,7 +25,7 @@ jobs:
2525
)
2626
steps:
2727
- name: Fetch Sources
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929
with:
3030
sparse-checkout: |
3131
.github/workflows/unprivileged-download-artifact/action.yml
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: 'Comment on PR'
4141
if: steps.download-artifact.outputs.artifact-id != ''
42-
uses: actions/github-script@v3
42+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4343
with:
4444
github-token: ${{ secrets.GITHUB_TOKEN }}
4545
script: |
@@ -49,7 +49,7 @@ jobs:
4949
return;
5050
}
5151
52-
let runInfo = await github.actions.getWorkflowRun({
52+
let runInfo = await github.rest.actions.getWorkflowRun({
5353
owner: context.repo.owner,
5454
repo: context.repo.repo,
5555
run_id: context.payload.workflow_run.id
@@ -122,7 +122,7 @@ jobs:
122122
// Security check: Ensure that this comment was created by
123123
// the github-actions bot, so a malicious input won't overwrite
124124
// a user's comment.
125-
github.issues.getComment({
125+
github.rest.issues.getComment({
126126
owner: context.repo.owner,
127127
repo: context.repo.repo,
128128
comment_id: comment.id
@@ -132,7 +132,7 @@ jobs:
132132
console.log("Invalid comment id: " + comment.id);
133133
return;
134134
}
135-
github.issues.updateComment({
135+
github.rest.issues.updateComment({
136136
owner: context.repo.owner,
137137
repo: context.repo.repo,
138138
issue_number: pr_number,
@@ -141,7 +141,7 @@ jobs:
141141
});
142142
});
143143
} else {
144-
github.issues.createComment({
144+
github.rest.issues.createComment({
145145
owner: context.repo.owner,
146146
repo: context.repo.repo,
147147
issue_number: pr_number,

.github/workflows/libc-fullbuild-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# - c_compiler: gcc
3131
# cpp_compiler: g++
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434

3535
# Libc's build is relatively small comparing with other components of LLVM.
3636
# A fresh fullbuild takes about 190MiB of uncompressed disk space, which can
@@ -39,7 +39,7 @@ jobs:
3939
# Do not use direct GHAC access even though it is supported by sccache. GHAC rejects
4040
# frequent small object writes.
4141
- name: Setup ccache
42-
uses: hendrikmuhs/ccache-action@v1.2
42+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
4343
with:
4444
max-size: 1G
4545
key: libc_fullbuild_${{ matrix.c_compiler }}

.github/workflows/libc-overlay-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
cpp_compiler: clang++
4848

4949
steps:
50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5151

5252
# Libc's build is relatively small comparing with other components of LLVM.
5353
# A fresh linux overlay takes about 180MiB of uncompressed disk space, which can
@@ -57,7 +57,7 @@ jobs:
5757
# Do not use direct GHAC access even though it is supported by sccache. GHAC rejects
5858
# frequent small object writes.
5959
- name: Setup ccache
60-
uses: hendrikmuhs/ccache-action@v1
60+
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
6161
with:
6262
max-size: 1G
6363
key: libc_overlay_build_${{ matrix.os }}_${{ matrix.compiler.c_compiler }}

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
jobs:
2828
abi-dump-setup:
2929
if: github.repository_owner == 'llvm'
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
outputs:
3232
BASELINE_REF: ${{ steps.vars.outputs.BASELINE_REF }}
3333
ABI_HEADERS: ${{ steps.vars.outputs.ABI_HEADERS }}
@@ -38,7 +38,7 @@ jobs:
3838
LLVM_VERSION_PATCH: ${{ steps.version.outputs.patch }}
3939
steps:
4040
- name: Checkout source
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4242
with:
4343
fetch-depth: 250
4444

@@ -83,7 +83,7 @@ jobs:
8383
abi-dump:
8484
if: github.repository_owner == 'llvm'
8585
needs: abi-dump-setup
86-
runs-on: ubuntu-latest
86+
runs-on: ubuntu-24.04
8787
strategy:
8888
matrix:
8989
name:
@@ -137,7 +137,7 @@ jobs:
137137

138138
abi-compare:
139139
if: github.repository_owner == 'llvm'
140-
runs-on: ubuntu-latest
140+
runs-on: ubuntu-24.04
141141
needs:
142142
- abi-dump-setup
143143
- abi-dump

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
python-version: ["3.8", "3.11"]
33+
python-version: ["3.8", "3.13"]
3434
uses: ./.github/workflows/llvm-project-tests.yml
3535
with:
3636
build_target: check-clang-python

0 commit comments

Comments
 (0)