Skip to content

Commit ae24111

Browse files
committed
LLVM and SPIRV-LLVM-Translator pulldown (WW03)
LLVM: llvm/llvm-project@110e1717b31e SPIRV-LLVM-Translator: KhronosGroup/SPIRV-LLVM-Translator@10b0aab
2 parents 30a2dae + 80f470c commit ae24111

File tree

4,643 files changed

+125453
-63864
lines changed

Some content is hidden

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

4,643 files changed

+125453
-63864
lines changed

.ci/generate-buildkite-pipeline-premerge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function add-dependencies() {
107107
done
108108
;;
109109
compiler-rt|libc|openmp)
110-
echo clang
110+
echo clang lld
111111
;;
112112
flang|lldb)
113113
for p in llvm clang; do

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
github-actions:
9+
patterns:
10+
- "*"
11+
- package-ecosystem: "pip"
12+
directory: "/llvm/docs"
13+
schedule:
14+
interval: "monthly"
15+
groups:
16+
llvm-docs-requirements:
17+
patterns:
18+
- "*"

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
- name: Build libcxx docs
139139
if: steps.docs-changed-subprojects.outputs.libcxx_any_changed == 'true'
140140
run: |
141-
cmake -B libcxx-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx" -DLLVM_ENABLE_SPHINX=ON ./runtimes
141+
cmake -B libcxx-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx;libunwind" -DLLVM_ENABLE_SPHINX=ON ./runtimes
142142
TZ=UTC ninja -C libcxx-build docs-libcxx-html
143143
- name: Build libc docs
144144
if: steps.docs-changed-subprojects.outputs.libc_any_changed == 'true'

.github/workflows/issue-subscriber.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
16+
- name: Checkout Automation Script
17+
uses: actions/checkout@v4
18+
with:
19+
sparse-checkout: llvm/utils/git/
20+
ref: main
21+
1622
- name: Setup Automation Script
23+
working-directory: ./llvm/utils/git/
1724
run: |
18-
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/github-automation.py
19-
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/requirements.txt
2025
chmod a+x github-automation.py
2126
pip install -r requirements.txt
2227
2328
- name: Update watchers
29+
working-directory: ./llvm/utils/git/
2430
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
2531
env:
2632
LABEL_NAME: ${{ github.event.label.name }}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@ jobs:
3030
check-clang-python:
3131
# Build libclang and then run the libclang Python binding's unit tests.
3232
name: Build and run Python unit tests
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
python-version: ["3.7", "3.11"]
3337
uses: ./.github/workflows/llvm-project-tests.yml
3438
with:
3539
build_target: check-clang-python
3640
projects: clang
3741
# There is an issue running on "windows-2019".
3842
# See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
3943
os_list: '["ubuntu-latest"]'
44+
python_version: ${{ matrix.python-version }}

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ concurrency:
3535

3636

3737
env:
38-
CMAKE: "/opt/bin/cmake"
3938
# LLVM POST-BRANCH bump version
4039
# LLVM POST-BRANCH add compiler test for ToT - 1, e.g. "Clang 17"
4140
# LLVM RELEASE bump remove compiler ToT - 3, e.g. "Clang 15"
@@ -163,31 +162,24 @@ jobs:
163162
'generic-no-rtti',
164163
'generic-optimized-speed',
165164
'generic-static',
166-
'generic-with_llvm_unwinder',
167165
# TODO Find a better place for the benchmark and bootstrapping builds to live. They're either very expensive
168166
# or don't provide much value since the benchmark run results are too noise on the bots.
169167
'benchmarks',
170168
'bootstrapping-build'
171169
]
172170
machine: [ 'libcxx-runners-8-set' ]
173-
std_modules: [ 'OFF' ]
174171
include:
175172
- config: 'generic-cxx26'
176173
machine: libcxx-runners-8-set
177-
std_modules: 'ON'
178174
- config: 'generic-asan'
179175
machine: libcxx-runners-8-set
180-
std_modules: 'OFF'
181176
- config: 'generic-tsan'
182177
machine: libcxx-runners-8-set
183-
std_modules: 'OFF'
184178
- config: 'generic-ubsan'
185179
machine: libcxx-runners-8-set
186-
std_modules: 'OFF'
187180
# Use a larger machine for MSAN to avoid timeout and memory allocation issues.
188181
- config: 'generic-msan'
189182
machine: libcxx-runners-8-set
190-
std_modules: 'OFF'
191183
runs-on: ${{ matrix.machine }}
192184
steps:
193185
- uses: actions/checkout@v4
@@ -197,7 +189,6 @@ jobs:
197189
CC: clang-18
198190
CXX: clang++-18
199191
ENABLE_CLANG_TIDY: "OFF"
200-
ENABLE_STD_MODULES: ${{ matrix.std_modules }}
201192
- uses: actions/upload-artifact@v3
202193
if: always()
203194
with:

