Skip to content

Commit 71b1f36

Browse files
authored
Merge branch 'main' into kbelochapka/main/refactor-the-DTLTO-code
2 parents 2541167 + a47bddc commit 71b1f36

5,647 files changed

Lines changed: 281606 additions & 134560 deletions

File tree

Some content is hidden

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

.ci/green-dragon/lldb-windows.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ pipeline {
5151
writeFile file: 'build.bat', text: '''@echo off
5252
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat" || exit /b 1
5353
54+
"C:\\Program Files\\Python313\\python.exe" -m pip install packaging || exit /b 1
55+
5456
cmake -G Ninja ^
5557
-S llvm ^
5658
-B ..\\llvm-build\\ ^
5759
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
5860
-DCMAKE_INSTALL_PREFIX=..\\llvm-install\\base ^
5961
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ^
60-
-DLLVM_ENABLE_PROJECTS="clang;lldb" ^
62+
-DLLVM_ENABLE_PROJECTS="clang;lld;lldb" ^
6163
-DLLVM_ENABLE_ASSERTIONS=ON ^
6264
-DLLVM_ENABLE_LIBEDIT=OFF ^
6365
-DLLVM_OPTIMIZED_TABLEGEN=ON ^

.clang-format-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Do not attempt to format .td files; we have too many formatting needs across
2+
# the various files to allow automatic formatting.
3+
**/*.td

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# This is independent of LLVM's own "maintainer" concept.
1111
# See https://llvm.org/docs/DeveloperPolicy.html#maintainers as well as the
12-
# Maintainers.* files in the the respective subproject directories.
12+
# Maintainers.md files in the the respective subproject directories.
1313

1414
/libc/ @llvm/reviewers-libc
1515
/libcxx/ @llvm/reviewers-libcxx

.github/actions/push-container/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
podman push --compression-format=zstd $latest_name
3030
}
3131
32-
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
32+
podman login -u $GITHUB_ACTOR -p $GITHUB_TOKEN ghcr.io
3333
for f in $(find . -iname '*.tar'); do
3434
image_name=$(podman load -q -i $f | sed 's/Loaded image: //g')
3535
push_container $image_name

.github/new-issues-labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
'clang-tidy':
88
- '/\bclang-tidy/i'
99

10+
'clang:temporal-safety':
11+
- '/LifetimeSafety/i'
12+
1013
'libc++':
1114
- '/libc[+x]{2}(?!\-)/i'
1215

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ jobs:
3939
echo "container-filename=ci-windows-${tag}.tar" >> $env:GITHUB_OUTPUT
4040
- name: Build Container
4141
working-directory: .github/workflows/containers/github-action-ci-windows
42+
env:
43+
CONTAINER_NAME_TAG: ${{ steps.vars.outputs.container-name-tag }}
4244
run: |
43-
docker build -t ${{ steps.vars.outputs.container-name-tag }} .
45+
docker build -t $env:CONTAINER_NAME_TAG .
4446
- name: Save container image
47+
env:
48+
CONTAINER_NAME_TAG: ${{ steps.vars.outputs.container-name-tag }}
49+
CONTAINER_FILENAME: ${{ steps.vars.outputs.container-filename }}
4550
run: |
46-
docker save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
51+
docker save $env:CONTAINER_NAME_TAG > $env:CONTAINER_FILENAME
4752
- name: Upload container image
4853
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4954
with:
@@ -66,13 +71,17 @@ jobs:
6671
with:
6772
name: container
6873
- name: Push Container
74+
env:
75+
CONTAINER_FILENAME: ${{ needs.build-ci-container-windows.outputs.container-filename }}
76+
CONTAINER_NAME_TAG: ${{ needs.build-ci-container-windows.outputs.container-name-tag }}
77+
CONTAINER_NAME: ${{ needs.build-ci-container-windows.outputs.container-name }}
6978
run: |
7079
sudo apt-get update
7180
sudo apt-get install -y skopeo
72-
skopeo login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
73-
skopeo copy docker-archive:${{ needs.build-ci-container-windows.outputs.container-filename }} \
81+
skopeo login -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
82+
skopeo copy docker-archive:$CONTAINER_FILENAME \
7483
--dest-compress-format zstd \
75-
docker://${{ needs.build-ci-container-windows.outputs.container-name-tag }}
76-
skopeo copy docker-archive:${{ needs.build-ci-container-windows.outputs.container-filename }} \
84+
docker://$CONTAINER_NAME_TAG
85+
skopeo copy docker-archive:$CONTAINER_FILENAME \
7786
--dest-compress-format zstd \
78-
docker://${{ needs.build-ci-container-windows.outputs.container-name }}:latest
87+
docker://$CONTAINER_NAME:latest

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
github.event.action != 'closed'
3737
runs-on: ubuntu-24.04
3838
container:
39-
image: 'ghcr.io/llvm/ci-ubuntu-24.04:latest'
39+
image: 'ghcr.io/llvm/ci-ubuntu-24.04:latest@sha256:571cfd8a5ec38a9f241b421c56aa821139c0fd9dcbde5f6161210884befb5ec4'
4040
env:
4141
LLVM_VERSION: 18
4242
steps:

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ jobs:
100100
with:
101101
python-version: '3.14'
102102
cache: 'pip'
103-
cache-dependency-path: 'llvm/docs/requirements-hashed.txt'
103+
cache-dependency-path: 'llvm/docs/requirements.txt'
104104
- name: Install python dependencies
105-
run: pip install -r llvm/docs/requirements-hashed.txt
105+
run: pip install --require-hashes -r llvm/docs/requirements.txt
106106
- name: Install system dependencies
107107
run: |
108108
sudo apt-get update

.github/workflows/hlsl-test-all.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
- name: Publish Test Results
8282
uses: EnricoMi/publish-unit-test-result-action/macos@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2.23.0
8383
if: always() && runner.os == 'macOS'
84+
continue-on-error: true
8485
with:
8586
comment_mode: off
8687
files: llvm-project/build/**/testresults.xunit.xml

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

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,42 @@ on:
2626
types:
2727
- opened
2828

29-
env:
30-
COMMENT_BODY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }}
3129

3230
jobs:
31+
backport-commits-validate-input:
32+
runs-on: ubuntu-24.04
33+
if: >-
34+
(github.repository == 'llvm/llvm-project') &&
35+
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
36+
contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
37+
outputs:
38+
comment-body: ${{ steps.validate.outputs.comment-body }}
39+
steps:
40+
- name: Validate Input Comment
41+
id: validate
42+
env:
43+
COMMENT_BODY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }}
44+
run: |
45+
# This will strip out everything from the comment except for the /cherry-pick commands.
46+
# If there are multiple /cherry-pick commands they will all be included in the output.
47+
# This is fine since the github-automation.py script can handle multiple cherry-pick commands.
48+
validated_comment=$(\
49+
grep -o -e '/cherry-pick \(https://github.com/llvm/llvm-project/commit/\)\?[a-f0-9 ]\+' <<< $COMMENT_BODY \
50+
)
51+
echo "Validated Comment is:"
52+
echo ${validated_comment}
53+
54+
echo comment-body=${validated_comment} >> $GITHUB_OUTPUT
55+
3356
backport-commits:
3457
name: Backport Commits
3558
runs-on: ubuntu-24.04
3659
environment: main-branch-only
60+
needs:
61+
- backport-commits-validate-input
3762
permissions:
3863
issues: write
3964
pull-requests: write
40-
if: >-
41-
(github.repository == 'llvm/llvm-project') &&
42-
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
43-
contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
4465
steps:
4566
- name: Fetch LLVM sources
4667
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -58,6 +79,9 @@ jobs:
5879
./llvm/utils/git/github-automation.py --token ${{ github.token }} setup-llvmbot-git
5980
6081
- name: Backport Commits
82+
env:
83+
COMMENT_BODY: ${{ needs.backport-commits-validate-input.outputs.comment-body }}
84+
REQUESTED_BY: ${{ (github.event.action == 'opened' && github.event.issue.user.login) || github.event.comment.user.login }}
6185
run: |
6286
printf "%s" "$COMMENT_BODY" |
6387
./llvm/utils/git/github-automation.py \
@@ -66,5 +90,5 @@ jobs:
6690
release-workflow \
6791
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
6892
--issue-number ${{ github.event.issue.number }} \
69-
--requested-by ${{ (github.event.action == 'opened' && github.event.issue.user.login) || github.event.comment.user.login }} \
93+
--requested-by "$REQUESTED_BY" \
7094
auto

0 commit comments

Comments
 (0)