Skip to content

Commit 264a8fc

Browse files
authored
merge main into amd-staging (#481)
2 parents 10cd7e6 + c79cad2 commit 264a8fc

File tree

1,291 files changed

+7136
-5257
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,291 files changed

+7136
-5257
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
path: golden-images
5555
- name: Setup Windows
5656
if: runner.os == 'Windows'
57-
uses: llvm/actions/setup-windows@main
57+
uses: llvm/actions/setup-windows@42d80571b13f4599bbefbc7189728b64723c7f78 # main
5858
with:
5959
arch: amd64
6060
- name: Build DXC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
repo: ${{ github.repository }}
101101
steps:
102102
- name: Install Ninja
103-
uses: llvm/actions/install-ninja@main
103+
uses: llvm/actions/install-ninja@42d80571b13f4599bbefbc7189728b64723c7f78 # main
104104
- name: Install abi-compliance-checker
105105
run: |
106106
sudo apt-get update

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
repo: ${{ github.repository }}
8989
steps:
9090
- name: Install Ninja
91-
uses: llvm/actions/install-ninja@main
91+
uses: llvm/actions/install-ninja@42d80571b13f4599bbefbc7189728b64723c7f78 # main
9292
- name: Install abi-compliance-checker
9393
run: |
9494
sudo apt-get update

.github/workflows/llvm-bugs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
url : issue.data.html_url,
5353
labels : issue.data.labels.map((label) => label.name),
5454
assignee : issue.data.assignees.map((assignee) => assignee.login),
55-
body : issue.data.body
55+
body : maybeTruncatedBody
5656
};
5757
5858
const data = {

.github/workflows/new-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
16-
- uses: llvm/actions/issue-labeler@main
16+
- uses: llvm/actions/issue-labeler@42d80571b13f4599bbefbc7189728b64723c7f78 # main
1717
with:
1818
repo-token: ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}
1919
configuration-path: .github/new-issues-labeler.yml

.github/workflows/premerge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
with:
191191
max-size: "2000M"
192192
- name: Install Ninja
193-
uses: llvm/actions/install-ninja@main
193+
uses: llvm/actions/install-ninja@42d80571b13f4599bbefbc7189728b64723c7f78 # main
194194
- name: Build and Test
195195
run: |
196196
source <(git diff --name-only HEAD~1...HEAD | python3 .ci/compute_projects.py)

.github/workflows/release-binaries.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ jobs:
138138
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
139139
fi
140140
141-
echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
142141
case "${{ inputs.runs-on }}" in
143142
ubuntu-22.04*)
144143
build_runs_on="depot-${{ inputs.runs-on }}-16"
@@ -157,6 +156,23 @@ jobs:
157156
build_runs_on=$test_runs_on
158157
;;
159158
esac
159+
160+
case "$build_runs_on" in
161+
# These runners cannot build the full release package faster than
162+
# the 6 hours timeout limit, so we need to use a configuration
163+
# that builds more quickly.
164+
macos-14)
165+
bootstrap_prefix="BOOTSTRAP"
166+
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF -DLLVM_RELEASE_ENABLE_PGO=OFF"
167+
;;
168+
*)
169+
bootstrap_prefix="BOOTSTRAP_BOOTSTRAP"
170+
;;
171+
esac
172+
173+
target_cmake_flags="$target_cmake_flags -D${bootstrap_prefix}_CPACK_PACKAGE_FILE_NAME=$release_binary_basename"
174+
175+
echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
160176
echo "build-runs-on=$build_runs_on" >> $GITHUB_OUTPUT
161177
echo "test-runs-on=$test_runs_on" >> $GITHUB_OUTPUT
162178
@@ -177,7 +193,7 @@ jobs:
177193

178194
- name: Setup Windows
179195
if: startsWith(runner.os, 'Windows')
180-
uses: llvm/actions/setup-windows@main
196+
uses: llvm/actions/setup-windows@42d80571b13f4599bbefbc7189728b64723c7f78 # main
181197
with:
182198
arch: amd64
183199

