SuccessChanges

Summary

  1. [SyntaxTree] Expand support for `NestedNameSpecifier` (details)
  2. Correctly set CompilingPCH in PrecompilePreambleAction. (details)
  3. [gn build] Port e2d61ae5733 (details)
  4. [mlir][vector] Relax transfer_read/transfer_write restriction on memref operand (details)
  5. [PGO] Delete dead comdat renaming code related to GlobalAlias. NFC (details)
Commit f9500cc487573c55ea37b4ee6e9162d115753a48 by ecaldas
[SyntaxTree] Expand support for `NestedNameSpecifier`

Summary:
We want NestedNameSpecifier syntax nodes to be generally supported, not
only for `DeclRefExpr` and `DependentScopedDeclRefExpr`.

To achieve this we:
* Use the `RecursiveASTVisitor`'s API to traverse
`NestedNameSpecifierLoc`s and automatically create its syntax nodes
* Add links from the `NestedNameSpecifierLoc`s to their syntax nodes.

In this way, from any semantic construct that has a `NestedNameSpecifier`,
we implicitly generate its syntax node via RAV and we can easily access
this syntax node via the links we added.
The file was modifiedclang/include/clang/AST/NestedNameSpecifier.h
The file was modifiedclang/lib/Tooling/Syntax/BuildTree.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit e2d61ae5733316a14783b36c84b8e7681b0e3d59 by adamcz
Correctly set CompilingPCH in PrecompilePreambleAction.

This fixes a crash bug in clangd when used with modules. ASTWriter would
end up writing references to submodules into the PCH file, but upon
reading the submodules would not exists and
HeaderFileInfoTrait::ReadData would crash.

Differential Revision: https://reviews.llvm.org/D85532
The file was modifiedclang/lib/Frontend/PrecompiledPreamble.cpp
The file was modifiedclang-tools-extra/clangd/unittests/CMakeLists.txt
The file was addedclang-tools-extra/clangd/unittests/ModulesTests.cpp
The file was modifiedclang/unittests/Frontend/ASTUnitTest.cpp
Commit 1042f079ee658df896766bbbb84126501aa56221 by llvmgnsyncbot
[gn build] Port e2d61ae5733
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
Commit 68330ee0a977926d2f2857c62420b7729f4e45d3 by thomasraoux
[mlir][vector] Relax transfer_read/transfer_write restriction on memref operand

Relax the verifier for transfer_read/transfer_write operation so that it can
take a memref with a different element type than the vector being read/written.

This is based on the discourse discussion:
https://llvm.discourse.group/t/memref-cast/1514

Differential Revision: https://reviews.llvm.org/D85244
The file was modifiedmlir/test/Dialect/Vector/invalid.mlir
The file was modifiedmlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
The file was modifiedmlir/lib/Dialect/Vector/VectorOps.cpp
The file was modifiedmlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
The file was modifiedmlir/test/Dialect/Vector/ops.mlir
Commit 3b21a07fd7fd09618032db49f919cf917ef8afd7 by i
[PGO] Delete dead comdat renaming code related to GlobalAlias. NFC

A GlobalAlias is an address-taken user of its aliased function.
canRenameComdatFunc has excluded such cases.

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D85597
The file was modifiedllvm/test/Transforms/PGOProfile/comdat_rename.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp