Skip to content

Commit 021b0fe

Browse files
committed
Merge from 'main' to 'sycl-web' (24 commits)
CONFLICT (content): Merge conflict in llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
2 parents 023b8ef + e808f8a commit 021b0fe

File tree

70 files changed

+1573
-773
lines changed

Some content is hidden

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

70 files changed

+1573
-773
lines changed

.github/workflows/new-prs.yml

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,36 @@
11
name: "Labelling new pull requests"
2+
3+
permissions:
4+
contents: read
5+
26
on:
3-
workflow_run:
4-
workflows: ["PR Receive"]
7+
# It's safe to use pull_request_target here, because we aren't checking out
8+
# code from the pull request branch.
9+
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
10+
pull_request_target:
11+
types:
12+
- opened
13+
- reopened
14+
- ready_for_review
15+
- synchronize
516

617
jobs:
718
automate-prs-labels:
819
permissions:
9-
contents: read
1020
pull-requests: write
1121
runs-on: ubuntu-latest
22+
# Ignore PRs with more than 10 commits. Pull requests with a lot of
23+
# commits tend to be accidents usually when someone made a mistake while trying
24+
# to rebase. We want to ignore these pull requests to avoid excessive
25+
# notifications.
1226
if: >
1327
github.repository == 'llvm/llvm-project' &&
14-
github.event.workflow_run.event == 'pull_request_target' &&
15-
github.event.workflow_run.conclusion == 'success'
28+
github.event.pull_request.draft == false &&
29+
github.event.pull_request.commits < 10
1630
steps:
17-
# From: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
18-
# Updated version here: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
19-
- name: Debug
20-
run: |
21-
echo "Event: ${{ github.event.workflow_run.event }} Conclusion: ${{ github.event.workflow_run.conclusion }}"
22-
- name: 'Download artifact'
23-
uses: actions/github-script@v6
24-
with:
25-
script: |
26-
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
27-
owner: context.repo.owner,
28-
repo: context.repo.repo,
29-
run_id: context.payload.workflow_run.id
30-
});
31-
const matchArtifact = artifacts.data.artifacts.find((artifact) =>
32-
artifact.name === 'pr'
33-
);
34-
const download = await github.rest.actions.downloadArtifact({
35-
owner: context.repo.owner,
36-
repo: context.repo.repo,
37-
artifact_id: matchArtifact.id,
38-
archive_format: 'zip'
39-
});
40-
const { writeFileSync } = require('node:fs');
41-
writeFileSync('${{ github.workspace }}/pr.zip', Buffer.from(download.data));
42-
43-
- run: unzip pr.zip
44-
45-
- name: "Get PR Number"
46-
id: vars
47-
run:
48-
echo "pr-number=$(cat NR)" >> "$GITHUB_OUTPUT"
49-
5031
- uses: actions/labeler@v4
5132
with:
5233
configuration-path: .github/new-prs-labeler.yml
5334
# workaround for https://github.com/actions/labeler/issues/112
5435
sync-labels: ''
5536
repo-token: ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}
56-
pr-number: ${{ steps.vars.outputs.pr-number }}

.github/workflows/pr-receive-label.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/pr-receive.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/pr-subscriber-wait.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/pr-subscriber.yml

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
name: PR Subscriber
22

33
on:
4-
workflow_run:
5-
workflows: ["PR Receive Label"]
4+
pull_request_target:
65
types:
7-
- completed
6+
- labeled
87

98
permissions:
10-
actions: read
119
contents: read
1210

1311
jobs:
1412
auto-subscribe:
1513
runs-on: ubuntu-latest
16-
if: >
17-
github.repository == 'llvm/llvm-project' &&
18-
github.event.workflow_run.event == 'pull_request' &&
19-
github.event.workflow_run.conclusion == 'success'
14+
if: github.repository == 'llvm/llvm-project'
2015
steps:
2116
- name: Setup Automation Script
2217
run: |
@@ -26,47 +21,10 @@ jobs:
2621
chmod a+x github-automation.py
2722
pip install -r requirements.txt
2823
29-
- name: 'Wait for other actions'
30-
# We can't use the concurrency tag for these jobs, because it will
31-
# cancel pending jobs if another job is running.
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
run: |
35-
python3 pr-subscriber-wait.py
36-
37-
38-
# From: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
39-
# Updated version here: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
40-
- name: 'Download artifact'
41-
uses: actions/github-script@v6
42-
with:
43-
script: |
44-
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
45-
owner: context.repo.owner,
46-
repo: context.repo.repo,
47-
run_id: context.payload.workflow_run.id
48-
});
49-
const matchArtifact = artifacts.data.artifacts.find((artifact) =>
50-
artifact.name === 'pr'
51-
);
52-
const download = await github.rest.actions.downloadArtifact({
53-
owner: context.repo.owner,
54-
repo: context.repo.repo,
55-
artifact_id: matchArtifact.id,
56-
archive_format: 'zip'
57-
});
58-
const { writeFileSync } = require('node:fs');
59-
writeFileSync('${{ github.workspace }}/pr.zip', Buffer.from(download.data));
60-
61-
- run: unzip pr.zip
62-
6324
- name: Update watchers
64-
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
6525
run: |
66-
PR_NUMBER=$(cat NR)
67-
LABEL_NAME=$(cat LABEL)
6826
./github-automation.py \
6927
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
7028
pr-subscriber \
71-
--issue-number "$PR_NUMBER" \
72-
--label-name "$LABEL_NAME"
29+
--issue-number "${{ github.event.number }}" \
30+
--label-name "${{ github.event.label.name }}"

