Skip to content

Commit 7e2d9c3

Browse files
committed
Merge remote-tracking branch 'origin/main' into lv-find-min-max-index-tmp
2 parents 7710b71 + 4dc29b8 commit 7e2d9c3

File tree

309 files changed

+12586
-2167
lines changed

Some content is hidden

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

309 files changed

+12586
-2167
lines changed

bolt/lib/Passes/Inliner.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -491,32 +491,6 @@ bool Inliner::inlineCallsInFunction(BinaryFunction &Function) {
491491
}
492492
}
493493

494-
// AArch64 BTI:
495-
// If the callee has an indirect tailcall (BR), we would transform it to
496-
// an indirect call (BLR) in InlineCall. Because of this, we would have to
497-
// update the BTI at the target of the tailcall. However, these targets
498-
// are not known. Instead, we skip inlining blocks with indirect
499-
// tailcalls.
500-
auto HasIndirectTailCall = [&](const BinaryFunction &BF) -> bool {
501-
for (const auto &BB : BF) {
502-
for (const auto &II : BB) {
503-
if (BC.MIB->isIndirectBranch(II) && BC.MIB->isTailCall(II)) {
504-
return true;
505-
}
506-
}
507-
}
508-
return false;
509-
};
510-
511-
if (BC.isAArch64() && BC.usesBTI() &&
512-
HasIndirectTailCall(*TargetFunction)) {
513-
++InstIt;
514-
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: Skipping inlining block with tailcall"
515-
<< " in " << Function << " : " << BB->getName()
516-
<< " to keep BTIs consistent.\n");
517-
continue;
518-
}
519-
520494
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: inlining call to " << *TargetFunction
521495
<< " in " << Function << " : " << BB->getName()
522496
<< ". Count: " << BB->getKnownExecutionCount()

bolt/test/AArch64/inline-bti.s

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

clang-tools-extra/docs/clang-tidy/checks/bugprone/signal-handler.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ Options
4545
Selects which set of functions is considered as asynchronous-safe
4646
(and therefore allowed in signal handlers). It can be set to the following values:
4747

48-
``minimal``
48+
- `minimal`
4949
Selects a minimal set that is defined in the CERT SIG30-C rule.
5050
and includes functions ``abort()``, ``_Exit()``, ``quick_exit()`` and
5151
``signal()``.
52-
``POSIX``
52+
- `POSIX`
5353
Selects a larger set of functions that is listed in POSIX.1-2017 (see `this
5454
link
5555
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04_03>`_
@@ -94,4 +94,4 @@ Options
9494
The function ``quick_exit`` is not included in the POSIX list but it
9595
is included here in the set of safe functions.
9696

97-
The default value is ``POSIX``.
97+
The default value is `POSIX`.

clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ Example:
5151
on non-enum types where the compiler warnings may not be present.
5252

5353
.. seealso::
54-
The `CppCoreGuideline ES.79 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-default>`_
54+
The `CppCoreGuideline ES.79 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-default>`_
5555
provide guidelines on switch statements, including the recommendation to
5656
always provide a default case.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-capturing-lambda-coroutines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use-after-free errors and suggests avoiding captures or ensuring the lambda
88
closure object has a guaranteed lifetime.
99

1010
This check implements `CP.51
11-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-capture>`_
11+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rcoro-capture>`_
1212
from the C++ Core Guidelines.
1313

1414
Using coroutine lambdas with non-empty capture lists can be risky, as capturing

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Examples:
4444
};
4545

4646
This check implements `C.12
47-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-constref>`_
47+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rc-constref>`_
4848
from the C++ Core Guidelines.
4949

5050
Further reading:

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-do-while.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ condition is not checked prior to the first iteration.
99
This can lead to subtle bugs.
1010

1111
This check implements `ES.75
12-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-do>`_
12+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-do>`_
1313
from the C++ Core Guidelines.
1414

1515
Examples:

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cppcoreguidelines-avoid-non-const-global-variables
66
Finds non-const global variables as described in `I.2
77
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i2-avoid-non-const-global-variables>`_
88
of C++ Core Guidelines.
9-
As `R.6 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-global>`_
9+
As `R.6 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rr-global>`_
1010
of C++ Core Guidelines is a duplicate of rule `I.2
1111
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i2-avoid-non-const-global-variables>`_
1212
it also covers that rule.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-reference-coroutine-parameters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Examples:
1818
}
1919

2020
This check implements `CP.53
21-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-reference-parameters>`_
21+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rcoro-reference-parameters>`_
2222
from the C++ Core Guidelines.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/init-variables.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ value. These may lead to unexpected behavior if there is a code path that reads
88
the variable before assigning to it.
99

1010
This rule is part of the `Type safety (Type.5)
11-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-init>`_
12-
profile and `ES.20 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-always>`_
11+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#pro-type-init>`_
12+
profile and `ES.20 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-always>`_
1313
from the C++ Core Guidelines.
1414

1515
Only integers, booleans, floats, doubles and pointers are checked. The fix

0 commit comments

Comments
 (0)