Skip to content

Commit 7fb555c

Browse files
authored
Merge branch 'arm-software' into automerge
2 parents 667209e + 090ab58 commit 7fb555c

File tree

407 files changed

+26077
-5298
lines changed

Some content is hidden

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

407 files changed

+26077
-5298
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp @nikic
2828
/llvm/lib/Transforms/InstCombine/ @nikic
2929

30+
/clang/include/clang/Sema/Sema.h @Endilll
3031
/clang/test/CXX/drs/ @Endilll
3132
/clang/www/cxx_dr_status.html @Endilll
3233
/clang/www/make_cxx_dr_status @Endilll
@@ -128,10 +129,10 @@
128129
/mlir/**/Transforms/SROA.* @moxinilian
129130

130131
# BOLT
131-
/bolt/ @aaupov @maksfb @rafaelauler @ayermolo @dcci @yota9
132+
/bolt/ @aaupov @maksfb @rafaelauler @ayermolo @dcci
132133

133134
# Bazel build system.
134-
/utils/bazel/ @rupprecht @keith @aaronmondal
135+
/utils/bazel/ @rupprecht @keith
135136

136137
# InstallAPI and TextAPI
137138
/llvm/**/TextAPI/ @cyndyishida
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Summary**
11+
[A clear and concise description of what the bug is]
12+
13+
**To Reproduce**
14+
1. [Steps to reproduce]
15+
16+
**Expected behavior**
17+
[A clear and concise description of what you expected to happen]
18+
19+
**Actual behavior**
20+
[A clear and concise description of what happens instead]
21+
22+
**Environment**
23+
[Arm Toolchain variant and version, host OS: name, version, architecture]
24+
25+
**[Additional context]**
26+
[Optional: Add any other context about the problem here or remove]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Downstream Change
3+
about: Issue to track a Downstream Change
4+
title: "[Downstream Change] "
5+
labels: downstream-change
6+
assignees: ''
7+
8+
---
9+
10+
**What is the change**
11+
[Describe the change here, see CONTRIBUTING.md for details]
12+
13+
**Why this change cannot be done upstream**
14+
[Provide the rationale]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Problem or Opportunity**
11+
[A clear and concise description of what the problem or opportunity to improve is]
12+
13+
**Requested Solution**
14+
[A clear and concise description of what you want to happen]
15+
16+
**Alternatives Considered**
17+
[A clear and concise description of any alternative solutions or features you've considered]
18+
19+
**Additional context**
20+
[Add any other context or screenshots about the feature request here]

.github/ISSUE_TEMPLATE/rfc.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: RFC
3+
about: Request for Comments (RFC)
4+
title: ''
5+
labels: RFC
6+
assignees: ''
7+
8+
---
9+
10+
**Summary**
11+
[A short summary/abstract of what this RFC is about so that readers can quickly judge if they are interested in going into the details or not]
12+
13+
**Background**
14+
[Provide the context: relevant current status and/or history, references to more information]
15+
16+
**Problem (or Opportunity or Goals)**
17+
[Clearly state the problem to solve or the opportunity (goals) to make use of, if this more an improvement/innovation.]
18+
19+
**[Out of Scope]**
20+
[Optional: In cases where people could naturally have expectations/misconceptions about the solution, clearly state what this RFC is not about]
21+
22+
**Proposal**
23+
[Explain and provide relevant details of the actual proposed design or actions]
24+
25+
**[Benefits]**
26+
[Optional: Highlight why the proposal makes sense, especially if this is not a problem solving, but exploiting an opportunity]
27+
28+
**[Implementation or Transition]**
29+
[Optional: Some solutions may need multiple steps to be implemented or require migration/transition period from the previous approach - outline the plan here]
30+
31+
**[Risks]**
32+
[Optional: Consider risks and mitigations, if relevant]
33+
34+
**Alternatives**
35+
[Explain what alternatives exist or were evaluated and rejected, why]
36+
37+
**[Request for Comments]**
38+
[Optional: If it is not obvious, specifically list what questions/insights are asked from reviewers]

.github/dependabot.yml

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

.github/new-prs-labeler.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ ClangIR:
77
- clang/tools/cir-*/**/*
88
- clang/test/CIR/**/*
99

10-
clang:bytecode:
11-
- clang/docs/ConstantInterpreter.rst
12-
- clang/lib/AST/ByteCode/**/*
13-
- clang/test/AST/ByteCode/**/*
14-
- clang/unittests/AST/ByteCode/**/*
15-
1610
clang:dataflow:
1711
- clang/include/clang/Analysis/FlowSensitive/**/*
1812
- clang/lib/Analysis/FlowSensitive/**/*
@@ -505,7 +499,6 @@ clang:static analyzer:
505499
- clang/tools/scan-build/**
506500
- clang/utils/analyzer/**
507501
- clang/docs/analyzer/**
508-
- clang/test/Analysis/**
509502

510503
pgo:
511504
- llvm/lib/Transforms/Instrumentation/CGProfile.cpp
@@ -643,7 +636,6 @@ hlsl:
643636
- clang/lib/Sema/HLSLExternalSemaSource.cpp
644637
- clang/lib/Sema/SemaHLSL.cpp
645638
- clang/lib/CodeGen/CGHLSLRuntime.*
646-
- clang/lib/CodeGen/CGHLSLBuiltins.cpp
647639
- llvm/include/llvm/Frontend/HLSL/**
648640
- llvm/lib/Frontend/HLSL/**
649641

@@ -666,20 +658,9 @@ backend:DirectX:
666658
- '**/*dxil*/**'
667659
- '**/*DXContainer*'
668660
- '**/*DXContainer*/**'
669-
- clang/lib/Sema/SemaDirectX.cpp
670-
- clang/include/clang/Sema/SemaDirectX.h
671-
- clang/include/clang/Basic/BuiltinsDirectX.td
672-
- clang/lib/CodeGen/TargetBuiltins/DirectX.cpp
673-
- clang/test/CodeGenDirectX/**
674-
- clang/test/SemaDirectX/**
675661

676662
backend:SPIR-V:
677663
- clang/lib/Driver/ToolChains/SPIRV.*
678-
- clang/lib/Sema/SemaSPIRV.cpp
679-
- clang/include/clang/Sema/SemaSPIRV.h
680-
- clang/include/clang/Basic/BuiltinsSPIRV.td
681-
- clang/test/CodeGenSPIRV/**
682-
- clang/test/SemaSPIRV/**
683664
- llvm/lib/Target/SPIRV/**
684665
- llvm/test/CodeGen/SPIRV/**
685666
- llvm/test/Frontend/HLSL/**
@@ -744,9 +725,6 @@ llvm:regalloc:
744725
lldb:
745726
- lldb/**
746727

747-
lldb-dap:
748-
- lldb/tools/lldb-dap/**
749-
750728
backend:AMDGPU:
751729
- '**/*amdgpu*'
752730
- '**/*AMDGPU*'
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Copyright (c) 2025, Arm Limited and affiliates.
2+
# Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
# This workflow runs all build scripts in parallel on Linux.
7+
# It is intended to be triggered as part of a **nightly build** to
8+
# validate all build configurations and test them automatically.
9+
#
10+
# Each build script is paired with a corresponding test script using
11+
# a matrix strategy. Each build+test pair runs as a separate job,
12+
# allowing for concurrency and clear traceability of failures.
13+
14+
name: ATfE Nightly Build and Test
15+
16+
on:
17+
workflow_dispatch:
18+
schedule:
19+
- cron: '0 2 * * *' # Every day at 02:00 UTC
20+
21+
jobs:
22+
build-and-test-toolchain:
23+
name: Build ${{ matrix.build_script }} + Test ${{ matrix.test_script }} on ${{ matrix.runner }}
24+
runs-on: ${{ matrix.runner }}
25+
# Ensure the workflow only runs on the arm-toolchain repository and not on forks
26+
if: github.repository == 'arm/arm-toolchain'
27+
28+
strategy:
29+
fail-fast: false # Prevents one job failure from cancelling all
30+
matrix:
31+
include:
32+
- build_script: build.sh
33+
test_script: test.sh
34+
runner: ah-ubuntu_22_04-c7g_8x-100
35+
- build_script: build_llvmlibc_overlay.sh
36+
test_script: ''
37+
runner: ah-ubuntu_22_04-c7g_8x-100
38+
- build_script: build_newlib_nano_overlay.sh
39+
test_script: ''
40+
runner: ah-ubuntu_22_04-c7g_8x-100
41+
- build_script: build_newlib_overlay.sh
42+
test_script: ''
43+
runner: ah-ubuntu_22_04-c7g_8x-100
44+
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v4
48+
49+
- name: Install dependencies
50+
run: bash ./arm-software/embedded/scripts/install_dependencies.sh
51+
52+
- name: Add ~/.local/bin to PATH
53+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
54+
55+
- name: Apply llvm-project patches
56+
run: |
57+
python3 arm-software/embedded/cmake/patch_repo.py \
58+
--method apply \
59+
arm-software/embedded/patches/llvm-project
60+
61+
- name: Apply llvm-project-perf patches
62+
run: |
63+
python3 arm-software/embedded/cmake/patch_repo.py \
64+
--method apply \
65+
arm-software/embedded/patches/llvm-project-perf
66+
67+
- name: Build ${{ matrix.build_script }}
68+
run: bash ./arm-software/embedded/scripts/${{ matrix.build_script }}
69+
70+
- name: Test ${{ matrix.test_script }}
71+
if: matrix.test_script != ''
72+
run: bash ./arm-software/embedded/scripts/${{ matrix.test_script }}
73+
74+
- name: Upload test results
75+
uses: actions/upload-artifact@v4
76+
if: always()
77+
with:
78+
name: test-results-${{ matrix.build_script }}
79+
path: build/**/*.junit.xml
80+
81+
- name: Upload built packages
82+
uses: actions/upload-artifact@v4
83+
if: success()
84+
with:
85+
name: ATfE-packages-${{ matrix.build_script }}
86+
path: build*/ATfE-*.tar.xz

.github/workflows/automerge.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow executes the automerge python script to automatically merge
2+
# changes from the `main` branch of upstream LLVM into the `arm-software`
3+
# branch of the arm/arm-toolchain repository.
4+
name: Automerge
5+
on:
6+
workflow_run:
7+
workflows: [Sync from Upstream LLVM]
8+
types:
9+
- completed
10+
workflow_dispatch:
11+
jobs:
12+
Run-Automerge:
13+
runs-on: ubuntu-24.04-arm
14+
permissions:
15+
pull-requests: write
16+
if: github.repository == 'arm/arm-toolchain'
17+
strategy:
18+
matrix:
19+
branches:
20+
- from_branch: main
21+
to_branch: arm-software
22+
steps:
23+
- name: Configure Access Token
24+
uses: actions/create-github-app-token@v1
25+
id: generate-token
26+
with:
27+
app-id: ${{ secrets.SYNC_APP_ID }}
28+
private-key: ${{ secrets.SYNC_APP_PRIVATE_KEY }}
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
ref: ${{ matrix.branches.to_branch }}
33+
token: ${{ steps.generate-token.outputs.token }}
34+
- name: Configure Git Identity
35+
run: |
36+
git config --local user.name "github-actions[bot]"
37+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
38+
- name: Fetch Branches
39+
run: |
40+
git remote set-branches --add origin ${{ matrix.branches.from_branch }}
41+
git fetch origin ${{ matrix.branches.from_branch }}:${{ matrix.branches.from_branch }}
42+
git pull --unshallow --ff-only origin ${{ matrix.branches.to_branch }}
43+
- name: Run automerge
44+
run: python3 arm-software/ci/automerge.py --project-name ${{ github.repository }} --from-branch ${{ matrix.branches.from_branch }} --to-branch ${{ matrix.branches.to_branch }} --verbose
45+
env:
46+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)