Skip to content

Commit 09e0dcb

Browse files
committed
Rebase on main
Created using spr 1.3.6-beta.1
2 parents 082b20e + f8d9f8e commit 09e0dcb

File tree

3,813 files changed

+57308
-30067
lines changed

Some content is hidden

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

3,813 files changed

+57308
-30067
lines changed

.ci/monolithic-linux.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ function at-exit {
3434

3535
# If building fails there will be no results files.
3636
shopt -s nullglob
37-
python3 "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":linux: Linux x64 Test Results" \
38-
"linux-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
37+
if command -v buildkite-agent 2>&1 >/dev/null
38+
then
39+
python3 "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":linux: Linux x64 Test Results" \
40+
"linux-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
41+
fi
3942
}
4043
trap at-exit EXIT
4144

.ci/monolithic-windows.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ function at-exit {
3333

3434
# If building fails there will be no results files.
3535
shopt -s nullglob
36-
python "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":windows: Windows x64 Test Results" \
37-
"windows-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
36+
if command -v buildkite-agent 2>&1 >/dev/null
37+
then
38+
python "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":windows: Windows x64 Test Results" \
39+
"windows-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
40+
fi
3841
}
3942
trap at-exit EXIT
4043

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ b6262880b34629e9d7a72b5a42f315a3c9ed8139
9494
39c7dc7207e76e72da21cf4fedda21b5311bf62d
9595
e80bc777749331e9519575f416c342f7626dd14d
9696
7e5cd8f1b6c5263ed5e2cc03d60c8779a8d3e9f7
97+
98+
# NFC: clang-format test_demangle.pass.cpp but keep test "lines"
99+
d33bf2e9df578ff7e44fd22504d6ad5a122b7ee6

.github/new-prs-labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,12 @@ backend:RISC-V:
747747
- llvm/**/*riscv*
748748
- llvm/**/*RISCV*
749749

