Skip to content

Commit f51d8b7

Browse files
committed
merge main into amd-staging
Change-Id: I6d4c003313e1de2a4e6be9ace450243926de06ee
2 parents 6a271f9 + c5a1732 commit f51d8b7

File tree

475 files changed

+16039
-8674
lines changed

Some content is hidden

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

475 files changed

+16039
-8674
lines changed

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

bolt/test/runtime/AArch64/instrumentation-ind-call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main() {
1414
/*
1515
REQUIRES: system-linux,bolt-runtime
1616
17-
RUN: %clang %cflags %s -o %t.exe -Wl,-q -nopie -fpie
17+
RUN: %clang %cflags %s -o %t.exe -Wl,-q -no-pie -fpie
1818
1919
RUN: llvm-bolt %t.exe --instrument --instrumentation-file=%t.fdata \
2020
RUN: -o %t.instrumented

clang-tools-extra/clang-tidy/modernize/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ add_clang_library(clangTidyModernizeModule
3939
UseNullptrCheck.cpp
4040
UseOverrideCheck.cpp
4141
UseStartsEndsWithCheck.cpp
42+
UseStdNumbersCheck.cpp
4243
UseStdPrintCheck.cpp
4344
UseTrailingReturnTypeCheck.cpp
4445
UseTransparentFunctorsCheck.cpp

clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "UseNullptrCheck.h"
4141
#include "UseOverrideCheck.h"
4242
#include "UseStartsEndsWithCheck.h"
43+
#include "UseStdNumbersCheck.h"
4344
#include "UseStdPrintCheck.h"
4445
#include "UseTrailingReturnTypeCheck.h"
4546
#include "UseTransparentFunctorsCheck.h"
@@ -69,6 +70,8 @@ class ModernizeModule : public ClangTidyModule {
6970
CheckFactories.registerCheck<PassByValueCheck>("modernize-pass-by-value");
7071
CheckFactories.registerCheck<UseStartsEndsWithCheck>(
7172
"modernize-use-starts-ends-with");
73+
CheckFactories.registerCheck<UseStdNumbersCheck>(
74+
"modernize-use-std-numbers");
7275
CheckFactories.registerCheck<UseStdPrintCheck>("modernize-use-std-print");
7376
CheckFactories.registerCheck<RawStringLiteralCheck>(
7477
"modernize-raw-string-literal");

0 commit comments

Comments
 (0)