Skip to content

Commit 44e6ac4

Browse files
committed
Merge branch 'main' into optimize_transpose
2 parents 9fcbe03 + d0e0d7f commit 44e6ac4

File tree

985 files changed

+260063
-9587
lines changed

Some content is hidden

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

985 files changed

+260063
-9587
lines changed

bolt/include/bolt/Passes/MarkRAStates.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@
1313
#define BOLT_PASSES_MARK_RA_STATES
1414

1515
#include "bolt/Passes/BinaryPasses.h"
16+
#include <mutex>
1617

1718
namespace llvm {
1819
namespace bolt {
1920

2021
class MarkRAStates : public BinaryFunctionPass {
22+
// setIgnored() is not thread-safe, but the pass is running on functions in
23+
// parallel.
24+
std::mutex IgnoreMutex;
25+
2126
public:
2227
explicit MarkRAStates() : BinaryFunctionPass(false) {}
2328

bolt/lib/Passes/MarkRAStates.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ bool MarkRAStates::runOnFunction(BinaryFunction &BF) {
4343
// Not all functions have .cfi_negate_ra_state in them. But if one does,
4444
// we expect psign/pauth instructions to have the hasNegateRAState
4545
// annotation.
46-
BF.setIgnored();
4746
BC.outs() << "BOLT-INFO: inconsistent RAStates in function "
4847
<< BF.getPrintName()
4948
<< ": ptr sign/auth inst without .cfi_negate_ra_state\n";
49+
std::lock_guard<std::mutex> Lock(IgnoreMutex);
50+
BF.setIgnored();
5051
return false;
5152
}
5253
}
@@ -67,6 +68,7 @@ bool MarkRAStates::runOnFunction(BinaryFunction &BF) {
6768
BC.outs() << "BOLT-INFO: inconsistent RAStates in function "
6869
<< BF.getPrintName()
6970
<< ": ptr signing inst encountered in Signed RA state\n";
71+
std::lock_guard<std::mutex> Lock(IgnoreMutex);
7072
BF.setIgnored();
7173
return false;
7274
}
@@ -80,6 +82,7 @@ bool MarkRAStates::runOnFunction(BinaryFunction &BF) {
8082
<< BF.getPrintName()
8183
<< ": ptr authenticating inst encountered in Unsigned RA "
8284
"state\n";
85+
std::lock_guard<std::mutex> Lock(IgnoreMutex);
8386
BF.setIgnored();
8487
return false;
8588
}

bolt/test/X86/dwarf4-ftypes-dwp-input-dwo-output.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# UNSUPPORTED: system-linux
21
; RUN: rm -rf %t
32
; RUN: mkdir %t
43
; RUN: cd %t

clang-tools-extra/clang-tidy/ClangTidyModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ClangTidyCheckFactories {
8585
/// them a prefixed name.
8686
class ClangTidyModule {
8787
public:
88-
virtual ~ClangTidyModule() {}
88+
virtual ~ClangTidyModule() = default;
8989

9090
/// Implement this function in order to register all \c CheckFactories
9191
/// belonging to this module.

clang-tools-extra/clang-tidy/ClangTidyOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ClangTidyOptionsProvider {
171171
static const char OptionsSourceTypeCheckCommandLineOption[];
172172
static const char OptionsSourceTypeConfigCommandLineOption[];
173173

174-
virtual ~ClangTidyOptionsProvider() {}
174+
virtual ~ClangTidyOptionsProvider() = default;
175175

176176
/// Returns global options, which are independent of the file.
177177
virtual const ClangTidyGlobalOptions &getGlobalOptions() = 0;

clang-tools-extra/clang-tidy/ExpandModularHeadersPPCallbacks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ExpandModularHeadersPPCallbacks : public PPCallbacks {
4444
ExpandModularHeadersPPCallbacks(
4545
CompilerInstance *CI,
4646
IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFS);
47-
~ExpandModularHeadersPPCallbacks();
47+
~ExpandModularHeadersPPCallbacks() override;
4848

4949
/// Returns the preprocessor that provides callbacks for the whole
5050
/// translation unit, including the main file, textual headers, and modular

clang-tools-extra/clang-tidy/abseil/DurationAdditionCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void DurationAdditionCheck::registerMatchers(MatchFinder *Finder) {
2121
Finder->addMatcher(
2222
binaryOperator(hasOperatorName("+"),
2323
hasEitherOperand(expr(ignoringParenImpCasts(
24-
callExpr(callee(functionDecl(TimeConversionFunction())
24+
callExpr(callee(functionDecl(timeConversionFunction())
2525
.bind("function_decl")))
2626
.bind("call")))))
2727
.bind("binop"),

clang-tools-extra/clang-tidy/abseil/DurationComparisonCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace clang::tidy::abseil {
1717

1818
void DurationComparisonCheck::registerMatchers(MatchFinder *Finder) {
1919
auto Matcher = expr(comparisonOperatorWithCallee(functionDecl(
20-
functionDecl(DurationConversionFunction())
20+
functionDecl(durationConversionFunction())
2121
.bind("function_decl"))))
2222
.bind("binop");
2323

clang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace clang::tidy::abseil {
1919

2020
void DurationConversionCastCheck::registerMatchers(MatchFinder *Finder) {
2121
auto CallMatcher = ignoringImpCasts(callExpr(
22-
callee(functionDecl(DurationConversionFunction()).bind("func_decl")),
22+
callee(functionDecl(durationConversionFunction()).bind("func_decl")),
2323
hasArgument(0, expr().bind("arg"))));
2424

2525
Finder->addMatcher(

clang-tools-extra/clang-tidy/abseil/DurationFactoryFloatCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static bool insideMacroDefinition(const MatchFinder::MatchResult &Result,
2828

2929
void DurationFactoryFloatCheck::registerMatchers(MatchFinder *Finder) {
3030
Finder->addMatcher(
31-
callExpr(callee(functionDecl(DurationFactoryFunction())),
31+
callExpr(callee(functionDecl(durationFactoryFunction())),
3232
hasArgument(0, anyOf(cxxStaticCastExpr(hasDestinationType(
3333
realFloatingPointType())),
3434
cStyleCastExpr(hasDestinationType(

0 commit comments

Comments
 (0)