Skip to content

Commit 5571a6a

Browse files
committed
Merge remote-tracking branch 'upstream/sycl' into georgi/test-hip-usm-copy2d
2 parents ae6681e + 83bbea9 commit 5571a6a

File tree

2,215 files changed

+100150
-60077
lines changed

Some content is hidden

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

2,215 files changed

+100150
-60077
lines changed

.ci/monolithic-linux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o pipefail
1818

1919
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
2020
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
21-
rm -rf ${BUILD_DIR}
21+
rm -rf "${BUILD_DIR}"
2222

2323
ccache --zero-stats
2424

@@ -37,8 +37,8 @@ projects="${1}"
3737
targets="${2}"
3838

3939
echo "--- cmake"
40-
pip install -q -r ${MONOREPO_ROOT}/mlir/python/requirements.txt
41-
cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
40+
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
41+
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
4242
-D LLVM_ENABLE_PROJECTS="${projects}" \
4343
-G Ninja \
4444
-D CMAKE_BUILD_TYPE=Release \

.ci/monolithic-windows.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -o pipefail
1919
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
2020
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2121

22-
rm -rf ${BUILD_DIR}
22+
rm -rf "${BUILD_DIR}"
2323

2424
if [[ -n "${CLEAR_CACHE:-}" ]]; then
2525
echo "clearing sccache"
@@ -37,14 +37,14 @@ projects="${1}"
3737
targets="${2}"
3838

3939
echo "--- cmake"
40-
pip install -q -r ${MONOREPO_ROOT}/mlir/python/requirements.txt
40+
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
4141

4242
# The CMAKE_*_LINKER_FLAGS to disable the manifest come from research
4343
# on fixing a build reliability issue on the build server, please
4444
# see https://github.com/llvm/llvm-project/pull/82393 and
4545
# https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
4646
# for further information.
47-
cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
47+
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
4848
-D LLVM_ENABLE_PROJECTS="${projects}" \
4949
-G Ninja \
5050
-D CMAKE_BUILD_TYPE=Release \

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
fetch-depth: 1
6666
- name: Get subprojects that have doc changes
6767
id: docs-changed-subprojects
68-
uses: tj-actions/changed-files@v42
68+
uses: tj-actions/changed-files@v44
6969
with:
7070
files_yaml: |
7171
llvm:

.github/workflows/email-check.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Check for private emails used in PRs"
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types:
66
- opened
77

@@ -10,8 +10,6 @@ permissions:
1010

1111
jobs:
1212
validate_email:
13-
permissions:
14-
pull-requests: write
1513
runs-on: ubuntu-latest
1614
if: github.repository == 'llvm/llvm-project'
1715
steps:
@@ -25,20 +23,25 @@ jobs:
2523
run: |
2624
git log -1
2725
echo "EMAIL=$(git show -s --format='%ae' HEAD~0)" >> $GITHUB_OUTPUT
26+
# Create empty comment file
27+
echo "[]" > comments
2828
2929
- name: Validate author email
3030
if: ${{ endsWith(steps.author.outputs.EMAIL, 'noreply.github.com') }}
31-
uses: actions/github-script@v6
31+
uses: actions/github-script@v7
3232
env:
33-
EMAIL: ${{ steps.author.outputs.EMAIL }}
33+
COMMENT: >-
34+
⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.<br/>
35+
Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account.<br/>
36+
See [LLVM Discourse](https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it) for more information.
37+
run: |
38+
cat << EOF > comments
39+
[{"body" : "$COMMENT"}]
40+
EOF
41+
42+
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0
43+
if: always()
3444
with:
35-
script: |
36-
const { EMAIL } = process.env
37-
await github.rest.issues.createComment({
38-
issue_number: context.issue.number,
39-
owner: context.repo.owner,
40-
repo: context.repo.repo,
41-
body: `⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.
42-
Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account.
43-
See [LLVM Discourse](https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it) for more information.
44-
`})
45+
name: workflow-args
46+
path: |
47+
comments

.github/workflows/issue-write.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Comment on an issue
22

33
on:
44
workflow_run:
5-
workflows: ["Check code formatting"]
5+
workflows:
6+
- "Check code formatting"
7+
- "Check for private emails used in PRs"
68
types:
79
- completed
810

@@ -25,13 +27,13 @@ jobs:
2527
name: workflow-args
2628

