Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / include / __algorithm / pstl_backends / cpu_backends / backend.h
blobea2210a4a7adbdb403f042f323472cc42dcf3978
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 //===----------------------------------------------------------------------===//
9 #ifndef _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
10 #define _LIBCPP___ALGORITHM_PSTL_BACKENDS_CPU_BACKEND_BACKEND_H
12 #include <__config>
13 #include <cstddef>
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
25 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
26 # pragma GCC system_header
27 #endif
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