SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [libcxx] Add deduction guides for shared_ptr and weak_ptr (details)
  2. tab completion for register read/write (details)
  3. Add a test for "clang --version". (details)
  4. [mlir] Drop forward-declaration of loop::TerminatorOp. (details)
  5. [libc++] Add tests for _LIBCPP_HAS_MERGED_TYPEINFO_NAMES_DEFAULT (details)
  6. [libc++][test] Adjust move_iterator tests to allow C++20 (details)
  7. [ModuloSchedule] Fix epilogue peeling with illegal phi. (details)
  8. [lldb/Reproducers] Make DoConnectRemote connect to the replay server. (details)
  9. [libc++] chrono: check _POSIX_TIMERS before using clock_gettime (details)
  10. [dsymutil] Avoid relocating DW_AT_call_pc twice (details)
  11. [libc++] NFC: Port type_info tests to C++03 (details)
  12. [YAMLVFSWriter][Tests] Fix YAMLVFSWriterTest (details)
  13. Reuse existing functionality in XcodeSDK::SDKSupportsModules (NFC) (details)
  14. [libc++] Fix ostream for complex numbers with fixed field width (details)
  15. [mlir][vulkan-runner] Remove duplicated/uncessary link libraries (details)
  16. [YAMLVFSWriter] Fix directory handling (details)
  17. [mlir] Remove unnecessary DEPENDS for MLIRMlirOptMain (details)
  18. [YAMLVFSWriter][Test][NFC] Add couple tests (details)
  19. Add an XcodeSDK::GetSDKTypeForTriple function (details)
  20. [lldb/Test] Add @skipIfReproducer to tests using lldb::FileSP. (details)
Commit 83564056d4b186c9fcf016cdbb388755009f7b5a by Louis Dionne
[libcxx] Add deduction guides for shared_ptr and weak_ptr

This patch adds deduction guides to <memory> to allow deducing
construction of shared_ptrs from unique_ptrs, and from weak_ptrs
and vice versa, as specified by C++17.

Differential Revision: https://reviews.llvm.org/D69603
The file was modifiedlibcxx/include/memory
The file was addedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/shared_ptr_deduction.pass.cpp
The file was addedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
Commit a14f4a7531f083a4820b5452808a1d003f1e88cc by Raphael Isemann
tab completion for register read/write

Summary:
1. Created a new common completion for the registers of the current context;
2. Apply this new common completion to the commands register read/write;
3. Unit test.

Reviewers: teemperor, JDevlieghere

Reviewed By: teemperor

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D79490
The file was modifiedlldb/source/Commands/CommandObjectRegister.cpp
The file was modifiedlldb/include/lldb/Interpreter/CommandCompletions.h
The file was modifiedlldb/test/API/functionalities/completion/TestCompletion.py
The file was modifiedlldb/source/Commands/CommandCompletions.cpp
Commit e42fee75b8107177de5b27cb461172d326cf6141 by thakis
Add a test for "clang --version".
The file was addedclang/test/Driver/version.c
Commit e41805fdab68b0509e083d5c22f455efafda09cf by zinenko
[mlir] Drop forward-declaration of loop::TerminatorOp.

This Op has been deleted in favor of loop::YieldOp, but the forward
declaration remain in the header.
The file was modifiedmlir/include/mlir/Dialect/LoopOps/LoopOps.h
Commit 31d41e38794f3e8e8859ccaabcc1f8d0c40a7a10 by Louis Dionne
[libc++] Add tests for _LIBCPP_HAS_MERGED_TYPEINFO_NAMES_DEFAULT

The issue on Apple platforms was fixed in 2464d8135e2a, but this commit
adds some tests to make sure we don't regress.

See https://llvm.org/PR45549.

Differential Revision: https://reviews.llvm.org/D78963
The file was addedlibcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.apple.compile.pass.cpp
The file was addedlibcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.merged.sh.cpp
The file was addedlibcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.unmerged.sh.cpp
The file was modifiedlibcxx/include/__config_site.in
Commit 8615ce246d1c3424cd5958592ba2779aa7d37535 by Casey
[libc++][test] Adjust move_iterator tests to allow C++20

These tests fail due to a couple of changes to `move_iterator` for C++20:

* `move_iterator<I>::operator++(int)` returns `void` in C++20 if `I` doesn't model `forward_iterator`.

* `move_iterator<I>::reference` is calculated in C++20, so `I` must actually have an `operator*() const`.

Differential Revision: https://reviews.llvm.org/D79343
The file was modifiedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.incr/post.pass.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp
Commit dc26dec331b85751324e4e19ae318d03229b1d1f by thomasraoux
[ModuloSchedule] Fix epilogue peeling with illegal phi.

When peeling out the epilogue we need to ignore illegal phis coming from stages
greater than the producer stage. Otherwise we end up with circular phi
dependencies.

Differential Revision: https://reviews.llvm.org/D79581
The file was addedllvm/test/CodeGen/Hexagon/swp-epilog-phi13.ll
The file was modifiedllvm/lib/CodeGen/ModuloSchedule.cpp
The file was modifiedllvm/include/llvm/CodeGen/ModuloSchedule.h
Commit 34a57dc972c2d16f176e47339a7c2c95cdc31e75 by Jonas Devlieghere
[lldb/Reproducers] Make DoConnectRemote connect to the replay server.

