1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
10 #define _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
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>
22 # error "Invalid CPU backend choice"
25 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
26 # pragma GCC system_header
29 #if _LIBCPP_STD_VER >= 17
31 _LIBCPP_BEGIN_NAMESPACE_STD
33 struct __cpu_backend_tag
{};
35 inline constexpr size_t __lane_size
= 64;
37 _LIBCPP_END_NAMESPACE_STD
39 #endif // _LIBCPP_STD_VER >= 17
41 #endif // _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H