UnstableChanges

Summary

  1. Revert "Revert "[libc++] ADL-proof <vector> by adding _VSTD:: qualification on calls."" (details)
  2. [Analysis] Use llvm::is_contained (NFC) (details)
  3. AMDGPU: Fix counting kernel arguments towards register usage (details)
  4. OpaquePtr: Make byval/sret types mandatory (details)
  5. [mac/arm] Fix clang/test/Sema/wchar.c on mac/arm hosts (details)
  6. [mac/arm] Fix test/Driver/darwin-sdk-version.c on arm macs (details)
  7. [VE][NFC] Update missing bulk update tests to use typed sret (details)
  8. [NFC][AMDGPU] Document kernel descriptor (details)
  9. GitHub Actions: Add job for automatically updating the main branch (details)
Commit 6e965df6054a4a6be53b3ba9ffa91ec7a0f9d072 by arthur.j.odwyer
Revert "Revert "[libc++] ADL-proof <vector> by adding _VSTD:: qualification on calls.""

This reverts commit 620adacf87a376ec536ccc66af59df5bb4dc3b38.

Fix: unsupport C++03 for the new test, define helpers before __swap_allocator

(1) Add _VSTD:: qualification to __swap_allocator.

(2) Add _VSTD:: qualification consistently to __to_address.

(3) Add some more missing _VSTD:: to <vector>, with a regression test.
This part is cleanup after d9a4f936d05.

Note that a vector whose allocator actually runs afoul of any of these ADL calls will
likely also run afoul of simple things like `v1 == v2` (which is also an ADL call).
But, still, libc++ should be consistent in qualifying function calls wherever possible.

Relevant blog post: https://quuxplusone.github.io/blog/2019/09/26/uglification-doesnt-stop-adl/

Differential Revision: https://reviews.llvm.org/D91708
The file was modifiedlibcxx/include/forward_list
The file was modifiedlibcxx/include/string
The file was modifiedlibcxx/include/__tree
The file was modifiedlibcxx/include/deque
The file was modifiedlibcxx/include/list
The file was modifiedlibcxx/include/memory
The file was modifiedlibcxx/include/__split_buffer
The file was modifiedlibcxx/include/vector
The file was modifiedlibcxx/include/__hash_table
The file was addedlibcxx/test/libcxx/containers/sequences/vector/robust_against_adl.pass.cpp
Commit 226beb494c863babb9d726634942eaebf7c60521 by kazu
[Analysis] Use llvm::is_contained (NFC)
The file was modifiedllvm/lib/Analysis/DomTreeUpdater.cpp
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp
Commit 79f75468b46d63f262ebda4544fd30ed8cb5a05a by Matthew.Arsenault
AMDGPU: Fix counting kernel arguments towards register usage

Also use DataLayout to get type size. Relying on the IR type size is
also pretty broken here, since this won't perfectly capture how types
are legalized.
The file was modifiedllvm/test/CodeGen/AMDGPU/code-object-v3.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Commit 41083267a9d7a006cf5821344480650becd03c3c by Matthew.Arsenault
OpaquePtr: Make byval/sret types mandatory
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/include/llvm/IR/Function.h
The file was addedllvm/test/Assembler/sret-parse-error0.ll
The file was modifiedllvm/lib/AsmParser/LLParser.h
The file was addedllvm/test/Assembler/byval-parse-error0.ll
Commit c47318491439642ed47cb9c9098333a8199fa54a by thakis
[mac/arm] Fix clang/test/Sema/wchar.c on mac/arm hosts

Part of PR46644.
The file was modifiedclang/test/Sema/wchar.c
Commit e91b2344ad7294c47d8b10b3a84e962bc3ed4160 by thakis
[mac/arm] Fix test/Driver/darwin-sdk-version.c on arm macs

Two invocations in this test used `-m64`, which on an arm mac means
arm64 in the triple, not x86_64.
The file was modifiedclang/test/Driver/darwin-sdk-version.c
Commit a2dc4ac86b8e5a64f5ac4185c43fef1cad58618f by marukawa
[VE][NFC] Update missing bulk update tests to use typed sret
The file was modifiedllvm/test/CodeGen/VE/Scalar/callstruct.ll
Commit 8605d3134c9745e775fcdb1118509234f5ce5860 by Tony.Tye
[NFC][AMDGPU] Document kernel descriptor

- Document that the kernel descriptor defined is for code object V3.
  Document that it also applies to earlier code object formats for CP.

- Document the deprecated bits in kernel descriptor.

Differential Revision: https://reviews.llvm.org/D91458
The file was modifiedllvm/docs/AMDGPUUsage.rst
Commit da886bf471e7a2b060c6cb07e2a4678598aee5b6 by tstellar
GitHub Actions: Add job for automatically updating the main branch

Differential Revision: https://reviews.llvm.org/D91554
The file was added.github/workflows/main-branch-sync.yml