2729
- name: 'Comment on PR'
28-
uses: actions/github-script@v3
30+
uses: actions/github-script@v7
2931
with:
3032
github-token: ${{ secrets.GITHUB_TOKEN }}
3133
script: |
3234
var fs = require('fs');
3335
const comments = JSON.parse(fs.readFileSync('./comments'));
34-
if (!comments) {
36+
if (!comments || comments.length == 0) {
3537
return;
3638
}
3739
@@ -77,6 +79,15 @@ jobs:
7779
}
7880
const gql_result = await github.graphql(gql_query, gql_variables);
7981
console.log(gql_result);
82+
// If the branch for the PR was deleted before this job has a chance
83+
// to run, then the ref will be null. This can happen if someone:
84+
// 1. Rebase the PR, which triggers some workflow.
85+
// 2. Immediately merges the PR and deletes the branch.
86+
// 3. The workflow finishes and triggers this job.
87+
if (!gql_result.repository.ref) {
88+
console.log("Ref has been deleted");
89+
return;
90+
}
8091
console.log(gql_result.repository.ref.associatedPullRequests.nodes);
8192
8293
var pr_number = 0;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Get changed files
2828
id: changed-files
29-
uses: tj-actions/changed-files@v42
29+
uses: tj-actions/changed-files@v44
3030
with:
3131
separator: ","
3232
skip_initial_fetch: true
@@ -36,7 +36,7 @@ jobs:
3636
- name: Fetch code formatting utils
3737
uses: actions/checkout@v4
3838
with:
39-
reository: ${{ github.repository }}
39+
repository: ${{ github.repository }}
4040
ref: ${{ github.base_ref }}
4141
sparse-checkout: |
4242
llvm/utils/git/requirements_formatting.txt

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757

5858
# Upload the results to GitHub's code scanning dashboard.
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
60+
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
6161
with:
6262
sarif_file: results.sarif

.github/workflows/sycl-containers.yaml

Lines changed: 31 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,37 @@ on:
2424
permissions: read-all
2525

2626
jobs:
27-
base_image_ubuntu2204:
27+
build_and_push_images:
2828
if: github.repository == 'intel/llvm'
29-
name: Base Ubuntu 22.04 Docker image
29+
name: Build and Push Docker Images
3030
runs-on: ubuntu-22.04
3131
permissions:
3232
packages: write
33+
strategy:
34+
matrix:
35+
include:
36+
- name: Base Ubuntu 22.04 Docker image
37+
file: ubuntu2204_base
38+
tag: latest
39+
build_args: ""
40+
- name: Build Ubuntu Docker image
41+
file: ubuntu2204_build
42+
tag: latest
43+
build_args: ""
44+
- name: Intel Drivers Ubuntu 22.04 Docker image
45+
file: ubuntu2204_intel_drivers
46+
tag: latest
47+
build_args: "use_latest=false"
48+
- name: Intel Drivers Ubuntu 22.04 Docker image with dev IGC
49+
file: ubuntu2204_intel_drivers
50+
tag: devigc
51+
build_args: |
52+
"use_latest=false"
53+
"use_igc_dev=true"
54+
- name: Intel Drivers (unstable) Ubuntu 22.04 Docker image
55+
file: ubuntu2204_intel_drivers
56+
tag: unstable
57+
build_args: "use_latest=true"
3358
steps:
3459
- name: Checkout
3560
uses: actions/checkout@v4
@@ -39,105 +64,11 @@ jobs:
3964
uses: ./devops/actions/build_container
4065
with:
4166
push: ${{ github.event_name != 'pull_request' }}
42-
file: ubuntu2204_base
67+
file: ${{ matrix.file }}
4368
username: ${{ github.repository_owner }}
4469
password: ${{ secrets.GITHUB_TOKEN }}
4570
tags: |
46-
ghcr.io/${{ github.repository }}/ubuntu2204_base:${{ github.sha }}
47-
ghcr.io/${{ github.repository }}/ubuntu2204_base:latest
48-
build_image_ubuntu2204:
49-
if: github.repository == 'intel/llvm'
50-
name: Build Ubuntu Docker image
51-
runs-on: ubuntu-22.04
52-
permissions:
53-
packages: write
54-
steps:
55-
- name: Checkout
56-
uses: actions/checkout@v4
57-
with:
58-
fetch-depth: 2
59-
- name: Build and Push Container
60-
uses: ./devops/actions/build_container
61-
with:
62-
push: ${{ github.event_name != 'pull_request' }}
63-
file: ubuntu2204_build
64-
username: ${{ github.repository_owner }}
65-
password: ${{ secrets.GITHUB_TOKEN }}
66-
tags: |
67-
ghcr.io/${{ github.repository }}/ubuntu2204_build:${{ github.sha }}
68-
ghcr.io/${{ github.repository }}/ubuntu2204_build:latest
71+
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}-${{ github.sha }}
72+
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}
73+
build-args: ${{ matrix.build_args }}
6974

