Skip to content

Commit 1c00708

Browse files
committed
Merge remote-tracking branch 'github/main' into HEAD
2 parents 5c1b0a6 + 0065d06 commit 1c00708

File tree

7,404 files changed

+266660
-102626
lines changed

Some content is hidden

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

7,404 files changed

+266660
-102626
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

.ci/monolithic-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
4545
-D LLVM_ENABLE_ASSERTIONS=ON \
4646
-D LLVM_BUILD_EXAMPLES=ON \
4747
-D COMPILER_RT_BUILD_LIBFUZZER=OFF \
48-
-D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml" \
48+
-D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --timeout=1200 --time-tests" \
4949
-D LLVM_ENABLE_LLD=ON \
5050
-D CMAKE_CXX_FLAGS=-gmlt \
5151
-D BOLT_CLANG_EXE=/usr/bin/clang \

.ci/monolithic-windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
4545
-D LLVM_ENABLE_ASSERTIONS=ON \
4646
-D LLVM_BUILD_EXAMPLES=ON \
4747
-D COMPILER_RT_BUILD_LIBFUZZER=OFF \
48-
-D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml" \
48+
-D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --timeout=1200 --time-tests" \
4949
-D COMPILER_RT_BUILD_ORC=OFF \
5050
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
5151
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \

.github/CODEOWNERS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
/mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp @MaheshRavishankar @nicolasvasilache
6969

7070
# Vector Dialect in MLIR.
71-
/mlir/**/*AMX* @dcaballe
71+
/mlir/**/*AMX* @aartbik @dcaballe
7272
/mlir/**/*Neon* @banach-space @dcaballe @nicolasvasilache
7373
/mlir/**/*SME* @banach-space @dcaballe @nicolasvasilache
7474
/mlir/**/*SVE* @banach-space @dcaballe @nicolasvasilache
7575
/mlir/**/*VectorInterfaces* @dcaballe @nicolasvasilache
7676
/mlir/**/*VectorToSCF* @banach-space @dcaballe @nicolasvasilache @matthias-springer
7777
/mlir/**/*VectorToLLVM* @banach-space @dcaballe @nicolasvasilache
78-
/mlir/**/*X86Vector* @dcaballe @nicolasvasilache
78+
/mlir/**/*X86Vector* @aartbik @dcaballe @nicolasvasilache
7979
/mlir/include/mlir/Dialect/Vector @dcaballe @nicolasvasilache
8080
/mlir/lib/Dialect/Vector @dcaballe @nicolasvasilache
8181
/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp @MaheshRavishankar @nicolasvasilache
@@ -98,3 +98,6 @@
9898
/mlir/**/SPIRVTo*/ @antiagainst @kuhar
9999
/mlir/**/*ToSPIRV/ @antiagainst @kuhar
100100
/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp @antiagainst @kuhar
101+
102+
# MLIR Sparsifier.
103+
/mlir/**/*SparseTensor*/ @aartbik @PeimingLiu @yinying-lisa-li @matthias-springer

