[all-commits] [llvm/llvm-project] fc4876: [libc++][mdspan] Implement std::mdspan class

Christian Trott via All-commits all-commits at lists.llvm.org
Tue Jul 25 05:16:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc4876578131a55b38a9cf5d48698d92982a50e8
      https://github.com/llvm/llvm-project/commit/fc4876578131a55b38a9cf5d48698d92982a50e8
  Author: Christian Trott <crtrott at sandia.gov>
  Date:   2023-07-25 (Tue, 25 Jul 2023)

  Changed paths:
    M libcxx/docs/ReleaseNotes/17.rst
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__mdspan/extents.h
    M libcxx/include/__mdspan/layout_left.h
    M libcxx/include/__mdspan/layout_right.h
    A libcxx/include/__mdspan/mdspan.h
    M libcxx/include/mdspan
    M libcxx/include/module.modulemap.in
    M libcxx/modules/std/mdspan.cppm
    M libcxx/test/std/containers/views/mdspan/ConvertibleToIntegral.h
    M libcxx/test/std/containers/views/mdspan/extents/assert.obs.pass.cpp
    M libcxx/test/std/containers/views/mdspan/extents/ctor_from_array.pass.cpp
    M libcxx/test/std/containers/views/mdspan/extents/ctor_from_span.pass.cpp
    M libcxx/test/std/containers/views/mdspan/layout_left/assert.ctor.extents.pass.cpp
    M libcxx/test/std/containers/views/mdspan/layout_left/assert.index_operator.pass.cpp
    M libcxx/test/std/containers/views/mdspan/layout_left/assert.stride.pass.cpp
    M libcxx/test/std/containers/views/mdspan/layout_right/assert.ctor.extents.pass.cpp
    M libcxx/test/std/containers/views/mdspan/layout_right/assert.index_operator.pass.cpp
    M libcxx/test/std/containers/views/mdspan/layout_right/assert.stride.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/CustomTestAccessors.h
    A libcxx/test/std/containers/views/mdspan/mdspan/CustomTestLayouts.h
    A libcxx/test/std/containers/views/mdspan/mdspan/assert.conversion.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/assert.index_operator.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/assert.size.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/assign.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/conversion.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/conversion.verify.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.copy.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.default.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_array.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_extents.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_integers.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_map.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_map_acc.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_span.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/ctor.move.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/deduction.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/element_type.verify.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/extents.verify.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/index_operator.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/mapping.verify.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/move.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/properties.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/swap.pass.cpp
    A libcxx/test/std/containers/views/mdspan/mdspan/types.pass.cpp

  Log Message:
  -----------
  [libc++][mdspan] Implement std::mdspan class

This implements P0009 std::mdspan ((https://wg21.link/p0009)),
a multidimensional span with customization points for
layouts and data access.

Co-authored-by: Damien L-G <dalg24 at gmail.com>

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




More information about the All-commits mailing list