1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
10 #define _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
11 
12 #include <__config>
13 #include <cstddef>
14 
15 #if defined(_LIBCPP_PSTL_CPU_BACKEND_SERIAL)
16 #  include <__algorithm/pstl_backends/cpu_backends/serial.h>
17 #elif defined(_LIBCPP_PSTL_CPU_BACKEND_THREAD)
18 #  include <__algorithm/pstl_backends/cpu_backends/thread.h>
19 #elif defined(_LIBCPP_PSTL_CPU_BACKEND_LIBDISPATCH)
20 #  include <__algorithm/pstl_backends/cpu_backends/libdispatch.h>
21 #else
22 #  error "Invalid CPU backend choice"
23 #endif
24 
25 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
26 #  pragma GCC system_header
27 #endif
28 
29 #if _LIBCPP_STD_VER >= 17
30 
31 _LIBCPP_BEGIN_NAMESPACE_STD
32 
33 struct __cpu_backend_tag {};
34 
35 inline constexpr size_t __lane_size = 64;
36 
37 _LIBCPP_END_NAMESPACE_STD
38 
39 #endif // _LIBCPP_STD_VER >= 17
40 
41 #endif // _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
42