SuccessChanges

Summary

  1. [analyzer] Fix static_cast on pointer-to-member handling (details)
  2. [analyzer] Updated comments to reflect D85817 (details)
  3. [mlir] Support repeated delayed registration of dialect interfaces (details)
  4. [clangd] Extract binding of typed->untyped LSP handlers to LSPBinder. NFC (details)
  5. [gn build] Port 5786f64a4ec8 (details)
  6. [mlir] Add error message on shape.broadcast verification failure (details)
  7. [clangd] Allow modules to bind LSP methods/notifications/commands (details)
  8. Recommit "[LTO] Use lto::backend for code generation." (details)
Commit 21daada95079a37c7ca259fabfc735b6d1b362ad by vsavchenko
[analyzer] Fix static_cast on pointer-to-member handling

This commit fixes bug #48739. The bug was caused by the way static_casts
on pointer-to-member caused the CXXBaseSpecifier list of a
MemberToPointer to grow instead of shrink.
The list is now grown by implicit casts and corresponding entries are
removed by static_casts. No-op static_casts cause no effect.

Reviewed By: vsavchenko

Differential Revision: https://reviews.llvm.org/D95877
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
The file was modifiedclang/test/Analysis/pointer-to-member.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
The file was addedclang/test/Analysis/reinterpret-cast-pointer-to-member.cpp
Commit f8d3f47e1fd09392aa30df83849b25acd8c59a25 by vsavchenko
[analyzer] Updated comments to reflect D85817

Changed DeclaratorDecl in comment to NamedDecl

Reviewed By: vsavchenko

Differential Revision: https://reviews.llvm.org/D95846
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
Commit 34ea608a473a5c67263c49255551ea348ffc1700 by zinenko
[mlir] Support repeated delayed registration of dialect interfaces

Dialects themselves do not support repeated addition of interfaces with the
same TypeID. However, in case of delayed registration, the registry may contain
such an interface, or have the same interface registered several times due to,
e.g., dependencies. Make sure we delayed registration does not attempt to add
an interface with the same TypeID more than once.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D96606
The file was modifiedmlir/include/mlir/IR/Dialect.h
The file was modifiedmlir/lib/IR/Dialect.cpp
The file was modifiedmlir/unittests/IR/DialectTest.cpp
Commit 5786f64a4ec806877f39fa0c28dcb90f9492b68c by sam.mccall
[clangd] Extract binding of typed->untyped LSP handlers to LSPBinder. NFC

The goal is to allow the LSP bindings of features to be defined outside
the ClangdLSPServer class, turning it into less of a monolith.

Differential Revision: https://reviews.llvm.org/D96544
The file was addedclang-tools-extra/clangd/LSPBinder.h
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.h
The file was addedclang-tools-extra/clangd/unittests/LSPBinderTests.cpp
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.cpp
The file was modifiedclang-tools-extra/clangd/unittests/CMakeLists.txt
Commit dfa6fdb0b672e63aff34c17b8f33a4ad9d08ec0c by llvmgnsyncbot
[gn build] Port 5786f64a4ec8
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
Commit 89d900b2a1c11582a0a4396921282aa8f365d901 by tpopp
[mlir] Add error message on shape.broadcast verification failure
The file was modifiedmlir/lib/Dialect/Shape/IR/Shape.cpp
The file was modifiedmlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
Commit 0b55ecce45d7cc79b614bcb91cd070ab257227fc by sam.mccall
[clangd] Allow modules to bind LSP methods/notifications/commands

Differential Revision: https://reviews.llvm.org/D96625
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.cpp
The file was modifiedclang-tools-extra/clangd/Module.h
The file was modifiedclang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp
Commit c70737ba1dea947350879a4f53a4a5513d6c9252 by flo
Recommit "[LTO] Use lto::backend for code generation."

This version of the patch includes a fix for the cfi failures.

(undoes the revert commit 7db390cc7738a9ba0ed7d4ca59ab6ea2e69c47e9)

It also undoes reverts of follow-up patches that also needed reverting
originally:

  * [LTO] Add option enable NewPM with LTOCodeGenerator.
    (undoes revert commit 0a17664b47c153aa26a0d31b4835f26375440ec6)

  * [LTOCodeGenerator] Use lto::Config for options (NFC)."
    (undoes revert commit b0a8e41cfff717ff067bf63412d6edb0280608cd)
The file was modifiedllvm/lib/LTO/LTOCodeGenerator.cpp
The file was modifiedllvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
The file was modifiedllvm/test/LTO/X86/disable-verify.ll
The file was modifiedllvm/test/LTO/X86/diagnostic-handler-remarks.ll
The file was modifiedllvm/test/Other/X86/lto-hot-cold-split.ll
The file was modifiedllvm/test/tools/lto/print-stats.ll
The file was modifiedllvm/tools/llvm-lto/llvm-lto.cpp

Summary

  1. [test-suite] Remove GCC-C-execute-eeprof-1 (details)
Commit bcda8fc240c5b22a9d1b40c22a30e6d02b82d8f2 by adhemerval.zanella
[test-suite] Remove GCC-C-execute-eeprof-1

Clang at i-O0 does not enable -finstrument-functions [1], so the
test fail with some configurations.

[1] https://bugs.llvm.org/show_bug.cgi?id=49143

Reviewed By: lenary

Differential Revision: https://reviews.llvm.org/D96521
The file was modifiedSingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt (diff)