750+
backend:Xtensa:
751+
- clang/**/*xtensa*
752+
- clang/**/*Xtensa*
753+
- llvm/**/*xtensa*
754+
- llvm/**/*Xtensa*
755+
750756
lld:coff:
751757
- lld/**/COFF/**
752758
- lld/Common/**

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
name: container
6969
- name: Push Container
7070
run: |
71-
docker load -i ${{ needs.build-ci-container.outptus.container-filename }}
72-
docker tag ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}:latest
71+
docker load -i ${{ needs.build-ci-container-windows.outputs.container-filename }}
72+
docker tag ${{ needs.build-ci-container-windows.outputs.container-name-tag }} ${{ needs.build-ci-container-windows.outputs.container-name }}:latest
7373
docker login -u ${{ github.actor }} -p $env:GITHUB_TOKEN ghcr.io
74-
docker push ${{ needs.build-ci-container.outputs.container-name-tag }}
75-
docker push ${{ needs.build-ci-container.outputs.container-name }}:latest
74+
docker push ${{ needs.build-ci-container-windows.outputs.container-name-tag }}
75+
docker push ${{ needs.build-ci-container-windows.outputs.container-name }}:latest

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Test Container
6161
run: |
6262
for image in ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}; do
63-
podman run --rm -it $image /usr/bin/bash -x -c 'printf '\''#include <iostream>\nint main(int argc, char **argv) { std::cout << "Hello\\n"; }'\'' | clang++ -x c++ - && ./a.out | grep Hello'
63+
podman run --rm -it $image /usr/bin/bash -x -c 'cd $HOME && printf '\''#include <iostream>\nint main(int argc, char **argv) { std::cout << "Hello\\n"; }'\'' | clang++ -x c++ - && ./a.out | grep Hello'
6464
done
6565
6666
push-ci-container:
@@ -80,8 +80,8 @@ jobs:
8080

8181
- name: Push Container
8282
run: |
83-
podman load -i ${{ needs.build-ci-container.outptus.container-filename }}
84-
podman tag ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}:latest
83+
podman load -i ${{ needs.build-ci-container.outputs.container-filename }}
84+
podman tag ${{ needs.build-ci-container.outputs.container-name-tag }} ${{ needs.build-ci-container.outputs.container-name }}:latest
8585
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
8686
podman push ${{ needs.build-ci-container.outputs.container-name-tag }}
8787
podman push ${{ needs.build-ci-container.outputs.container-name }}:latest

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C .
4141
FROM base
4242

4343
COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
44-
44+
4545
# Need to install curl for hendrikmuhs/ccache-action
4646
# Need nodejs for some of the GitHub actions.
4747
# Need perl-modules for clang analyzer tests.
4848
# Need git for SPIRV-Tools tests.
4949
RUN apt-get update && \
50-
apt-get install -y \
50+
DEBIAN_FRONTEND=noninteractive apt-get install -y \
5151
binutils \
5252
cmake \
5353
curl \
@@ -56,7 +56,22 @@ RUN apt-get update && \
5656
ninja-build \
5757
nodejs \
5858
perl-modules \
59-
python3-psutil
59+
python3-psutil \
60+
61+
# These are needed by the premerge pipeline. Pip is used to install
62+
# dependent python packages and ccache is used for build caching. File and
63+
# tzdata are used for tests.
64+
python3-pip \
65+
ccache \
66+
file \
67+
tzdata
6068

6169
ENV LLVM_SYSROOT=$LLVM_SYSROOT
6270
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
71+
72+
# Create a new user to avoid test failures related to a lack of expected
73+
# permissions issues in some tests. Set the user id to 1001 as that is the
74+
# user id that Github Actions uses to perform the checkout action.
75+
RUN useradd gha -u 1001 -m -s /bin/bash
76+
USER gha
77+

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ jobs:
106106
with:
107107
python-version: '3.11'
108108
cache: 'pip'
109-
cache-dependency-path: 'llvm/docs/requirements.txt'
109+
cache-dependency-path: 'llvm/docs/requirements-hashed.txt'
110110
- name: Install python dependencies
111-
run: pip install -r llvm/docs/requirements.txt
111+
run: pip install -r llvm/docs/requirements-hashed.txt
112112
- name: Install system dependencies
113113
run: |
114114
sudo apt-get update

.github/workflows/premerge.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: LLVM Premerge Checks
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
paths:
9+
- .github/workflows/premerge.yaml
10+
push:
11+
branches:
12+
- 'main'
13+
14+
jobs:
15+
premerge-checks-linux:
16+
if: github.repository_owner == 'llvm'
17+
runs-on: llvm-premerge-linux-runners
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
20+
cancel-in-progress: true
21+
container:
22+
image: ghcr.io/llvm/ci-ubuntu-22.04:latest
23+
defaults:
24+
run:
25+
shell: bash
26+
steps:
27+
- name: Checkout LLVM
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 2
31+
- name: Setup ccache
32+
uses: hendrikmuhs/[email protected]
33+
- name: Build and Test
34+
run: |
35+
git config --global --add safe.directory '*'
36+
37+
modified_files=$(git diff --name-only HEAD~1...HEAD)
38+
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
39+
40+
echo $modified_files
41+
echo $modified_dirs
42+
43+
. ./.ci/compute-projects.sh
44+
45+
all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl"
46+
modified_projects="$(keep-modified-projects ${all_projects})"
47+
48+
linux_projects_to_test=$(exclude-linux $(compute-projects-to-test 0 ${modified_projects}))
49+
linux_check_targets=$(check-targets ${linux_projects_to_test} | sort | uniq)
50+
linux_projects=$(add-dependencies ${linux_projects_to_test} | sort | uniq)
51+
52+
linux_runtimes_to_test=$(compute-runtimes-to-test ${linux_projects_to_test})
53+
linux_runtime_check_targets=$(check-targets ${linux_runtimes_to_test} | sort | uniq)
54+
linux_runtimes=$(echo ${linux_runtimes_to_test} | sort | uniq)
55+
56+
if [[ "${linux_projects}" == "" ]]; then
57+
echo "No projects to build"
58+
exit 0
59+
fi
60+
61+
echo "Building projects: ${linux_projects}"
62+
echo "Running project checks targets: ${linux_check_targets}"
63+
echo "Building runtimes: ${linux_runtimes}"
64+
echo "Running runtimes checks targets: ${linux_runtime_check_targets}"
65+
66+
export CC=/opt/llvm/bin/clang
67+
export CXX=/opt/llvm/bin/clang++
68+
69+
./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})"

bolt/docs/CommandLineArgumentReference.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,12 @@
498498
Automatically put hot code on 2MB page(s) (hugify) at runtime. No manual call
499499
to hugify is needed in the binary (which is what --hot-text relies on).
500500

501-
- `--icf`
501+
- `--icf=<value>`
502502

503503
Fold functions with identical code
504+
- `all`: Enable identical code folding
505+
- `none`: Disable identical code folding (default)
506+
- `safe`: Enable safe identical code folding
504507

505508
- `--icp`
506509

0 commit comments

Comments
 (0)