Skip to content

Commit

Permalink
Merge branch 'sycl' into iault/unsampled_image_arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacault committed Feb 6, 2024
2 parents 6b2ca14 + bd86f04 commit e782d6b
Show file tree
Hide file tree
Showing 5,586 changed files with 681,727 additions and 317,474 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
42 changes: 8 additions & 34 deletions .ci/generate-buildkite-pipeline-premerge
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#
# This file generates a Buildkite pipeline that triggers the various CI jobs for
# the LLVM project during pre-commit CI (each time a Phabricator diff is uploaded).
# the LLVM project during pre-commit CI.
#
# See https://buildkite.com/docs/agent/v3/cli-pipeline#pipeline-format.
#
Expand All @@ -22,19 +22,18 @@ set -o pipefail

# Environment variables script works with:

# Fetch origin/main to have an up to date merge base for main...HEAD diff.
git fetch origin main:main
# Set by buildkite
: ${BUILDKITE_PULL_REQUEST_BASE_BRANCH:=}
: ${BUILDKITE_COMMIT:=}
: ${BUILDKITE_BRANCH:=}
# Fetch origin to have an up to date merge base for the diff.
git fetch origin
# List of files affected by this commit
: ${MODIFIED_FILES:=$(git diff --name-only main...HEAD)}
: ${MODIFIED_FILES:=$(git diff --name-only origin/${BUILDKITE_PULL_REQUEST_BASE_BRANCH}...HEAD)}
# Filter rules for generic windows tests
: ${WINDOWS_AGENTS:='{"queue": "windows"}'}
# Filter rules for generic linux tests
: ${LINUX_AGENTS:='{"queue": "linux"}'}
# Service agents, for interacting with Phabricator.
: ${SERVICE_AGENTS:='{"queue": "service"}'}
# Set by buildkite
: ${BUILDKITE_COMMIT:=}
: ${BUILDKITE_BRANCH:=}

reviewID="$(git log --format=%B -n 1 | sed -nE 's/^Review-ID:[[:space:]]*(.+)$/\1/p')"
if [[ "${reviewID}" != "" ]]; then
Expand Down Expand Up @@ -284,28 +283,3 @@ if [[ "${windows_projects}" != "" ]]; then
- 'bash .ci/monolithic-windows.sh "$(echo ${windows_projects} | tr ' ' ';')" "$(echo ${windows_check_targets})"'
EOF
fi

# If build was triggered from a Phabricator review - send an update back.
if [[ -n "${ph_target_phid:-}" ]]; then
cat << EOF
- continue_on_failure: true
wait: '~'
- label: ':phabricator: update build status on Phabricator'
agents: ${SERVICE_AGENTS}
artifact_paths:
- 'artifacts/**/*'
commands:
- export SRC=\$\${BUILDKITE_BUILD_PATH}/llvm-premerge-checks
- rm -rf \$\${SRC}
- git clone --depth 1 https://github.com/google/llvm-premerge-checks.git "\$\${SRC}"
- cd \$\${SRC}
- git fetch origin "main":x
- git checkout x
- echo "llvm-premerge-checks commit"
- git rev-parse HEAD
- pip install -q -r \$\${SRC}/scripts/requirements.txt
- cd "\$\$BUILDKITE_BUILD_CHECKOUT_PATH"
- \$\${SRC}/scripts/summary.py
timeout_in_minutes: 10
EOF
fi
81 changes: 0 additions & 81 deletions .ci/generate-buildkite-pipeline-scheduled

This file was deleted.

5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ f6d557ee34b6bbdb1dc32f29e34b4a4a8ad35e81

# [libc++] Format the code base (#74334)
9783f28cbb155e4a8d49c12e1c60ce14dcfaf0c7

