[all-commits] [llvm/llvm-project] d761fe: [libc++] Add a missing assertion in std::span's co...

h-vetinari via All-commits all-commits at lists.llvm.org
Thu Aug 25 00:40:20 PDT 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: d761fe6ef1ae54df16535acb9f04be2225fdf269
      https://github.com/llvm/llvm-project/commit/d761fe6ef1ae54df16535acb9f04be2225fdf269
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M libcxx/include/span
    A libcxx/test/libcxx/containers/views/views.span/span.cons/assert.iter_sent.pass.cpp
    A libcxx/test/libcxx/containers/views/views.span/span.cons/assert.iter_size.pass.cpp
    A libcxx/test/libcxx/containers/views/views.span/span.cons/assert.other_span.pass.cpp
    A libcxx/test/libcxx/containers/views/views.span/span.cons/assert.range.pass.cpp

  Log Message:
  -----------
  [libc++] Add a missing assertion in std::span's constructor

Also, add missing tests for assertions in span constructors. Now I
believe that all of std::span's API should be hardened, and all the
assertions should have a corresponding test.

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

(cherry picked from commit 8c6319e30a357fb9b25db09b6f5fc9cf3e7c4aab)


  Commit: 0cc033e333261bb4b4f7e9689c5fafdc5cc65c23
      https://github.com/llvm/llvm-project/commit/0cc033e333261bb4b4f7e9689c5fafdc5cc65c23
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M llvm/cmake/modules/LLVMDistributionSupport.cmake
    M llvm/runtimes/CMakeLists.txt

  Log Message:
  -----------
  [runtimes] Handle interface targets in runtimes distribution components

As reported in [1], cxx-headers is not a valid distribution target
because it is an interface target in CMake. This breaks the most
basic MultiDistributionExample of the runtimes build.

This patch handles interface targets by getting rid of the assumption
that all distribution components have a target associated to them. It
is valid for a distribution component to only have a `install-FOO`
target.

In the case where only `cxx-headers` is provided as a distribution
component, `ninja toolchain-distribution` will not build anything
after this patch, since there is effectively nothing to build for
the `cxx-headers` target. However, running `ninja install-toolchain-distribution`
will build everything, as expected.

[1]: https://discord.com/channels/636084430946959380/636732894974312448/1010013287464828968

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

(cherry picked from commit 5905e699342fd476d7eb9e35db5d84248a7e9156)


  Commit: 427e1ea3e7dea96b142035b3fb9fbe9ea3768763
      https://github.com/llvm/llvm-project/commit/427e1ea3e7dea96b142035b3fb9fbe9ea3768763
  Author: Petr Hosek <phosek at google.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M llvm/docs/CommandGuide/lit.rst
    M llvm/utils/lit/lit/cl_arguments.py

  Log Message:
  -----------
  [lit] Support reading arguments from a file

This allows reading arguments from file using the response file syntax.
We would like to use this in the LLVM build to pass test suites from
subbuilds.

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

(cherry picked from commit b52820edec6f3d95edef7859a56ef30878b08382)


  Commit: 3a481d4491b7a63008183f0c0fe689bcbb4ec624
      https://github.com/llvm/llvm-project/commit/3a481d4491b7a63008183f0c0fe689bcbb4ec624
  Author: Petr Hosek <phosek at google.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M llvm/runtimes/CMakeLists.txt
    M runtimes/CMakeLists.txt
    R runtimes/Tests.cmake.in

  Log Message:
  -----------
  [runtimes] Use a response file for runtimes test suites

We don't know which test suites are going to be included by runtimes
builds so we cannot include those before running the sub-build, but
that's not possible during the LLVM build configuration. We instead use
a response file that's populated by the runtimes build as a level of
indirection.

This addresses the issue described in:
https://discourse.llvm.org/t/cmake-regeneration-is-broken/62788

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

(cherry picked from commit 992e10a3fce41255e4b11782f51d0f4b26dca14d)


  Commit: fe3ff3806f39b70534fac95cc71cb2a0711c3e0d
      https://github.com/llvm/llvm-project/commit/fe3ff3806f39b70534fac95cc71cb2a0711c3e0d
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/X86/pr57283.ll

  Log Message:
  -----------
  [DAG] MatchRotate - bail if we fail to match a shl/srl pair

extractShiftForRotate may fail to return canonicalized shifts due to constant folding or other simplification that can occur in getNode()

Fixes Issue #57283

(cherry picked from commit e624f8a3bb88075493dec521408993ea0ef7bde0)


  Commit: 5768325f065b9383228e99805c87db79a6828bfc
      https://github.com/llvm/llvm-project/commit/5768325f065b9383228e99805c87db79a6828bfc
  Author: H. Vetinari <h.vetinari at gmx.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/docs/ReleaseNotes.rst
    M clang/tools/libclang/CMakeLists.txt
    R clang/tools/libclang/libclang.exports
    A clang/tools/libclang/libclang.map
    A clang/tools/libclang/linker-script-to-export-list.py

  Log Message:
  -----------
  SONAME introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

This reverts commit bc39d7bdd4977a953b2e102f8f7eb479ad78984e.

rename CLANG_SONAME to LIBCLANG_SOVERSION

[clang][cmake] introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

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


Compare: https://github.com/llvm/llvm-project/compare/12f27d8bef93...5768325f065b


More information about the All-commits mailing list