.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/new-prs-labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ clang-tidy:
308308
- clang-tools-extra/docs/clang-tidy/**
309309
- clang-tools-extra/test/clang-tidy/**
310310

311+
clang-tools-extra:
312+
- clang-tools-extra/**
313+
311314
tools:llvm-mca:
312315
- llvm/tools/llvm-mca/**
313316
- llvm/include/llvm/MCA/**
@@ -591,13 +594,16 @@ mlgo:
591594
- llvm/include/llvm/Analysis/*Runner.h
592595
- llvm/unittests/Analysis/ML*
593596
- llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
597+
- llvm/lib/Analysis/TrainingLogger.cpp
594598
- llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
599+
- llvm/include/llvm/Analysis/Utils/TrainingLogger.h
595600
- llvm/test/Analysis/FunctionPropertiesAnalysis/*
596601
- llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp
597602
- llvm/test/Transforms/inline/ML/**
598603
- llvm/lib/CodeGen/ML*
599604
- llvm/unittests/CodeGen/ML*
600605
- llvm/test/CodeGen/MLRegAlloc/**
606+
- llvm/utils/mlgo-utils/*
601607

602608
tools:llvm-exegesis:
603609
- llvm/tools/llvm-exegesis/**

.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-release-workflow.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
backport-commits:
3434
name: Backport Commits
3535
runs-on: ubuntu-latest
36+
permissions:
37+
issues: write
3638
if: >-
3739
(github.repository == 'llvm/llvm-project') &&
3840
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
@@ -58,15 +60,18 @@ jobs:
5860
printf "%s" "$COMMENT_BODY" |
5961
./llvm/utils/git/github-automation.py \
6062
--repo "$GITHUB_REPOSITORY" \
61-
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
63+
--token ${{ github.token }} \
6264
release-workflow \
65+
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
6366
--issue-number ${{ github.event.issue.number }} \
64-
--phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
6567
auto
6668
6769
create-pull-request:
6870
name: Create Pull Request
6971
runs-on: ubuntu-latest
72+
permissions:
73+
issues: write
74+
pull-requests: write
7075
if: >-
7176
(github.repository == 'llvm/llvm-project') &&
7277
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
@@ -87,8 +92,8 @@ jobs:
8792
printf "%s" "$COMMENT_BODY" |
8893
./llvm/utils/git/github-automation.py \
8994
--repo "$GITHUB_REPOSITORY" \
90-
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
95+
--token ${{ github.token }} \
9196
release-workflow \
97+
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
9298
--issue-number ${{ github.event.issue.number }} \
93-
--phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
9499
auto

.github/workflows/issue-subscriber.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,24 @@ 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
20-
chmod a+x github-automation.py
2125
pip install -r requirements.txt
2226
2327
- name: Update watchers
28+
working-directory: ./llvm/utils/git/
2429
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
2530
env:
2631
LABEL_NAME: ${{ github.event.label.name }}
2732
run: |
28-
./github-automation.py \
33+
python3 ./github-automation.py \
2934
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
3035
issue-subscriber \
3136
--issue-number '${{ github.event.issue.number }}' \

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ permissions:
66
on:
77
workflow_dispatch:
88
push:
9+
branches:
10+
- 'main'
911
paths:
1012
- 'clang/bindings/python/**'
1113
- 'clang/tools/libclang/**'
@@ -30,10 +32,16 @@ jobs:
3032
check-clang-python:
3133
# Build libclang and then run the libclang Python binding's unit tests.
3234
name: Build and run Python unit tests
35+
if: github.repository == 'llvm/llvm-project'
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
python-version: ["3.7", "3.11"]
3340
uses: ./.github/workflows/llvm-project-tests.yml
3441
with:
3542
build_target: check-clang-python
3643
projects: clang
3744
# There is an issue running on "windows-2019".
3845
# See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
3946
os_list: '["ubuntu-latest"]'
47+
python_version: ${{ matrix.python-version }}

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ on:
2323
- 'cmake/**'
2424
- '.github/workflows/libcxx-build-and-test.yaml'
2525
schedule:
26-
# Run nightly at 8 AM UTC (or roughly 3 AM eastern)
27-
- cron: '0 3 * * *'
26+
# Run nightly at 08:00 UTC (aka 00:00 Pacific, aka 03:00 Eastern)
27+
- cron: '0 8 * * *'
2828

2929
permissions:
3030
contents: read # Default everything to read-only
@@ -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: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,21 @@ 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
41-
chmod a+x github-automation.py
4246
pip install -r requirements.txt
4347
4448
- name: Greet Author
49+
working-directory: ./llvm/utils/git/
4550
run: |
46-
./github-automation.py \
51+
python3 ./github-automation.py \
4752
--token '${{ secrets.GITHUB_TOKEN }}' \
4853
pr-greeter \
4954
--issue-number "${{ github.event.pull_request.number }}"

.github/workflows/pr-subscriber.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,21 @@ 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
20-
chmod a+x github-automation.py
2125
pip install -r requirements.txt
2226
2327
- name: Update watchers
28+
working-directory: ./llvm/utils/git/
2429
run: |
25-
./github-automation.py \
30+
python3 ./github-automation.py \
2631
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
2732
pr-subscriber \
2833
--issue-number "${{ github.event.number }}" \

0 commit comments

Comments
 (0)