Skip to content

Commit 6825c15

Browse files
committed
Merge branch 'main' into scf-parallel-loop-fusion
2 parents 99d821b + 37fe152 commit 6825c15

File tree

6,165 files changed

+458021
-120189
lines changed

Some content is hidden

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

6,165 files changed

+458021
-120189
lines changed

.ci/generate-buildkite-pipeline-premerge

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ function compute-projects-to-test() {
7474
fi
7575
;;
7676
clang)
77-
for p in clang-tools-extra compiler-rt lldb cross-project-tests; do
77+
# lldb is temporarily removed to alleviate Linux pre-commit CI waiting times
78+
for p in clang-tools-extra compiler-rt cross-project-tests; do
7879
echo $p
7980
done
8081
;;

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ f6d557ee34b6bbdb1dc32f29e34b4a4a8ad35e81
8181

8282
# [NFC] clang-format utils/TableGen (#80973)
8383
b9079baaddfed5e604fbfaa1d81a7a1c38e78c26
84+
85+
# [libc++][NFC] Run clang-format on libcxx/include again (#95874)
86+
e2c2ffbe7a1b5d9e32a2ce64279475b50c4cba5b

.github/CODEOWNERS

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ clang/test/AST/Interp/ @tbaederr
6464
/mlir/Dialect/*/Transforms/Bufferize.cpp @matthias-springer
6565

6666
# Linalg Dialect in MLIR.
67-
/mlir/include/mlir/Dialect/Linalg/* @dcaballe @nicolasvasilache @rengolin
68-
/mlir/lib/Dialect/Linalg/* @dcaballe @nicolasvasilache @rengolin
67+
/mlir/include/mlir/Dialect/Linalg @dcaballe @nicolasvasilache @rengolin
68+
/mlir/lib/Dialect/Linalg @dcaballe @nicolasvasilache @rengolin
6969
/mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp @MaheshRavishankar @nicolasvasilache
7070
/mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp @MaheshRavishankar @nicolasvasilache
7171
/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp @MaheshRavishankar @nicolasvasilache
@@ -85,8 +85,8 @@ clang/test/AST/Interp/ @tbaederr
8585
/mlir/**/*VectorToSCF* @banach-space @dcaballe @matthias-springer @nicolasvasilache
8686
/mlir/**/*VectorToLLVM* @banach-space @dcaballe @nicolasvasilache
8787
/mlir/**/*X86Vector* @aartbik @dcaballe @nicolasvasilache
88-
/mlir/include/mlir/Dialect/Vector/* @dcaballe @nicolasvasilache
89-
/mlir/lib/Dialect/Vector/* @dcaballe @nicolasvasilache
88+
/mlir/include/mlir/Dialect/Vector @dcaballe @nicolasvasilache
89+
/mlir/lib/Dialect/Vector @dcaballe @nicolasvasilache
9090
/mlir/lib/Dialect/Vector/Transforms/* @hanhanW @nicolasvasilache
9191
/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp @MaheshRavishankar @nicolasvasilache
9292
/mlir/**/*EmulateNarrowType* @dcaballe @hanhanW
@@ -141,3 +141,8 @@ clang/test/AST/Interp/ @tbaederr
141141

142142
# ExtractAPI
143143
/clang/**/ExtractAPI @daniel-grumberg
144+
145+
# DWARFLinker, dwarfutil, dsymutil
146+
/llvm/**/DWARFLinker/ @JDevlieghere
147+
/llvm/**/dsymutil/ @JDevlieghere
148+
/llvm/**/llvm-dwarfutil/ @JDevlieghere

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
with:
101101
fetch-depth: 1
102102
- name: Setup Python env
103-
uses: actions/setup-python@v4
103+
uses: actions/setup-python@v5
104104
with:
105105
python-version: '3.11'
106106
cache: 'pip'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
python-version: ["3.7", "3.11"]
39+
python-version: ["3.8", "3.11"]
4040
uses: ./.github/workflows/llvm-project-tests.yml
4141
with:
4242
build_target: check-clang-python

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,16 @@ jobs:
209209
- uses: actions/checkout@v4
210210
- name: Install dependencies
211211
run: |
212-
choco install -y ninja wget
212+
choco install -y ninja
213213
pip install psutil
214214
- name: Install a current LLVM
215215
if: ${{ matrix.mingw != true }}
216216
run: |
217-
choco install -y llvm --version=17.0.6
217+
choco install -y llvm --version=18.1.6 --allow-downgrade
218218
- name: Install llvm-mingw
219219
if: ${{ matrix.mingw == true }}
220220
run: |
221-
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20231128/llvm-mingw-20231128-ucrt-x86_64.zip
221+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20240606/llvm-mingw-20240606-ucrt-x86_64.zip
222222
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
223223
del llvm-mingw*.zip
224224
mv llvm-mingw* c:\llvm-mingw

