Skip to content

Commit 9f8bc08

Browse files
committed
merge main into amd-staging
Revert "[runtimes] Use LLVM libunwind from libc++abi by default (llvm#77687)" Change-Id: I20ac6cae4f6d4469a0c0de4157a3faf5463d1752
2 parents 671dc69 + 18734f6 commit 9f8bc08

File tree

370 files changed

+10258
-3532
lines changed

Some content is hidden

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

370 files changed

+10258
-3532
lines changed

bolt/lib/Rewrite/RewriteInstance.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4112,6 +4112,7 @@ void RewriteInstance::encodeBATSection() {
41124112
copyByteArray(BoltInfo), BoltInfo.size(),
41134113
/*Alignment=*/1,
41144114
/*IsReadOnly=*/true, ELF::SHT_NOTE);
4115+
outs() << "BOLT-INFO: BAT section size (bytes): " << BoltInfo.size() << '\n';
41154116
}
41164117

41174118
template <typename ELFShdrTy>

bolt/test/X86/bolt-address-translation.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# CHECK: BOLT: 3 out of 7 functions were overwritten.
3838
# CHECK: BOLT-INFO: Wrote 6 BAT maps
3939
# CHECK: BOLT-INFO: Wrote 3 BAT cold-to-hot entries
40+
# CHECK: BOLT-INFO: BAT section size (bytes): 1436
4041
#
4142
# usqrt mappings (hot part). We match against any key (left side containing
4243
# the bolted binary offsets) because BOLT may change where it puts instructions

clang-tools-extra/clangd/Selection.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,9 @@ const DeclContext &SelectionTree::Node::getDeclContext() const {
11131113
return *DC;
11141114
return *Current->getLexicalDeclContext();
11151115
}
1116+
if (const auto *LE = CurrentNode->ASTNode.get<LambdaExpr>())
1117+
if (CurrentNode != this)
1118+
return *LE->getCallOperator();
11161119
}
11171120
llvm_unreachable("A tree must always be rooted at TranslationUnitDecl.");
11181121
}

clang-tools-extra/clangd/unittests/SelectionTests.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,19 @@ TEST(SelectionTest, DeclContextIsLexical) {
880880
}
881881
}
882882

883+
TEST(SelectionTest, DeclContextLambda) {
884+
llvm::Annotations Test(R"cpp(
885+
void foo();
886+
auto lambda = [] {
887+
return $1^foo();
888+
};
889+
)cpp");
890+
auto AST = TestTU::withCode(Test.code()).build();
891+
auto ST = SelectionTree::createRight(AST.getASTContext(), AST.getTokens(),
892+
Test.point("1"), Test.point("1"));
893+
EXPECT_TRUE(ST.commonAncestor()->getDeclContext().isFunctionOrMethod());
894+
}
895+
883896
} // namespace
884897
} // namespace clangd
885898
} // namespace clang

clang-tools-extra/clangd/unittests/tweaks/AddUsingTests.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,29 @@ namespace foo { void fun(); }
309309
void foo::fun() {
310310
ff();
311311
})cpp"},
312+
// Inside a lambda.
313+
{
314+
R"cpp(
315+
namespace NS {
316+
void unrelated();
317+
void foo();
318+
}
319+
320+
auto L = [] {
321+
using NS::unrelated;
322+
NS::f^oo();
323+
};)cpp",
324+
R"cpp(
325+
namespace NS {
326+
void unrelated();
327+
void foo();
328+
}
329+
330+
auto L = [] {
331+
using NS::foo;using NS::unrelated;
332+
foo();
333+
};)cpp",
334+
},
312335
// If all other using are fully qualified, add ::
313336
{R"cpp(
314337
#include "test.hpp"

clang/.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Note that the readability-identifier-naming check is disabled, there are too
22
# many violations in the codebase and they create too much noise in clang-tidy
33
# results.
4-
Checks: '-readability-identifier-naming'
4+
Checks: '-readability-identifier-naming, -misc-include*'
55
InheritParentConfig: true

clang/docs/HLSL/FunctionCalls.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ undefined behavior in HLSL, and any use of the argument after the call is a use
144144
of an undefined value which may be illegal in the target (DXIL programs with
145145
used or potentially used ``undef`` or ``poison`` values fail validation).
146146

147-
Clang Implementation
147+
Clang Implementation
148148
====================
149149

150150
.. note::

clang/docs/InternalsManual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ the option appears on the command line, the argument value is simply copied.
931931
.. code-block:: text
932932
933933
def isysroot : JoinedOrSeparate<["-"], "isysroot">,
934-
Visibility<[ClangOption, CC1Option]>,
934+
Visibility<[ClangOption, CC1Option, FlangOption]>,
935935
MarshallingInfoString<HeaderSearchOpts<"Sysroot">, [{"/"}]>;
936936
937937
**List of Strings**

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,9 @@ Bug Fixes in This Version
775775
- Clang now emits correct source location for code-coverage regions in `if constexpr`
776776
and `if consteval` branches.
777777
Fixes (`#54419 <https://github.com/llvm/llvm-project/issues/54419>`_)
778-
778+
- Fix an issue where clang cannot find conversion function with template
779+
parameter when instantiation of template class.
780+
Fixes (`#77583 <https://github.com/llvm/llvm-project/issues/77583>`_)
779781

780782
Bug Fixes to Compiler Builtins
781783
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

clang/include/clang/Basic/LangOptions.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ ENUM_LANGOPT(SignReturnAddressKey, SignReturnAddressKeyKind, 1, SignReturnAddres
465465
"Key used for return address signing")
466466
LANGOPT(BranchTargetEnforcement, 1, 0, "Branch-target enforcement enabled")
467467
LANGOPT(BranchProtectionPAuthLR, 1, 0, "Use PC as a diversifier using PAuthLR NOP instructions.")
468+
LANGOPT(GuardedControlStack, 1, 0, "Guarded control stack enabled")
468469

469470
LANGOPT(SpeculativeLoadHardening, 1, 0, "Speculative load hardening enabled")
470471

0 commit comments

Comments
 (0)