Skip to content

Commit 84fb033

Browse files
Merge branch 'main' into main
2 parents 44268b1 + cc5185b commit 84fb033

File tree

1,006 files changed

+66020
-55960
lines changed

Some content is hidden

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

1,006 files changed

+66020
-55960
lines changed

.git-blame-ignore-revs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,12 @@ a3a007ad5fa20abc90ead4e1030b481bf109b4cf
143143
b7e332d3f59f567b1999fbcc660d7837cba8e406
144144
6056f942abe83b05406df8b04e95ec37a3d160b5
145145
906295b8a31c8dac5aa845864c0bca9f02f86184
146+
147+
# [clang-tidy][NFC] Remove trailing whitespaces in documentation
148+
8f2b167de4a1268160c06512d08863a9e8f43290
149+
150+
# [clang-tidy][NFC] Enforce 80 characters limit in docs
151+
5edf70c41c5d69f3751b4199f642f4585599dade
152+
c73870dbe89a8219130e21a0b3f13df76d299352
153+
74c40293c309dbd142bf1f0ebfbfde6be8d30655
154+
a7ba8dcad76476478100c228a31d9c48391b1e03

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
/mlir/lib/Conversion/*ToROCDL @krzysz00 @kuhar
6161
/mlir/include/mlir/Dialect/LLVMIR/ROCDL* @krzysz00 @kuhar
6262

63+
# Arith dialect in MLIR.
64+
/mlir/include/mlir/Dialect/Arith @kuhar
65+
/mlir/lib/Dialect/Arith @kuhar
66+
/mlir/lib/Conversion/ArithTo* @kuhar
67+
6368
# XeGPU and XeVM dialects in MLIR.
6469
/mlir/include/mlir/Dialect/XeGPU @charithaintc @Jianhui-Li
6570
/mlir/lib/Dialect/XeGPU @charithaintc @Jianhui-Li

.github/workflows/bazel-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
- name: Setup Buildifier
2727
run: |
28-
sudo curl -L https://github.com/bazelbuild/buildtools/releases/download/v8.2.1/buildifier-linux-amd64 -o /usr/bin/buildifier
28+
sudo curl -L https://github.com/bazelbuild/buildtools/releases/download/v8.2.1/buildifier-linux-amd64 -o /usr/bin/buildifier --fail
2929
sudo chmod +x /usr/bin/buildifier
3030
- name: Run Buildifier
3131
run: |
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
sudo apt-get update
5151
sudo apt-get install -y libmpfr-dev libpfm4-dev m4 libedit-dev
52-
sudo curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.27.0/bazelisk-amd64.deb > /tmp/bazelisk.deb
52+
sudo curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.27.0/bazelisk-amd64.deb --fail > /tmp/bazelisk.deb
5353
sudo apt-get install -y /tmp/bazelisk.deb
5454
rm /tmp/bazelisk.deb
5555
- name: Build/Test

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

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,19 @@ jobs:
2121
build-metrics-container:
2222
if: github.repository_owner == 'llvm'
2323
runs-on: ubuntu-24.04
24-
outputs:
25-
container-name: ${{ steps.vars.outputs.container-name }}
26-
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}
27-
container-filename: ${{ steps.vars.outputs.container-filename }}
2824
steps:
2925
- name: Checkout LLVM
3026
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3127
with:
32-
sparse-checkout: .ci/metrics/
33-
- name: Write Variables
34-
id: vars
35-
run: |
36-
tag=`date +%s`
37-
container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/metrics"
38-
echo "container-name=$container_name" >> $GITHUB_OUTPUT
39-
echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT
40-
echo "container-filename=$(echo $container_name:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
28+
sparse-checkout: |
29+
.ci/metrics/
30+
.github/actions/build-container
4131
- name: Build Container
42-
working-directory: ./.ci/metrics
43-
run: |
44-
podman build -t ${{ steps.vars.outputs.container-name-tag }} -f Dockerfile .
45-
# Save the container so we have it in case the push fails. This also
46-
# allows us to separate the push step into a different job so we can
47-
# maintain minimal permissions while building the container.
48-
- name: Save Container Image
49-
run: |
50-
podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
51-
- name: Upload Container Image
52-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
32+
uses: ./.github/actions/build-container
5333
with:
54-
name: container
55-
path: ${{ steps.vars.outputs.container-filename }}
56-
retention-days: 14
34+
container-name: metrics
35+
context: .ci/metrics
36+
dockerfile: .ci/metrics/Dockerfile
5737

5838
push-metrics-container:
5939
if: github.event_name == 'push'
@@ -65,14 +45,12 @@ jobs:
6545
env:
6646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6747
steps:
68-
- name: Download Container
69-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
48+
- name: Checkout LLVM
49+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
50+
with:
51+
sparse-checkout: |
52+
.github/actions/push-container
53+
54+
- uses: ./.github/actions/push-container
7055
with:
71-
name: container
72-
- name: Push Container
73-
run: |
74-
podman load -i ${{ needs.build-metrics-container.outputs.container-filename }}
75-
podman tag ${{ needs.build-metrics-container.outputs.container-name-tag }} ${{ needs.build-metrics-container.outputs.container-name }}:latest
76-
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
77-
podman push ${{ needs.build-metrics-container.outputs.container-name-tag }}
78-
podman push ${{ needs.build-metrics-container.outputs.container-name }}:latest
56+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/commit-access-review.py

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -170,80 +170,6 @@ def get_num_commits(gh: github.Github, user: str, start_date: datetime.datetime)
170170
return count
171171

172172

173-
def is_new_committer_query_repo(
174-
gh: github.Github, user: str, start_date: datetime.datetime
175-
) -> bool:
176-
"""
177-
Determine if ``user`` is a new committer. A new committer can keep their
178-
commit access even if they don't meet the criteria.
179-
"""
180-
variables = {
181-
"user": user,
182-
}
183-
184-
user_query = """
185-
query ($user: String!) {
186-
user(login: $user) {
187-
id
188-
}
189-
}
190-
"""
191-
192-
res_header, res_data = gh._Github__requester.graphql_query(
193-
query=user_query, variables=variables
194-
)
195-
data = res_data["data"]
196-
variables["owner"] = "llvm"
197-
variables["user_id"] = data["user"]["id"]
198-
variables["start_date"] = start_date.strftime("%Y-%m-%dT%H:%M:%S")
199-
200-
query = """
201-
query ($owner: String!, $user_id: ID!){
202-
organization(login: $owner) {
203-
repository(name: "llvm-project") {
204-
ref(qualifiedName: "main") {
205-
target {
206-
... on Commit {
207-
history(author: {id: $user_id }, first: 5) {
208-
nodes {
209-
committedDate
210-
}
211-
}
212-
}
213-
}
214-
}
215-
}
216-
}
217-
}
218-
"""
219-
220-
res_header, res_data = gh._Github__requester.graphql_query(
221-
query=query, variables=variables
222-
)
223-
data = res_data["data"]
224-
repo = data["organization"]["repository"]
225-
commits = repo["ref"]["target"]["history"]["nodes"]
226-
if len(commits) == 0:
227-
return True
228-
committed_date = commits[-1]["committedDate"]
229-
if datetime.datetime.strptime(committed_date, "%Y-%m-%dT%H:%M:%SZ") < start_date:
230-
return False
231-
return True
232-
233-
234-
def is_new_committer(
235-
gh: github.Github, user: str, start_date: datetime.datetime
236-
) -> bool:
237-
"""
238-
Wrapper around is_new_commiter_query_repo to handle exceptions.
239-
"""
240-
try:
241-
return is_new_committer_query_repo(gh, user, start_date)
242-
except:
243-
pass
244-
return True
245-
246-
247173
def get_review_count(
248174
gh: github.Github, user: str, start_date: datetime.datetime
249175
) -> int:
@@ -383,13 +309,6 @@ def main():
383309

384310
print("After Commits:", len(triage_list), "triagers")
385311

386-
# Step 4 check for new committers
387-
for user in list(triage_list.keys()):
388-
print("Checking", user)
389-
if is_new_committer(gh, user, one_year_ago):
390-
print("Removing new committer: ", user)
391-
del triage_list[user]
392-
393312
print("Complete:", len(triage_list), "triagers")
394313

395314
with open("triagers.log", "w") as triagers_log:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ RUN powershell -Command \
9090
RUN git config --system core.longpaths true & \
9191
git config --global core.autocrlf false
9292
93-
ARG RUNNER_VERSION=2.329.0
93+
ARG RUNNER_VERSION=2.330.0
9494
ENV RUNNER_VERSION=$RUNNER_VERSION
9595
9696
RUN powershell -Command \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ WORKDIR /home/gha
9999

100100
FROM ci-container AS ci-container-agent
101101

102-
ENV GITHUB_RUNNER_VERSION=2.329.0
102+
ENV GITHUB_RUNNER_VERSION=2.330.0
103103

104104
RUN mkdir actions-runner && \
105105
cd actions-runner && \

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ jobs:
5252
repository: llvm/offload-golden-images
5353
ref: main
5454
path: golden-images
55-
- name: Setup Windows
56-
if: runner.os == 'Windows'
57-
uses: llvm/actions/setup-windows@5dd955034a6742a2e21d82bf165fcb1050ae7b49 # main
58-
with:
59-
arch: amd64
6055
- name: Build DXC
6156
run: |
6257
cd DXC

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ jobs:
101101
ref: ${{ github.sha }}
102102
repo: ${{ github.repository }}
103103
steps:
104-
- name: Install Ninja
105-
uses: llvm/actions/install-ninja@5dd955034a6742a2e21d82bf165fcb1050ae7b49 # main
106104
- name: Download source code
107105
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
108106
with:

clang-tools-extra/clang-doc/BitcodeReader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "BitcodeReader.h"
10-
#include "llvm/ADT/IndexedMap.h"
1110
#include "llvm/Support/Error.h"
1211
#include "llvm/Support/TimeProfiler.h"
1312
#include "llvm/Support/raw_ostream.h"

0 commit comments

Comments
 (0)