.github/workflows/restart-preempted-libcxx-jobs.yaml renamed to .github/workflows/libcxx-restart-preempted-jobs.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
script: |
3535
const failure_regex = /Process completed with exit code 1./
3636
const preemption_regex = /The runner has received a shutdown signal/
37-
37+
3838
const wf_run = context.payload.workflow_run
3939
core.notice(`Running on "${wf_run.display_title}" by @${wf_run.actor.login} (event: ${wf_run.event})\nWorkflow run URL: ${wf_run.html_url}`)
4040
@@ -80,30 +80,30 @@ jobs:
8080
}
8181
check_run_ids.push(check_run.id);
8282
}
83-
83+
8484
has_preempted_job = false;
8585
8686
for (check_run_id of check_run_ids) {
8787
console.log('Listing annotations for check run: ' + check_run_id);
88-
88+
8989
annotations = await github.rest.checks.listAnnotations({
9090
owner: context.repo.owner,
9191
repo: context.repo.repo,
9292
check_run_id: check_run_id
9393
})
94-
94+
9595
for (annotation of annotations.data) {
9696
if (annotation.annotation_level != 'failure') {
9797
continue;
9898
}
99-
99+
100100
const preemption_match = annotation.message.match(preemption_regex);
101-
101+
102102
if (preemption_match != null) {
103103
console.log('Found preemption message: ' + annotation.message);
104104
has_preempted_job = true;
105105
}
106-
106+
107107
const failure_match = annotation.message.match(failure_regex);
108108
if (failure_match != null) {
109109
// We only want to restart the workflow if all of the failures were due to preemption.
@@ -115,20 +115,18 @@ jobs:
115115
return;
116116
}
117117
}
118-
}
119-
118+
}
119+
120120
if (!has_preempted_job) {
121121
core.notice('No preempted jobs found. Not restarting workflow.');
122122
await create_check_run('neutral', 'No preempted jobs found. Not restarting workflow.')
123123
return;
124124
}
125-
125+
126126
core.notice("Restarted workflow: " + context.payload.workflow_run.id);
127127
await github.rest.actions.reRunWorkflowFailedJobs({
128128
owner: context.repo.owner,
129129
repo: context.repo.repo,
130130
run_id: context.payload.workflow_run.id
131131
})
132132
await create_check_run('success', 'Restarted workflow run due to preempted job')
133-
134-

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# lldb. Using this setup-python action to make 3.10 the default
7878
# python fixes this.
7979
- name: Setup Python
80-
uses: actions/setup-python@v4
80+
uses: actions/setup-python@v5
8181
with:
8282
python-version: ${{ inputs.python_version }}
8383
- name: Install Ninja

.github/workflows/pr-code-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ jobs:
5555
- name: Install clang-format
5656
uses: aminya/setup-cpp@v1
5757
with:
58-
clangformat: 18.1.1
58+
clangformat: 18.1.7
5959

6060
- name: Setup Python env
61-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@v5
6262
with:
6363
python-version: '3.11'
6464
cache: 'pip'

.github/workflows/release-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3838

3939
- name: Setup Python env
40-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@v5
4141
with:
4242
cache: 'pip'
4343
cache-dependency-path: './llvm/docs/requirements.txt'

