Skip to content

Commit aae7e2a

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.5 [skip ci]
2 parents 4d46c33 + 71be8f3 commit aae7e2a

File tree

2,590 files changed

+148153
-60850
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,590 files changed

+148153
-60850
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ f6d557ee34b6bbdb1dc32f29e34b4a4a8ad35e81
6464

6565
# [libc++][NFC] clang-format <shared_mutex>
6666
2d7eb9c9ea1a146412a83603d5c0c6339a5d8284
67+
68+
# [libc++] Rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI
69+
4c198542226223f6a5c5511a1f89b37d15ee10b9

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ env:
5050
jobs:
5151
stage1:
5252
if: github.repository_owner == 'llvm'
53-
runs-on:
54-
group: libcxx-runners-8
53+
runs-on: libcxx-runners-8-set
5554
continue-on-error: false
5655
strategy:
57-
fail-fast: true
56+
fail-fast: false
5857
matrix:
5958
config: [
6059
'generic-cxx03',
@@ -89,12 +88,11 @@ jobs:
8988
**/crash_diagnostics/*
9089
stage2:
9190
if: github.repository_owner == 'llvm'
92-
runs-on:
93-
group: libcxx-runners-8
91+
runs-on: libcxx-runners-8-set
9492
needs: [ stage1 ]
9593
continue-on-error: false
9694
strategy:
97-
fail-fast: true
95+
fail-fast: false
9896
matrix:
9997
config: [
10098
'generic-cxx11',
@@ -169,27 +167,26 @@ jobs:
169167
'benchmarks',
170168
'bootstrapping-build'
171169
]
172-
machine: [ 'libcxx-runners-8' ]
170+
machine: [ 'libcxx-runners-8-set' ]
173171
std_modules: [ 'OFF' ]
174172
include:
175173
- config: 'generic-cxx26'
176-
machine: libcxx-runners-8
174+
machine: libcxx-runners-8-set
177175
std_modules: 'ON'
178176
- config: 'generic-asan'
179-
machine: libcxx-runners-8
177+
machine: libcxx-runners-8-set
180178
std_modules: 'OFF'
181179
- config: 'generic-tsan'
182-
machine: libcxx-runners-8
180+
machine: libcxx-runners-8-set
183181
std_modules: 'OFF'
184182
- config: 'generic-ubsan'
185-
machine: libcxx-runners-8
183+
machine: libcxx-runners-8-set
186184
std_modules: 'OFF'
187185
# Use a larger machine for MSAN to avoid timeout and memory allocation issues.
188186
- config: 'generic-msan'
189-
machine: libcxx-runners-32
187+
machine: libcxx-runners-32-set
190188
std_modules: 'OFF'
191-
runs-on:
192-
group: ${{ matrix.machine }}
189+
runs-on: ${{ matrix.machine }}
193190
steps:
194191
- uses: actions/checkout@v4
195192
- name: ${{ matrix.config }}

.github/workflows/new-prs.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,43 @@ on:
1515
- synchronize
1616

1717
jobs:
18-
automate-prs-labels:
18+
greeter:
19+
runs-on: ubuntu-latest
1920
permissions:
2021
pull-requests: write
22+
# Only comment on PRs that have been opened for the first time, by someone
23+
# new to LLVM or to GitHub as a whole.
24+
if: >-
25+
(github.repository == 'llvm/llvm-project') &&
26+
(github.event.action == 'opened') &&
27+
(github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' ||
28+
github.event.pull_request.author_association == 'FIRST_TIMER')
29+
steps:
30+
- name: Setup Automation Script
31+
run: |
32+
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
33+
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
34+
chmod a+x github-automation.py
35+
pip install -r requirements.txt
36+
37+
- name: Greet Author
38+
run: |
39+
./github-automation.py \
40+
--token '${{ secrets.GITHUB_TOKEN }}' \
41+
pr-greeter \
42+
--issue-number "${{ github.event.pull_request.number }}"
43+
44+
automate-prs-labels:
45+
# Greet first so that only the author gets that notification.
46+
needs: greeter
2147
runs-on: ubuntu-latest
2248
# Ignore PRs with more than 10 commits. Pull requests with a lot of
2349
# commits tend to be accidents usually when someone made a mistake while trying
2450
# to rebase. We want to ignore these pull requests to avoid excessive
2551
# notifications.
52+
# always() means that even if greeter is skipped, this job will run.
2653
if: >
27-
github.repository == 'llvm/llvm-project' &&
54+
always() && github.repository == 'llvm/llvm-project' &&
2855
github.event.pull_request.draft == false &&
2956
github.event.pull_request.commits < 10
3057
steps:

.mailmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
2626
27+
2728
2829
2930
@@ -42,3 +43,6 @@ Med Ismail Bennani <[email protected]> <[email protected]>
4243
Ramkumar Ramachandra <[email protected]> <[email protected]>
4344
Saleem Abdulrasool <[email protected]>
4445
46+
Wang Pengcheng <[email protected]>
47+
48+

bolt/lib/Core/BinaryFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3352,9 +3352,9 @@ void BinaryFunction::fixBranches() {
33523352
// We are going to generate two branches. Check if their targets are in
33533353
// the same fragment as this block. If only one target is in the same
33543354
// fragment, make it the destination of the conditional branch. There
3355-
// is a chance it will be a short branch which takes 5 bytes fewer than
3355+
// is a chance it will be a short branch which takes 4 bytes fewer than
33563356
// a long conditional branch. For unconditional branch, the difference
3357-
// is 4 bytes.
3357+
// is 3 bytes.
33583358
if (BB->getFragmentNum() != TSuccessor->getFragmentNum() &&
33593359
BB->getFragmentNum() == FSuccessor->getFragmentNum())
33603360
swapSuccessors();

bolt/lib/Core/FunctionLayout.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ bool FunctionLayout::update(const ArrayRef<BinaryBasicBlock *> NewLayout) {
188188
for (BinaryBasicBlock *const BB : NewLayout) {
189189
FragmentNum Num = BB->getFragmentNum();
190190

191-
assert(Num >= Fragments.back()->getFragmentNum() &&
192-
"Blocks must be arranged such that fragments are monotonically "
193-
"increasing.");
194-
195191
// Add empty fragments if necessary
196192
while (Fragments.back()->getFragmentNum() < Num)
197193
addFragment();

bolt/lib/Passes/IndirectCallPromotion.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static cl::opt<bool> ICPPeelForInline(
158158

159159
} // namespace opts
160160

161+
#ifndef NDEBUG
161162
static bool verifyProfile(std::map<uint64_t, BinaryFunction> &BFs) {
162163
bool IsValid = true;
163164
for (auto &BFI : BFs) {
@@ -182,6 +183,7 @@ static bool verifyProfile(std::map<uint64_t, BinaryFunction> &BFs) {
182183
}
183184
return IsValid;
184185
}
186+
#endif
185187

186188
namespace llvm {
187189
namespace bolt {
@@ -1467,7 +1469,6 @@ void IndirectCallPromotion::runOnFunctions(BinaryContext &BC) {
14671469
std::max<uint64_t>(TotalIndexBasedCandidates, 1))
14681470
<< "%\n";
14691471

1470-
(void)verifyProfile;
14711472
#ifndef NDEBUG
14721473
verifyProfile(BFs);
14731474
#endif

bolt/lib/Passes/ReorderAlgorithm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <random>
2121
#include <stack>
2222

23-
#undef DEBUG_TYPE
23+
#undef DEBUG_TYPE
2424
#define DEBUG_TYPE "bolt"
2525

2626
using namespace llvm;
@@ -425,7 +425,7 @@ void TSPReorderAlgorithm::reorderBasicBlocks(BinaryFunction &BF,
425425
}
426426

427427
std::vector<std::vector<int64_t>> DP;
428-
DP.resize(1 << N);
428+
DP.resize(static_cast<size_t>(1) << N);
429429
for (std::vector<int64_t> &Elmt : DP)
430430
Elmt.resize(N, -1);
431431

0 commit comments

Comments
 (0)