Warning, /include/c++/v1/__cxx03/experimental/simd is written in an unsupported language. File is not indexed.
0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009
0010 #ifndef _LIBCPP___CXX03_EXPERIMENTAL_SIMD
0011 #define _LIBCPP___CXX03_EXPERIMENTAL_SIMD
0012
0013 /*
0014 experimental/simd synopsis
0015
0016 namespace std::experimental {
0017 inline namespace parallelism_v2 {
0018 namespace simd_abi {
0019 using scalar = see below;
0020 template<int N> using fixed_size = see below;
0021 template<class T> inline constexpr int max_fixed_size = implementation-defined;
0022 template<class T> using compatible = implementation-defined;
0023 template<class T> using native = implementation-defined;
0024
0025 template<class T, size_t N, class... Abis> struct deduce { using type = see below; };
0026 template<class T, size_t N, class... Abis> using deduce_t =
0027 typename deduce<T, N, Abis...>::type;
0028 } // namespace simd_abi
0029
0030 // class template simd [simd.class]
0031 template <class T, class Abi = simd_abi::compatible<T>> class simd;
0032 template <class T> using native_simd = simd<T, simd_abi::native<T>>;
0033 template <class T, int N> using fixed_size_simd = simd<T, simd_abi::fixed_size<N>>;
0034
0035 // class template simd_mask [simd.mask.class]
0036 template <class T, class Abi = simd_abi::compatible<T>> class simd_mask;
0037 template <class T> using native_simd_mask = simd_mask<T, simd_abi::native<T>>;
0038 template <class T, int N> using fixed_size_simd_mask = simd_mask<T, simd_abi::fixed_size<N>>;
0039
0040 // memory alignment
0041 struct element_aligned_tag {};
0042 struct vector_aligned_tag {};
0043 template <size_t> struct overaligned_tag {};
0044 inline constexpr element_aligned_tag element_aligned{};
0045 inline constexpr vector_aligned_tag vector_aligned{};
0046 template <size_t N> inline constexpr overaligned_tag<N> overaligned{};
0047
0048 // traits [simd.traits]
0049 template<class T> struct is_abi_tag;
0050 template<class T> inline constexpr bool is_abi_tag_v = is_abi_tag<T>::value;
0051
0052 template <class T> struct is_simd;
0053 template <class T> inline constexpr bool is_simd_v = is_simd<T>::value;
0054
0055 template <class T> struct is_simd_mask;
0056 template <class T> inline constexpr bool is_simd_mask_v = is_simd_mask<T>::value;
0057
0058 template<class T> struct is_simd_flag_type;
0059 template<class T> inline constexpr bool is_simd_flag_type_v = is_simd_flag_type<T>::value;
0060
0061 template<class T, class Abi = simd_abi::compatible<T>> struct simd_size;
0062 template<class T, class Abi = simd_abi::compatible<T>>
0063 inline constexpr size_t simd_size_v = simd_size<T,Abi>::value;
0064
0065 template<class T, class U = typename T::value_type> struct memory_alignment;
0066 template<class T, class U = typename T::value_type>
0067 inline constexpr size_t memory_alignment_v = memory_alignment<T,U>::value;
0068
0069 } // namespace parallelism_v2
0070 } // namespace std::experimental
0071
0072 */
0073
0074 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0075 # pragma GCC system_header
0076 #endif
0077
0078 #include <__cxx03/experimental/__config>
0079 #include <__cxx03/experimental/__simd/aligned_tag.h>
0080 #include <__cxx03/experimental/__simd/declaration.h>
0081 #include <__cxx03/experimental/__simd/reference.h>
0082 #include <__cxx03/experimental/__simd/scalar.h>
0083 #include <__cxx03/experimental/__simd/simd.h>
0084 #include <__cxx03/experimental/__simd/simd_mask.h>
0085 #include <__cxx03/experimental/__simd/traits.h>
0086 #include <__cxx03/experimental/__simd/vec_ext.h>
0087
0088 #endif /* _LIBCPP___CXX03_EXPERIMENTAL_SIMD */