aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-04-17 13:36:53 -0400
committerGitHub <noreply@github.com>2024-04-17 13:36:53 -0400
commitd423d80e560d8bf7ca493596d9f34a9e1f0eede7 (patch)
tree21079c6ae800ae14e6d9b0a842084ff78fb95256 /libcxx/src
parentda04e4afd3cae13581cac85688fbf10a5848655f (diff)
downloadllvm-d423d80e560d8bf7ca493596d9f34a9e1f0eede7.zip
llvm-d423d80e560d8bf7ca493596d9f34a9e1f0eede7.tar.gz
llvm-d423d80e560d8bf7ca493596d9f34a9e1f0eede7.tar.bz2
[libc++][pstl] Promote CPU backends to top-level backends (#88968)
This patch removes the two-level backend dispatching mechanism we had in the PSTL. Instead of selecting both a PSTL backend and a PSTL CPU backend, we now only select a top-level PSTL backend. This greatly simplifies the PSTL configuration layer. While this patch technically removes some flexibility from the PSTL configuration mechanism because CPU backends are not considered separately, it opens the door to a much more powerful configuration mechanism based on chained backends in a follow-up patch. This is a step towards overhauling the PSTL dispatching mechanism.
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/CMakeLists.txt2
-rw-r--r--libcxx/src/pstl/libdispatch.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
index a4a3fee..8b28d1b 100644
--- a/libcxx/src/CMakeLists.txt
+++ b/libcxx/src/CMakeLists.txt
@@ -327,7 +327,7 @@ set(LIBCXX_EXPERIMENTAL_SOURCES
experimental/keep.cpp
)
-if (LIBCXX_PSTL_CPU_BACKEND STREQUAL "libdispatch")
+if (LIBCXX_PSTL_BACKEND STREQUAL "libdispatch")
list(APPEND LIBCXX_EXPERIMENTAL_SOURCES
pstl/libdispatch.cpp
)
diff --git a/libcxx/src/pstl/libdispatch.cpp b/libcxx/src/pstl/libdispatch.cpp
index d997a9c..3dca702 100644
--- a/libcxx/src/pstl/libdispatch.cpp
+++ b/libcxx/src/pstl/libdispatch.cpp
@@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
#include <__algorithm/min.h>
-#include <__algorithm/pstl_backends/cpu_backends/libdispatch.h>
#include <__config>
+#include <__pstl/backends/libdispatch.h>
#include <dispatch/dispatch.h>
_LIBCPP_BEGIN_NAMESPACE_STD