SuccessChanges

Summary

  1. [X86] Support -march=sapphirerapids (details)
  2. PR37556: Don't diagnose conflicts between instantiated unqualified (details)
  3. [lldb] Don't depend on psutil in TestCompletion.py (details)
  4. [SyntaxTree] Extend the syntax tree dump to also cover `NodeRole` (details)
  5. [SyntaxTree] Update `Statement` tests to dump `NodeRole` (details)
  6. [SyntaxTree] Update `Expression` tests to dump `NodeRole` (details)
  7. [SyntaxTree] Update `Declaration` tests to dump `NodeRole` (details)
  8. [SyntaxTree] Update `Modifiable` tests to dump `NodeRole` and `unmodifiable` tag (details)
Commit e02d081f2b60b61eb60ef6a49b1a9f907e432d4c by freddy.ye
[X86] Support -march=sapphirerapids

Support -march=sapphirerapids for x86.
Compare with Icelake Server, it includes 14 more new features. They are
amxtile, amxint8, amxbf16, avx512bf16, avx512vp2intersect, cldemote,
enqcmd, movdir64b, movdiri, ptwrite, serialize, shstk, tsxldtrk, waitpkg.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D86503
The file was modifiedcompiler-rt/lib/builtins/cpu_model.c (diff)
The file was modifiedclang/test/Misc/target-invalid-cpu-note.c (diff)
The file was modifiedllvm/include/llvm/Support/X86TargetParser.def (diff)
The file was modifiedclang/test/CodeGen/target-builtin-noerror.c (diff)
The file was modifiedllvm/test/CodeGen/X86/cpus-intel.ll (diff)
The file was modifiedllvm/lib/Support/Host.cpp (diff)
The file was modifiedclang/test/CodeGen/attr-target-mv.c (diff)
The file was modifiedllvm/lib/Target/X86/X86.td (diff)
The file was modifiedclang/test/Preprocessor/predefined-arch-macros.c (diff)
The file was modifiedclang/test/Driver/x86-march.c (diff)
The file was modifiedllvm/lib/Support/X86TargetParser.cpp (diff)
The file was modifiedclang/lib/Basic/Targets/X86.cpp (diff)
The file was modifiedllvm/include/llvm/Support/X86TargetParser.h (diff)
Commit 04ba18563390ec87400fa068a9b4981b235ebaa6 by richard
PR37556: Don't diagnose conflicts between instantiated unqualified
friend declarations and declarations found in inline namespaces within
the target context.
The file was modifiedclang/lib/Sema/SemaTemplateInstantiateDecl.cpp (diff)
The file was modifiedclang/test/SemaTemplate/friend.cpp (diff)
Commit 2501e911a5a174fc1a07a2a1ac687a2bf0f05ef3 by Raphael Isemann
[lldb] Don't depend on psutil in TestCompletion.py

psutil isn't reall a dependency of the test suite so this shouldn't be
unconditionally be imported here. Instead just check for the process name
by looking for the "a.out" string to get the bots green again.
The file was modifiedlldb/test/API/functionalities/completion/TestCompletion.py (diff)
Commit c655d8081570336dda109502ed1e7a2eff1b26e2 by ecaldas
[SyntaxTree] Extend the syntax tree dump to also cover `NodeRole`

We should see `NodeRole` information in the dump because that exposes how the
accessors will behave.

Functional changes in the dump:
* Surround Leaf tokens with `'`
* Append `Node` dumps with `NodeRole` information, except for unknown roles
* Append marks to `Node` dumps, instead of prepending

Non-functional changes:
* `::dumpTokens(llvm::raw_ostream, ArrayRef<syntax::Token>, const
SourceManager &SM)` always received as parameter a `syntax::Token *`
pointing to `Leaf::token()`. Changed the function to
`dumpLeaf(llvm::raw_ostream, syntax::Leaf *, const SourceManager&)`
* `dumpTree` acted on a Node, rename to `dumpNode`

Differential Revision: https://reviews.llvm.org/D85330
The file was modifiedclang/lib/Tooling/Syntax/Tree.cpp (diff)
The file was modifiedclang/lib/Tooling/Syntax/BuildTree.cpp (diff)
The file was modifiedclang/unittests/Tooling/Syntax/TreeTestBase.cpp (diff)
The file was modifiedclang/include/clang/Tooling/Syntax/Tree.h (diff)
Commit 02a9f8a27b7f22e4a499c5511142bd2650defad1 by ecaldas
[SyntaxTree] Update `Statement` tests to dump `NodeRole`
The file was modifiedclang/unittests/Tooling/Syntax/BuildTreeTest.cpp (diff)
Commit 6118ce79a3d3832c8bcbd985fbd2bf0bee4ea8a2 by ecaldas
[SyntaxTree] Update `Expression` tests to dump `NodeRole`
The file was modifiedclang/unittests/Tooling/Syntax/BuildTreeTest.cpp (diff)
Commit 5c11c08d86f3ae45ec3b2b2766c48a3dc572d05e by ecaldas
[SyntaxTree] Update `Declaration` tests to dump `NodeRole`
The file was modifiedclang/unittests/Tooling/Syntax/BuildTreeTest.cpp (diff)
Commit be2bc7d4cef2edd66c7fb74b70adf62fc68754db by ecaldas
[SyntaxTree] Update `Modifiable` tests to dump `NodeRole` and `unmodifiable` tag
The file was modifiedclang/unittests/Tooling/Syntax/BuildTreeTest.cpp (diff)