70-
# This job produces a Docker container with the latest versions of Intel
71-
# drivers, that can be found on GitHub.
72-
drivers_image_ubuntu2204:
73-
if: github.repository == 'intel/llvm'
74-
name: Intel Drivers Ubuntu 22.04 Docker image
75-
runs-on: ubuntu-22.04
76-
permissions:
77-
packages: write
78-
needs: base_image_ubuntu2204
79-
steps:
80-
- name: Checkout
81-
uses: actions/checkout@v4
82-
with:
83-
fetch-depth: 2
84-
- name: Get dependencies configuration
85-
id: deps
86-
run: |
87-
DEPS=`cat devops/dependencies.json`
88-
DEPS="${DEPS//$'\r'/''}"
89-
DEPS="${DEPS//$'\n'/' '}"
90-
echo $DEPS
91-
echo "deps=$DEPS" >>$GITHUB_OUTPUT
92-
- name: Build and Push Container
93-
uses: ./devops/actions/build_container
94-
with:
95-
push: ${{ github.event_name != 'pull_request' }}
96-
file: ubuntu2204_intel_drivers
97-
username: ${{ github.repository_owner }}
98-
password: ${{ secrets.GITHUB_TOKEN }}
99-
tags: |
100-
ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:latest-${{ github.sha }}
101-
ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:latest
102-
build-args: |
103-
compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux.compute_runtime.github_tag}}
104-
igc_tag=${{fromJson(steps.deps.outputs.deps).linux.igc.github_tag}}
105-
cm_tag=${{fromJson(steps.deps.outputs.deps).linux.cm.github_tag}}
106-
level_zero_tag=${{fromJson(steps.deps.outputs.deps).linux.level_zero.github_tag}}
107-
tbb_tag=${{fromJson(steps.deps.outputs.deps).linux.tbb.github_tag}}
108-
fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux.fpgaemu.github_tag}}
109-
cpu_tag=${{fromJson(steps.deps.outputs.deps).linux.oclcpu.github_tag}}
110-
# This job produces a Docker container with the latest versions of Intel
111-
# drivers, that can be found on GitHub.
112-
drivers_image_ubuntu2204_unstable:
113-
if: github.repository == 'intel/llvm'
114-
name: Intel Drivers (unstable) Ubuntu 22.04 Docker image
115-
runs-on: ubuntu-22.04
116-
permissions:
117-
packages: write
118-
needs: base_image_ubuntu2204
119-
steps:
120-
- name: Checkout
121-
uses: actions/checkout@v4
122-
with:
123-
fetch-depth: 2
124-
- name: Get dependencies configuration
125-
id: deps
126-
run: |
127-
DEPS=`cat devops/dependencies.json`
128-
DEPS="${DEPS//$'\r'/''}"
129-
DEPS="${DEPS//$'\n'/' '}"
130-
echo $DEPS
131-
echo "deps=$DEPS" >>$GITHUB_OUTPUT
132-
- name: Build and Push Container
133-
uses: ./devops/actions/build_container
134-
with:
135-
push: ${{ github.event_name != 'pull_request' }}
136-
file: ubuntu2204_intel_drivers
137-
username: ${{ github.repository_owner }}
138-
password: ${{ secrets.GITHUB_TOKEN }}
139-
tags: |
140-
ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:unstable-${{ github.sha }}
141-
ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:unstable
142-
# build-args:empty, so we automatically take the "latest" tags as
143-
# unstable

.github/workflows/sycl-detect-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
filters: ${{ steps.result.outputs.result }}
2121
steps:
2222
- name: Check file changes
23-
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd
23+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
2424
id: changes
2525
with:
2626
filters: |

.github/workflows/sycl-nightly.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
echo "TAG=$(date +'%Y-%m-%d')-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
147147
fi
148148
- name: Upload binaries
149-
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
149+
uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564
150150
with:
151151
files: |
152152
sycl_linux.tar.gz
@@ -160,6 +160,8 @@ jobs:
160160
ubuntu2204_docker_build_push:
161161
if: github.repository == 'intel/llvm'
162162
runs-on: [Linux, build]
163+
permissions:
164+
packages: write
163165
needs: ubuntu2204_build
164166
steps:
165167
- uses: actions/checkout@v4

bolt/include/bolt/Core/AddressMap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef BOLT_CORE_ADDRESS_MAP_H
1515
#define BOLT_CORE_ADDRESS_MAP_H
1616

17-
#include "llvm/ADT/StringRef.h"
1817
#include "llvm/MC/MCSymbol.h"
1918

2019
#include <optional>

bolt/include/bolt/Core/BinaryContext.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ class BinaryContext {
265265

266266
public:
267267
static Expected<std::unique_ptr<BinaryContext>>
268-
createBinaryContext(const ObjectFile *File, bool IsPIC,
268+
createBinaryContext(Triple TheTriple, StringRef InputFileName,
269+
SubtargetFeatures *Features, bool IsPIC,
269270
std::unique_ptr<DWARFContext> DwCtx,
270271
JournalingStreams Logger);
271272

bolt/include/bolt/Core/BinaryData.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "llvm/ADT/Twine.h"
1919
#include "llvm/MC/MCSymbol.h"
2020
#include "llvm/Support/raw_ostream.h"
21-
#include <algorithm>
2221
#include <string>
2322
#include <vector>
2423

bolt/include/bolt/Core/BinaryDomTree.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "bolt/Core/BinaryBasicBlock.h"
1818
#include "llvm/IR/Dominators.h"
19-
#include "llvm/Support/GenericDomTreeConstruction.h"
2019

2120
namespace llvm {
2221
namespace bolt {

0 commit comments

Comments
 (0)