SuccessChanges

Summary

  1. Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef (details)
  2. AST: Silence an instance of -Wsign-compare, NFC (details)
  3. Add comment to closing brace of anonymous namespace, NFC (details)
  4. Adapt lldb to a40db5502b2515a6f2f1676b5d7a655ae0f41179 (details)
  5. [VectorCombine] make load transform poison-safe (details)
  6. [libc++] NFCI: Return pointer instead of reference from __shared_ptr_emplace helper method (details)
  7. [libc++] Remove unnecessary static assertion in allocate_shared (details)
  8. [clang][IR] Add support for leaf attribute (details)
  9. [mlir] Add section page for Rationale docs. (details)
  10. [mlir] Fix opaque struct typedef in AsyncRuntime header (details)
Commit a40db5502b2515a6f2f1676b5d7a655ae0f41179 by Duncan P. N. Exon Smith
Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef

Migrate `HeaderSearch::LoadedModuleMaps` and a number of APIs over to
`FileEntryRef`. This should have no functionality change. Note that two
`FileEntryRef`s hash the same if they point at the same `FileEntry`.

Differential Revision: https://reviews.llvm.org/D92975
The file was modifiedclang-tools-extra/modularize/ModularizeUtilities.cpp
The file was modifiedclang/lib/Lex/HeaderSearch.cpp
The file was modifiedclang/include/clang/Lex/HeaderSearch.h
The file was modifiedclang/include/clang/Lex/ModuleMap.h
The file was modifiedclang/lib/Lex/ModuleMap.cpp
The file was modifiedclang/lib/Frontend/FrontendAction.cpp
Commit 90d056ceb97d5e3242a37dfc1c9f6bf11af9a053 by Duncan P. N. Exon Smith
AST: Silence an instance of -Wsign-compare, NFC

Looks this this was added by 68f53960e17d93c3a2727164dac4e54140bd98ba.
The file was modifiedclang/unittests/AST/ASTImporterTest.cpp
Commit b61f288a58e40430a739900ab74df61e711a2c55 by Duncan P. N. Exon Smith
Add comment to closing brace of anonymous namespace, NFC
The file was modifiedclang/unittests/Frontend/OutputStreamTest.cpp
Commit d636b881bb9214938973098a012fad453082c444 by Duncan P. N. Exon Smith
Adapt lldb to a40db5502b2515a6f2f1676b5d7a655ae0f41179

The bots just told me about a place in LLDB I missed in
a40db5502b2515a6f2f1676b5d7a655ae0f41179 when changing
`HeaderSearch::LoadedModuleMaps`, but I think this will fix it.
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
Commit d399f870b5a94b9dcc1817ed69fec88c325bb817 by spatel
[VectorCombine] make load transform poison-safe

As noted in D93229, the transform from scalar load to vector load
potentially leaks poison from the extra vector elements that are
being loaded.

We could use freeze here (and x86 codegen at least appears to be
the same either way), but we already have a shuffle in this logic
to optionally change the vector size, so let's allow that
instruction to serve both purposes.

Differential Revision: https://reviews.llvm.org/D93238
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
The file was modifiedllvm/test/Transforms/VectorCombine/X86/load.ll
Commit 3b7280f5e4aec935c7debf68e792c1aad2f7c5a7 by Louis Dionne
[libc++] NFCI: Return pointer instead of reference from __shared_ptr_emplace helper method

This makes __get_alloc consistent with __get_elem, and will reduce the
diff required to implement P0674R1.
The file was modifiedlibcxx/include/memory
Commit b3d1d1f4fff816423ea8c652d8d849aacc4c6ce8 by Louis Dionne
[libc++] Remove unnecessary static assertion in allocate_shared

Checking that `T` is constructible from `Args...` is technically not
required by the Standard, although any implementation will obviously
error out if that's not satisfied. However, this check is incompatible
with using Allocator construction in the control block (upcoming change
as part of implementing P0674), so I'm removing it now to reduce the
upcoming diff as much as possible.

Differential Revision: https://reviews.llvm.org/D93246
The file was removedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.protected.verify.cpp
The file was modifiedlibcxx/include/memory
The file was removedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.protected.verify.cpp
Commit 7c0e3a77bc43a9c4d05f68ffd4e84d0f75efbd91 by haowei
[clang][IR] Add support for leaf attribute

This patch adds support for leaf attribute as an optimization hint
in Clang/LLVM.

Differential Revision: https://reviews.llvm.org/D90275
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was modifiedllvm/lib/AsmParser/LLLexer.cpp
The file was modifiedclang/lib/CodeGen/CGCall.cpp
The file was modifiedclang/include/clang/Basic/Attr.td
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was modifiedclang/test/Misc/pragma-attribute-supported-attributes-list.test
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/lib/IR/Verifier.cpp
The file was addedclang/test/Sema/attr-leaf.c
The file was modifiedllvm/include/llvm/Bitcode/LLVMBitCodes.h
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedllvm/include/llvm/IR/Attributes.td
The file was modifiedllvm/test/Bitcode/attributes.ll
The file was modifiedllvm/lib/Bitcode/Writer/BitcodeWriter.cpp
The file was addedclang/test/CodeGen/attr-leaf.c
The file was modifiedllvm/lib/AsmParser/LLToken.h
The file was modifiedllvm/lib/IR/Attributes.cpp
The file was modifiedllvm/lib/Transforms/Utils/CodeExtractor.cpp
Commit ee43dcaad75b8de43b914459c14050dc2a5dbb16 by riddleriver
[mlir] Add section page for Rationale docs.

With a brief overview and summary of each of the Rationale docs.

Differential Revision: https://reviews.llvm.org/D93245
The file was addedmlir/docs/Rationale/_index.md
The file was modifiedmlir/docs/Rationale/UsageOfConst.md
Commit 0b510e79ce341af6a0ad951d52d516b833d5cefd by ezhulenev
[mlir] Fix opaque struct typedef in AsyncRuntime header

Differential Revision: https://reviews.llvm.org/D93250
The file was modifiedmlir/include/mlir/ExecutionEngine/AsyncRuntime.h