# [RFC] compiler-rt builtins cleanup and refactoring
082b89b25faae3e45a023caf51b65ca0f02f377f
0ba22f51d128bee9d69756c56c4678097270e10b
84da0e1bb75f8666cf222d2f600f37bebb9ea389
56 changes: 56 additions & 0 deletions .github/new-prs-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,49 @@ mc:
clang:driver:
- clang/*/Driver/**

compiler-rt:asan:
- compiler-rt/lib/asan/**
- compiler-rt/include/sanitizer/asan_interface.h
- compiler-rt/test/asan/**
- compiler-rt/lib/asan_abi/**
- compiler-rt/test/asan_abi/**

compiler-rt:builtins:
- compiler-rt/lib/builtins/**
- compiler-rt/test/builtins/**

compiler-rt:cfi:
- compiler-rt/lib/cfi/**
- compiler-rt/test/cfi/**

compiler-rt:fuzzer:
- compiler-rt/lib/fuzzer/**
- compiler-rt/include/fuzzer/**
- compiler-rt/test/fuzzer/**

compiler-rt:hwasan:
- compiler-rt/lib/hwasan/**
- compiler-rt/include/sanitizer/hwasan_interface.h
- compiler-rt/test/hwasan/**

compiler-rt:lsan:
- compiler-rt/lib/lsan/**
- compiler-rt/include/sanitizer/lsan_interface.h
- compiler-rt/test/lsan/**

compiler-rt:msan:
- compiler-rt/lib/msan/**
- compiler-rt/include/sanitizer/msan_interface.h
- compiler-rt/test/msan/**

compiler-rt:sanitizer:
- llvm/lib/Transforms/Instrumentation/*Sanitizer*
- compiler-rt/lib/interception/**
- compiler-rt/lib/*san*/**
- compiler-rt/include/sanitizer/**
- compiler-rt/test/*san*/**
- compiler-rt/lib/fuzzer/**
- compiler-rt/include/fuzzer/**
- compiler-rt/test/fuzzer/**
- compiler-rt/lib/scudo/**
- compiler-rt/test/scudo/**
Expand All @@ -89,6 +126,19 @@ compiler-rt:scudo:
- compiler-rt/lib/scudo/**
- compiler-rt/test/scudo/**

compiler-rt:tsan:
- compiler-rt/lib/tsan/**
- compiler-rt/include/sanitizer/tsan_interface.h
- compiler-rt/include/sanitizer/tsan_interface_atomic.h
- compiler-rt/test/tsan/**

compiler-rt:ubsan:
- compiler-rt/lib/ubsan/**
- compiler-rt/include/sanitizer/ubsan_interface.h
- compiler-rt/test/ubsan/**
- compiler-rt/lib/ubsan_minimal/**
- compiler-rt/test/ubsan_minimal/**

xray:
- llvm/tools/llvm-xray/**
- compiler-rt/*/xray/**
Expand Down Expand Up @@ -308,6 +358,9 @@ clang-tidy:
- clang-tools-extra/docs/clang-tidy/**
- clang-tools-extra/test/clang-tidy/**

clang-tools-extra:
- clang-tools-extra/**

tools:llvm-mca:
- llvm/tools/llvm-mca/**
- llvm/include/llvm/MCA/**
Expand Down Expand Up @@ -591,13 +644,16 @@ mlgo:
- llvm/include/llvm/Analysis/*Runner.h
- llvm/unittests/Analysis/ML*
- llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
- llvm/lib/Analysis/TrainingLogger.cpp
- llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
- llvm/include/llvm/Analysis/Utils/TrainingLogger.h
- llvm/test/Analysis/FunctionPropertiesAnalysis/*
- llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp
- llvm/test/Transforms/inline/ML/**
- llvm/lib/CodeGen/ML*
- llvm/unittests/CodeGen/ML*
- llvm/test/CodeGen/MLRegAlloc/**
- llvm/utils/mlgo-utils/*

tools:llvm-exegesis:
- llvm/tools/llvm-exegesis/**
Expand Down
38 changes: 22 additions & 16 deletions .github/workflows/containers/github-action-ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,35 @@ FROM docker.io/library/ubuntu:22.04 as base
ENV LLVM_SYSROOT=/opt/llvm/

FROM base as toolchain
ENV LLVM_MAJOR=17
ENV LLVM_VERSION=${LLVM_MAJOR}.0.6
ENV LLVM_DIRNAME=clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-22.04
ENV LLVM_FILENAME=${LLVM_DIRNAME}.tar.xz
ENV LLVM_VERSION=17.0.6

RUN apt-get update && \
apt-get install -y \
curl \
xz-utils
wget \
gcc \
g++ \
cmake \
ninja-build \
python3

RUN wget https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-$LLVM_VERSION.tar.gz && tar -xf llvmorg-$LLVM_VERSION.tar.gz

RUN mkdir -p $LLVM_SYSROOT/bin/ $LLVM_SYSROOT/lib/
WORKDIR /llvm-project-llvmorg-$LLVM_VERSION

RUN curl -O -L https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/$LLVM_FILENAME
RUN mkdir build

RUN tar -C $LLVM_SYSROOT --strip-components=1 -xJf $LLVM_FILENAME \
$LLVM_DIRNAME/bin/clang \
$LLVM_DIRNAME/bin/clang++ \
$LLVM_DIRNAME/bin/clang-cl \
$LLVM_DIRNAME/bin/clang-$LLVM_MAJOR \
$LLVM_DIRNAME/bin/lld \
$LLVM_DIRNAME/bin/ld.lld \
$LLVM_DIRNAME/lib/clang/
RUN cmake -B ./build -G Ninja ./llvm \
-C ./clang/cmake/caches/BOLT-PGO.cmake \
-DBOOTSTRAP_LLVM_ENABLE_LLD=ON \
-DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON \
-DPGO_INSTRUMENT_LTO=Thin \
-DLLVM_ENABLE_RUNTIMES="compiler-rt" \
-DCMAKE_INSTALL_PREFIX="$LLVM_SYSROOT" \
-DLLVM_ENABLE_PROJECTS="bolt;clang;lld;clang-tools-extra" \
-DLLVM_DISTRIBUTION_COMPONENTS="lld;compiler-rt;clang-format" \
-DCLANG_DEFAULT_LINKER="lld"

RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution && rm -rf ./build

FROM base

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
fetch-depth: 1
- name: Get subprojects that have doc changes
id: docs-changed-subprojects
uses: tj-actions/changed-files@v41
uses: tj-actions/changed-files@v42
with:
files_yaml: |
llvm:
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
with:
fetch-depth: 1
- name: Setup Python env
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
Expand Down
36 changes: 5 additions & 31 deletions .github/workflows/issue-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
backport-commits:
name: Backport Commits
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
Expand All @@ -58,37 +61,8 @@ jobs:
printf "%s" "$COMMENT_BODY" |
./llvm/utils/git/github-automation.py \
--repo "$GITHUB_REPOSITORY" \
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
--token "${{ secrets.RELEASE_WORKFLOW_PR_CREATE }}" \
release-workflow \
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
--issue-number ${{ github.event.issue.number }} \
--phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
auto
create-pull-request:
name: Create Pull Request
runs-on: ubuntu-latest
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
contains(github.event.comment.body, '/branch ')
steps:
- name: Fetch LLVM sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Environment
run: |
pip install -r ./llvm/utils/git/requirements.txt
- name: Create Pull Request
run: |
printf "%s" "$COMMENT_BODY" |
./llvm/utils/git/github-automation.py \
--repo "$GITHUB_REPOSITORY" \
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
release-workflow \
--issue-number ${{ github.event.issue.number }} \
--phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
auto
3 changes: 1 addition & 2 deletions .github/workflows/issue-subscriber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- name: Setup Automation Script
working-directory: ./llvm/utils/git/
run: |
chmod a+x github-automation.py
pip install -r requirements.txt
- name: Update watchers
Expand All @@ -31,7 +30,7 @@ jobs:
env:
LABEL_NAME: ${{ github.event.label.name }}
run: |
./github-automation.py \
python3 ./github-automation.py \
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
issue-subscriber \
--issue-number '${{ github.event.issue.number }}' \
Expand Down
Loading

0 comments on commit e782d6b

Please sign in to comment.