.github/workflows/release-doxygen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4040

4141
- name: Setup Python env
42-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
4343
with:
4444
cache: 'pip'
4545
cache-dependency-path: './llvm/docs/requirements.txt'

.github/workflows/release-sources.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Release Sources
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
release-version:
10+
description: Release Version
11+
required: true
12+
type: string
13+
workflow_call:
14+
inputs:
15+
release-version:
16+
description: Release Version
17+
required: true
18+
type: string
19+
# Run on pull_requests for testing purposes.
20+
pull_request:
21+
paths:
22+
- '.github/workflows/release-sources.yml'
23+
types:
24+
- opened
25+
- synchronize
26+
- reopened
27+
# When a PR is closed, we still start this workflow, but then skip
28+
# all the jobs, which makes it effectively a no-op. The reason to
29+
# do this is that it allows us to take advantage of concurrency groups
30+
# to cancel in progress CI jobs whenever the PR is closed.
31+
- closed
32+
33+
concurrency:
34+
group: ${{ github.workflow }}-${{ inputs.release-version || github.event.pull_request.number }}
35+
cancel-in-progress: True
36+
37+
jobs:
38+
inputs:
39+
name: Collect Job Inputs
40+
if: >-
41+
github.repository_owner == 'llvm' &&
42+
github.event.action != 'closed'
43+
outputs:
44+
ref: ${{ steps.inputs.outputs.ref }}
45+
export-args: ${{ steps.inputs.outputs.export-args }}
46+
runs-on: ubuntu-latest
47+
steps:
48+
- id: inputs
49+
run: |
50+
ref=${{ inputs.release-version || github.sha }}
51+
if [ -n "${{ inputs.release-version }}" ]; then
52+
export_args="-release ${{ inputs.release-version }} -final"
53+
else
54+
export_args="-git-ref ${{ github.sha }}"
55+
fi
56+
echo "ref=$ref" >> $GITHUB_OUTPUT
57+
echo "export-args=$export_args" >> $GITHUB_OUTPUT
58+
59+
release-sources:
60+
name: Package Release Sources
61+
if: github.repository_owner == 'llvm'
62+
runs-on: ubuntu-latest
63+
needs:
64+
- inputs
65+
permissions:
66+
id-token: write
67+
attestations: write
68+
steps:
69+
- name: Checkout LLVM
70+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
71+
with:
72+
ref: ${{ needs.inputs.outputs.ref }}
73+
fetch-tags: true
74+
- name: Install Dependencies
75+
run: |
76+
pip install --require-hashes -r ./llvm/utils/git/requirements.txt
77+
78+
- name: Check Permissions
79+
if: github.event_name != 'pull_request'
80+
env:
81+
GITHUB_TOKEN: ${{ github.token }}
82+
USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
83+
run: |
84+
./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} --user-token "$USER_TOKEN" check-permissions
85+
- name: Create Tarballs
86+
run: |
87+
./llvm/utils/release/export.sh ${{ needs.inputs.outputs.export-args }}
88+
- name: Attest Build Provenance
89+
if: github.event_name != 'pull_request'
90+
id: provenance
91+
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
92+
with:
93+
subject-path: "*.xz"
94+
- if: github.event_name != 'pull_request'
95+
run: |
96+
mv ${{ steps.provenance.outputs.bundle-path }} .
97+
- name: Create Tarball Artifacts
98+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3
99+
with:
100+
path: |
101+
*.xz
102+
attestation.jsonl
103+
104+

.github/workflows/release-tasks.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,14 @@ jobs:
8585
with:
8686
release-version: ${{ needs.validate-tag.outputs.release-version }}
8787
upload: true
88+
89+
release-sources:
90+
name: Package Release Sources
91+
permissions:
92+
id-token: write
93+
attestations: write
94+
needs:
95+
- validate-tag
96+
uses: ./.github/workflows/release-sources.yml
97+
with:
98+
release-version: ${{ needs.validate-tag.outputs.release-version }}

0 commit comments

Comments
 (0)