.github/workflows/llvm-project-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
os_list:
1616
required: false
1717
default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
18+
python_version:
19+
required: false
20+
type: string
21+
default: '3.11'
1822
workflow_call:
1923
inputs:
2024
build_target:
@@ -38,6 +42,11 @@ on:
3842
# https://github.com/actions/virtual-environments/issues/5900
3943
default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
4044

45+
python_version:
46+
required: false
47+
type: string
48+
default: '3.11'
49+
4150
concurrency:
4251
# Skip intermediate builds: always.
4352
# Cancel intermediate builds: only if it is a pull request build.
@@ -67,7 +76,7 @@ jobs:
6776
- name: Setup Python
6877
uses: actions/setup-python@v4
6978
with:
70-
python-version: '3.11'
79+
python-version: ${{ inputs.python_version }}
7180
- name: Install Ninja
7281
uses: llvm/actions/install-ninja@main
7382
# actions/checkout deletes any existing files in the new git directory,

.github/workflows/new-prs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,20 @@ jobs:
3434
(github.event.pull_request.author_association != 'MEMBER') &&
3535
(github.event.pull_request.author_association != 'OWNER')
3636
steps:
37+
- name: Checkout Automation Script
38+
uses: actions/checkout@v4
39+
with:
40+
sparse-checkout: llvm/utils/git/
41+
ref: main
42+
3743
- name: Setup Automation Script
44+
working-directory: ./llvm/utils/git/
3845
run: |
39-
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
40-
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
4146
chmod a+x github-automation.py
4247
pip install -r requirements.txt
4348
4449
- name: Greet Author
50+
working-directory: ./llvm/utils/git/
4551
run: |
4652
./github-automation.py \
4753
--token '${{ secrets.GITHUB_TOKEN }}' \

.github/workflows/pr-subscriber.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
16+
- name: Checkout Automation Script
17+
uses: actions/checkout@v4
18+
with:
19+
sparse-checkout: llvm/utils/git/
20+
ref: main
21+
1622
- name: Setup Automation Script
23+
working-directory: ./llvm/utils/git/
1724
run: |
18-
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
19-
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
2025
chmod a+x github-automation.py
2126
pip install -r requirements.txt
2227
2328
- name: Update watchers
29+
working-directory: ./llvm/utils/git/
2430
run: |
2531
./github-automation.py \
2632
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \

.github/workflows/release-binaries.yml

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
name: Release Binaries
22

