summaryrefslogtreecommitdiff
path: root/libcxx/utils
diff options
context:
space:
mode:
authorChristian Trott <crtrott@sandia.gov>2023-05-16 12:38:11 -0700
committerNikolas Klauser <n_klauser@apple.com>2023-05-16 14:30:36 -0700
commitfcaccf817d31d39096f7d0e7014cd6fe2fa3a683 (patch)
tree67d65b900fad74702b04de276fb2f24913cad5c6 /libcxx/utils
parent02a029f7fb5a3feae60759eab6a528880e341358 (diff)
downloadllvm-fcaccf817d31d39096f7d0e7014cd6fe2fa3a683.tar.gz
[libcxx] Add mdspan/extents
This patch adds std::extents. extents is one of the core classes used by std::mdspan. It describes a multi-dimensional index space with a mix of compile time and runtime sizes. Furthermore, it is templated on the index type used to describe the multi-dimensional index space. The class is designed to be highly optimizable in performance critical code sections, and is fully useable in constant expressions contexts. Testing of this class tends to be somewhat combinatorical, due to the large number of possible corner cases involved in situations where we have both runtime and compile time extents. To add to this, the class is designed to be interoperable (in particular constructible) from arguments which only need to be convertible to the index_type, but are otherwise arbitrary user types. For a larger discussion on the design of this class refer to: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p0009r18.html Co-authored-by: Damien L-G <dalg24@gmail.com> Reviewed By: ldionne, #libc Spies: libcxx-commits, H-G-Hristov, tschuett, philnik, arichardson, Mordante, crtrott Differential Revision: https://reviews.llvm.org/D148067
Diffstat (limited to 'libcxx/utils')
-rwxr-xr-xlibcxx/utils/generate_feature_test_macro_components.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index fb59395115e3..5ace82348dcb 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -495,6 +495,11 @@ feature_test_macros = [ add_version_header(x) for x in [
"headers": ["cmath"],
"unimplemented": True,
}, {
+ "name": "__cpp_lib_mdspan",
+ "values": { "c++2b": 202207 },
+ "headers": ["mdspan"],
+ "unimplemented": True,
+ }, {
"name": "__cpp_lib_memory_resource",
"values": { "c++17": 201603 },
"headers": ["memory_resource"],