@@ -200,8 +216,7 @@ jobs:
200216
# so we need to set some extra cmake flags to disable this.
201217
cmake -G Ninja -S llvm -B ${{ steps.setup-stage.outputs.build-prefix }}/build \
202218
${{ needs.prepare.outputs.target-cmake-flags }} \
203-
-C clang/cmake/caches/Release.cmake \
204-
-DBOOTSTRAP_BOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"
219+
-C clang/cmake/caches/Release.cmake
205220
206221
- name: Build
207222
shell: bash

bolt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Once you have `perf.fdata` ready, you can use it for optimizations with
173173
BOLT. Assuming your environment is setup to include the right path, execute
174174
`llvm-bolt`:
175175
```
176-
$ llvm-bolt <executable> -o <executable>.bolt -data=perf.fdata -reorder-blocks=ext-tsp -reorder-functions=hfsort -split-functions -split-all-cold -split-eh -dyno-stats
176+
$ llvm-bolt <executable> -o <executable>.bolt -data=perf.fdata -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -split-all-cold -split-eh -dyno-stats
177177
```
178178

179179
If you do need an updated debug info, then add `-update-debug-sections` option

bolt/lib/Core/BinaryContext.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ cl::opt<std::string> CompDirOverride(
7878
"to *.dwo files."),
7979
cl::Hidden, cl::init(""), cl::cat(BoltCategory));
8080

81+
static cl::opt<bool> CloneConstantIsland("clone-constant-island",
82+
cl::desc("clone constant islands"),
83+
cl::Hidden, cl::init(true),
84+
cl::ZeroOrMore, cl::cat(BoltCategory));
85+
8186
static cl::opt<bool>
8287
FailOnInvalidPadding("fail-on-invalid-padding", cl::Hidden, cl::init(false),
8388
cl::desc("treat invalid code padding as error"),
@@ -461,14 +466,21 @@ BinaryContext::handleAddressRef(uint64_t Address, BinaryFunction &BF,
461466
// of dynamic relocs, as we currently do not support cloning them.
462467
// Notice: we might fail to link because of this, if the original constant
463468
// island we are referring would be emitted too far away.
464-
if (IslandIter->second->hasDynamicRelocationAtIsland()) {
469+
if (IslandIter->second->hasDynamicRelocationAtIsland() ||
470+
!opts::CloneConstantIsland) {
465471
MCSymbol *IslandSym =
466472
IslandIter->second->getOrCreateIslandAccess(Address);
467473
if (IslandSym)
468474
return std::make_pair(IslandSym, 0);
469475
} else if (MCSymbol *IslandSym =
470476
IslandIter->second->getOrCreateProxyIslandAccess(Address,
471477
BF)) {
478+
LLVM_DEBUG(
479+
dbgs() << "BOLT-DEBUG: clone constant island at address 0x"
480+
<< Twine::utohexstr(IslandIter->first) << " with size of 0x"
481+
<< Twine::utohexstr(
482+
IslandIter->second->estimateConstantIslandSize())
483+
<< " bytes, referenced by " << BF << "\n");
472484
BF.createIslandDependency(IslandSym, IslandIter->second);
473485
return std::make_pair(IslandSym, 0);
474486
}

clang-tools-extra/clangd/refactor/tweaks/OverridePureVirtuals.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
#include "clang/AST/ASTContext.h"
8181
#include "clang/AST/DeclCXX.h"
82-
#include "clang/AST/Type.h"
82+
#include "clang/AST/TypeBase.h"
8383
#include "clang/AST/TypeLoc.h"
8484
#include "clang/Basic/LLVM.h"
8585
#include "clang/Basic/SourceLocation.h"
@@ -116,7 +116,8 @@ std::string removePureVirtualSyntax(const std::string &MethodDecl,
116116

117117
DeclString += Tk.text();
118118
if (Tk.Kind != tok::l_paren && Next.Kind != tok::comma &&
119-
Next.Kind != tok::r_paren && Next.Kind != tok::l_paren)
119+
Next.Kind != tok::r_paren && Next.Kind != tok::l_paren &&
120+
Tk.Kind != tok::coloncolon && Next.Kind != tok::coloncolon)
120121
DeclString += ' ';
121122
}
122123
// Trim the last whitespace.

0 commit comments

Comments
 (0)