33
on:
4-
push:
5-
tags:
6-
- 'llvmorg-*'
74
workflow_dispatch:
85
inputs:
6+
release-version:
7+
description: 'Release Version'
8+
required: true
9+
type: string
910
upload:
1011
description: 'Upload binaries to the release page'
1112
required: true
12-
default: true
13+
default: false
1314
type: boolean
14-
tag:
15-
description: 'Tag to build'
15+
16+
workflow_call:
17+
inputs:
18+
release-version:
19+
description: 'Release Version'
1620
required: true
1721
type: string
22+
upload:
23+
description: 'Upload binaries to the release page'
24+
required: true
25+
default: false
26+
type: boolean
1827
schedule:
1928
# * is a special character in YAML so you have to quote this string
2029
- cron: '0 8 1 * *'
@@ -26,21 +35,26 @@ jobs:
2635
prepare:
2736
name: Prepare to build binaries
2837
runs-on: ubuntu-22.04
29-
if: github.repository == 'llvm/llvm-project'
3038
outputs:
31-
release-version: ${{ steps.validate-tag.outputs.release-version }}
32-
flags: ${{ steps.validate-tag.outputs.flags }}
33-
build-dir: ${{ steps.validate-tag.outputs.build-dir }}
34-
rc-flags: ${{ steps.validate-tag.outputs.rc-flags }}
35-
ref: ${{ steps.validate-tag.outputs.ref }}
36-
upload: ${{ steps.validate-tag.outputs.upload }}
39+
release-version: ${{ steps.vars.outputs.release-version }}
40+
flags: ${{ steps.vars.outputs.flags }}
41+
build-dir: ${{ steps.vars.outputs.build-dir }}
42+
rc-flags: ${{ steps.vars.outputs.rc-flags }}
43+
ref: ${{ steps.vars.outputs.ref }}
44+
upload: ${{ steps.vars.outputs.upload }}
3745

3846
steps:
3947
- name: Checkout LLVM
40-
uses: actions/checkout@v4
48+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49+
50+
- name: Check Permissions
51+
env:
52+
GITHUB_TOKEN: ${{ github.token }}
53+
run: |
54+
./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} check-permissions
4155
42-
- name: Validate and parse tag
43-
id: validate-tag
56+
- name: Collect Variables
57+
id: vars
4458
# In order for the test-release.sh script to run correctly, the LLVM
4559
# source needs to be at the following location relative to the build dir:
4660
# | X.Y.Z-rcN | ./rcN/llvm-project
@@ -61,9 +75,9 @@ jobs:
6175
if [ -n "${{ inputs.upload }}" ]; then
6276
upload="${{ inputs.upload }}"
6377
else
64-
upload="true"
78+
upload="false"
6579
fi
66-
bash .github/workflows/set-release-binary-outputs.sh "${{ github.actor }}" "$tag" "$upload"
80+
bash .github/workflows/set-release-binary-outputs.sh "$tag" "$upload"
6781
6882
# Try to get around the 6 hour timeout by first running a job to fill
6983
# the build cache.
@@ -77,15 +91,15 @@ jobs:
7791
- ubuntu-22.04
7892
steps:
7993
- name: Checkout LLVM
80-
uses: actions/checkout@v4
94+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8195
with:
8296
ref: ${{ needs.prepare.outputs.ref }}
8397

8498
- name: Install Ninja
85-
uses: llvm/actions/install-ninja@main
99+
uses: llvm/actions/install-ninja@22e9f909d35b50bd1181709564bfe816eaeaae81 # main
86100

87101
- name: Setup sccache
88-
uses: hendrikmuhs/ccache-action@v1
102+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
89103
with:
90104
max-size: 250M
91105
key: sccache-${{ matrix.os }}-release
@@ -119,13 +133,13 @@ jobs:
119133
120134
steps:
121135
- name: Checkout LLVM
122-
uses: actions/checkout@v4
136+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
123137
with:
124138
ref: ${{ needs.prepare.outputs.ref }}
125139
path: ${{ needs.prepare.outputs.build-dir }}/llvm-project
126140

127141
- name: Setup sccache
128-
uses: hendrikmuhs/ccache-action@v1
142+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
129143
with:
130144
max-size: 250M
131145
key: sccache-${{ matrix.target.os }}-release

0 commit comments

Comments
 (0)