summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-08-06 21:11:24 +0000
committerLouis Dionne <ldionne@apple.com>2019-08-06 21:11:24 +0000
commit956892433f7c0ae4520232b07d442fedbcc14cb2 (patch)
tree53f3c88cab9f650348b9dc74a5aa2bdb1444009a
parent40fde901932726518feb24391138e65b093b7a15 (diff)
downloadbcm5719-llvm-956892433f7c0ae4520232b07d442fedbcc14cb2.tar.gz
bcm5719-llvm-956892433f7c0ae4520232b07d442fedbcc14cb2.zip
[pstl][libc++] Provide uglified header names for interface headers
For the few (currently four) headers that make up the PSTL's interface to other Standard Libraries, provide a stable uglified header file that can be included by those Standard Libraries. We can then more easily change the internal organization of the PSTL without having to change the integration with Standard Libraries. llvm-svn: 368088
-rw-r--r--libcxx/include/algorithm2
-rw-r--r--libcxx/include/execution2
-rw-r--r--libcxx/include/memory2
-rw-r--r--libcxx/include/numeric2
-rw-r--r--pstl/include/__pstl_algorithm15
-rw-r--r--pstl/include/__pstl_execution15
-rw-r--r--pstl/include/__pstl_memory15
-rw-r--r--pstl/include/__pstl_numeric15
8 files changed, 64 insertions, 4 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index ac780af63d2..91cca5c053a 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -5679,7 +5679,7 @@ _LIBCPP_END_NAMESPACE_STD
_LIBCPP_POP_MACROS
#if defined(_LIBCPP_HAS_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
-# include <pstl/internal/glue_algorithm_impl.h>
+# include <__pstl_algorithm>
#endif
#endif // _LIBCPP_ALGORITHM
diff --git a/libcxx/include/execution b/libcxx/include/execution
index c12615b77ea..e25cb82d552 100644
--- a/libcxx/include/execution
+++ b/libcxx/include/execution
@@ -13,7 +13,7 @@
#include <__config>
#if defined(_LIBCPP_HAS_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
-# include <pstl/internal/glue_execution_defs.h>
+# include <__pstl_execution>
#endif
#endif // _LIBCPP_EXECUTION
diff --git a/libcxx/include/memory b/libcxx/include/memory
index ff500f83039..321d5fee12a 100644
--- a/libcxx/include/memory
+++ b/libcxx/include/memory
@@ -5591,7 +5591,7 @@ _LIBCPP_END_NAMESPACE_STD
_LIBCPP_POP_MACROS
#if defined(_LIBCPP_HAS_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
-# include <pstl/internal/glue_memory_impl.h>
+# include <__pstl_memory>
#endif
#endif // _LIBCPP_MEMORY
diff --git a/libcxx/include/numeric b/libcxx/include/numeric
index f5ac1410f48..854bbfad65a 100644
--- a/libcxx/include/numeric
+++ b/libcxx/include/numeric
@@ -587,7 +587,7 @@ _LIBCPP_END_NAMESPACE_STD
_LIBCPP_POP_MACROS
#if defined(_LIBCPP_HAS_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
-# include <pstl/internal/glue_numeric_impl.h>
+# include <__pstl_numeric>
#endif
#endif // _LIBCPP_NUMERIC
diff --git a/pstl/include/__pstl_algorithm b/pstl/include/__pstl_algorithm
new file mode 100644
index 00000000000..79c18385c5a
--- /dev/null
+++ b/pstl/include/__pstl_algorithm
@@ -0,0 +1,15 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __PSTL_ALGORITHM
+#define __PSTL_ALGORITHM
+
+#include <pstl/internal/glue_algorithm_impl.h>
+
+#endif /* __PSTL_ALGORITHM */
diff --git a/pstl/include/__pstl_execution b/pstl/include/__pstl_execution
new file mode 100644
index 00000000000..0e2cd44561c
--- /dev/null
+++ b/pstl/include/__pstl_execution
@@ -0,0 +1,15 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __PSTL_EXECUTION
+#define __PSTL_EXECUTION
+
+#include <pstl/internal/glue_execution_defs.h>
+
+#endif /* __PSTL_EXECUTION */
diff --git a/pstl/include/__pstl_memory b/pstl/include/__pstl_memory
new file mode 100644
index 00000000000..12b7f5aa3c0
--- /dev/null
+++ b/pstl/include/__pstl_memory
@@ -0,0 +1,15 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __PSTL_MEMORY
+#define __PSTL_MEMORY
+
+#include <pstl/internal/glue_memory_impl.h>
+
+#endif /* __PSTL_MEMORY */
diff --git a/pstl/include/__pstl_numeric b/pstl/include/__pstl_numeric
new file mode 100644
index 00000000000..cf168ef7053
--- /dev/null
+++ b/pstl/include/__pstl_numeric
@@ -0,0 +1,15 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __PSTL_NUMERIC
+#define __PSTL_NUMERIC
+
+#include <pstl/internal/glue_numeric_impl.h>
+
+#endif /* __PSTL_NUMERIC */
OpenPOWER on IntegriCloud