All entry points into ProcessGDBRemote that connect to the debug server
should connect to the replay server instead during reproducer replay.
This patch adds the necessary logic for ConnectRemote, which is
accessible from the SB API. This fixes active replay for
TestRecognizeBreakpoint.py as described in D78588.
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Commit 59b3102739c5988c9fc7ea77888de1bc8ce9c8ab by Louis Dionne
[libc++] chrono: check _POSIX_TIMERS before using clock_gettime

clock_gettime is documented to be available when _POSIX_TIMERS is
defined. Add a check for this.

Differential Revision: https://reviews.llvm.org/D79305
The file was modifiedlibcxx/src/filesystem/operations.cpp
The file was modifiedlibcxx/src/chrono.cpp
Commit 9f889125abbf8b99450cff7026041932228e9c95 by Vedant Kumar
[dsymutil] Avoid relocating DW_AT_call_pc twice

Summary:
Avoid relocating DW_AT_call_pc, e.g. when a call PC is equal to the
function's low_pc as is the case in the test:

```
__Z5func1v:
0000000100007f94        b       __Z5func2v
```

rdar://62952440

Reviewers: friss, JDevlieghere

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79536
The file was addedllvm/test/tools/dsymutil/ARM/call-pc-reloc.test
The file was modifiedllvm/lib/DWARFLinker/DWARFLinker.cpp
The file was addedllvm/test/tools/dsymutil/Inputs/private/tmp/call_pc/main.arm64
The file was addedllvm/test/tools/dsymutil/Inputs/private/tmp/call_pc/main.arm64.o
Commit eb252b328cb645496d9fb1eae85137fa8b60f9da by Louis Dionne
[libc++] NFC: Port type_info tests to C++03
The file was modifiedlibcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.unmerged.sh.cpp
The file was modifiedlibcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.merged.sh.cpp
Commit 5c145034e68898436abe65c34c73c51007a07ac4 by Jan Korous
[YAMLVFSWriter][Tests] Fix YAMLVFSWriterTest

Differential Revision: https://reviews.llvm.org/D79550
The file was modifiedllvm/unittests/Support/VirtualFileSystemTest.cpp
Commit 4356aa20bcea05b0f89c9977e41076552985f8c2 by Adrian Prantl
Reuse existing functionality in XcodeSDK::SDKSupportsModules (NFC)

Differential Revision: https://reviews.llvm.org/D79533
The file was modifiedlldb/source/Utility/XcodeSDK.cpp
Commit aa0b991dcf0510793a42a5b01aaf06a6c0892bcf by Louis Dionne
[libc++] Fix ostream for complex numbers with fixed field width

The ostream operator<< is currently broken for std::complex with
specified field widths.

This patch a partial revert of c3478eff7a65 (reviewed as D71214),
restoring the correct behavior.

Differential Revision: https://reviews.llvm.org/D78816
The file was modifiedlibcxx/include/complex
The file was modifiedlibcxx/test/std/numerics/complex.number/complex.ops/stream_output.pass.cpp
Commit c2414c20397a752643fea09ac14c9393807adf89 by antiagainst
[mlir][vulkan-runner] Remove duplicated/uncessary link libraries

vulkan-runtime-wrappers does not need MLIRSPIRVSerialization,
which is used by the ConvertGpuLaunchFuncToVulkanLaunchFunc pass
under the hood.

Differential Revision: https://reviews.llvm.org/D79577
The file was modifiedmlir/tools/mlir-vulkan-runner/CMakeLists.txt
Commit c0330bc00f528a1f031f507283e3371379714ede by Jan Korous
[YAMLVFSWriter] Fix directory handling

For empty directories (except the first one) we've been adding a file
with the same name as the directory to the result VFS mapping.

Differential Revision: https://reviews.llvm.org/D79551
The file was modifiedllvm/lib/Support/VirtualFileSystem.cpp
The file was modifiedllvm/unittests/Support/VirtualFileSystemTest.cpp
Commit 5db5002e652aa09016889759506f4806f5a29973 by antiagainst
[mlir] Remove unnecessary DEPENDS for MLIRMlirOptMain

https://github.com/llvm/llvm-project/commit/c296d2dc53d5c11c
fixes the dependency issue by turning LINK_LIBS to PUBLIC.
These explicit DEPENDS are not needed anymore.

Differential Revision: https://reviews.llvm.org/D79574
The file was modifiedmlir/tools/mlir-opt/CMakeLists.txt
Commit 7143d7925490e9123b1c93305700221584ba10c6 by Jan Korous
[YAMLVFSWriter][Test][NFC] Add couple tests

Differential Revision: https://reviews.llvm.org/D79552
The file was modifiedllvm/unittests/Support/VirtualFileSystemTest.cpp
Commit 6e95d51ecfab0801b75448b20bd3447645a1142a by Adrian Prantl
Add an XcodeSDK::GetSDKTypeForTriple function

This is something used in swift-lldb, but of general usefulness.

Differential Revision: https://reviews.llvm.org/D79538

<rdar://problem/62684906>
The file was modifiedlldb/source/Utility/XcodeSDK.cpp
The file was modifiedlldb/include/lldb/Utility/XcodeSDK.h
The file was modifiedlldb/unittests/Utility/XcodeSDKTest.cpp
Commit 8c0ff17c3bb44edf455a2964e6035f28be68c9f3 by Jonas Devlieghere
[lldb/Test] Add @skipIfReproducer to tests using lldb::FileSP.

lldb::FileSP is a typedef for std::shared_ptr<lldb_private::File> and
the reproducers cannot instrument a lldb_private constructor.
The file was modifiedlldb/test/API/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
The file was modifiedlldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
The file was modifiedlldb/test/API/python_api/file_handle/TestFileHandle.py