.github/workflows/scorecard.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ on:
1212
# To guarantee Maintained check is occasionally updated. See
1313
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1414
schedule:
15-
- cron: '38 20 * * 4'
16-
push:
17-
branches: [ "main" ]
15+
- cron: '38 20 * * *'
1816

1917
# Declare default permissions as read only.
2018
permissions:

clang/include/clang/APINotes/APINotesOptions.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

clang/include/clang/Driver/Distro.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class Distro {
7878
UbuntuKinetic,
7979
UbuntuLunar,
8080
UbuntuMantic,
81+
UbuntuNoble,
8182
UnknownDistro
8283
};
8384

@@ -129,7 +130,7 @@ class Distro {
129130
}
130131

131132
bool IsUbuntu() const {
132-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
133+
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
133134
}
134135

135136
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,10 +1804,6 @@ def fswift_async_fp_EQ : Joined<["-"], "fswift-async-fp=">,
18041804
NormalizedValuesScope<"CodeGenOptions::SwiftAsyncFramePointerKind">,
18051805
NormalizedValues<["Auto", "Always", "Never"]>,
18061806
MarshallingInfoEnum<CodeGenOpts<"SwiftAsyncFramePointer">, "Always">;
1807-
def fapinotes_swift_version : Joined<["-"], "fapinotes-swift-version=">,
1808-
Group<f_clang_Group>, Visibility<[ClangOption, CC1Option]>,
1809-
MetaVarName<"<version>">,
1810-
HelpText<"Specify the Swift version to use when filtering API notes">;
18111807

18121808
defm addrsig : BoolFOption<"addrsig",
18131809
CodeGenOpts<"Addrsig">, DefaultFalse,
@@ -4396,9 +4392,6 @@ def ibuiltininc : Flag<["-"], "ibuiltininc">, Group<clang_i_Group>,
43964392
def index_header_map : Flag<["-"], "index-header-map">,
43974393
Visibility<[ClangOption, CC1Option]>,
43984394
HelpText<"Make the next included directory (-I or -F) an indexer header map">;
4399-
def iapinotes_modules : JoinedOrSeparate<["-"], "iapinotes-modules">, Group<clang_i_Group>,
4400-
Visibility<[ClangOption, CC1Option]>,
4401-
HelpText<"Add directory to the API notes search path referenced by module name">, MetaVarName<"<directory>">;
44024395
def idirafter : JoinedOrSeparate<["-"], "idirafter">, Group<clang_i_Group>,
44034396
Visibility<[ClangOption, CC1Option]>,
44044397
HelpText<"Add directory to AFTER include search path">;

clang/include/clang/Frontend/CompilerInvocation.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#ifndef LLVM_CLANG_FRONTEND_COMPILERINVOCATION_H
1010
#define LLVM_CLANG_FRONTEND_COMPILERINVOCATION_H
1111

12-
#include "clang/APINotes/APINotesOptions.h"
1312
#include "clang/Basic/CodeGenOptions.h"
1413
#include "clang/Basic/DiagnosticOptions.h"
1514
#include "clang/Basic/FileSystemOptions.h"
@@ -93,9 +92,6 @@ class CompilerInvocationBase {
9392

9493
std::shared_ptr<MigratorOptions> MigratorOpts;
9594

96-
/// Options controlling API notes.
97-
std::shared_ptr<APINotesOptions> APINotesOpts;
98-
9995
/// Options controlling IRgen and the backend.
10096
std::shared_ptr<CodeGenOptions> CodeGenOpts;
10197

@@ -135,7 +131,6 @@ class CompilerInvocationBase {
135131
const PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; }
136132
const AnalyzerOptions &getAnalyzerOpts() const { return *AnalyzerOpts; }
137133
const MigratorOptions &getMigratorOpts() const { return *MigratorOpts; }
138-
const APINotesOptions &getAPINotesOpts() const { return *APINotesOpts; }
139134
const CodeGenOptions &getCodeGenOpts() const { return *CodeGenOpts; }
140135
const FileSystemOptions &getFileSystemOpts() const { return *FSOpts; }
141136
const FrontendOptions &getFrontendOpts() const { return *FrontendOpts; }
@@ -247,7 +242,6 @@ class CompilerInvocation : public CompilerInvocationBase {
247242
PreprocessorOptions &getPreprocessorOpts() { return *PPOpts; }
248243
AnalyzerOptions &getAnalyzerOpts() { return *AnalyzerOpts; }
249244
MigratorOptions &getMigratorOpts() { return *MigratorOpts; }
250-
APINotesOptions &getAPINotesOpts() { return *APINotesOpts; }
251245
CodeGenOptions &getCodeGenOpts() { return *CodeGenOpts; }
252246
FileSystemOptions &getFileSystemOpts() { return *FSOpts; }
253247
FrontendOptions &getFrontendOpts() { return *FrontendOpts; }

0 commit comments

Comments
 (0)