[pstl][libc++] Provide uglified header names for interface headers
authorLouis Dionne <ldionne@apple.com>
Tue, 6 Aug 2019 21:11:24 +0000 (21:11 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 6 Aug 2019 21:11:24 +0000 (21:11 +0000)
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

libcxx/include/algorithm
libcxx/include/execution
libcxx/include/memory
libcxx/include/numeric
pstl/include/__pstl_algorithm [new file with mode: 0644]
pstl/include/__pstl_execution [new file with mode: 0644]
pstl/include/__pstl_memory [new file with mode: 0644]
pstl/include/__pstl_numeric [new file with mode: 0644]

index ac780af63d26c2fd2f1b1ba15270eb5f6e23631a..91cca5c053aa506628c02508af312167ee8f116e 100644 (file)
@@ -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
index c12615b77ea939437b48a5c3e3d43dbb10079b72..e25cb82d552c54ec1bb5b8fdcd6b1700f6914739 100644 (file)
@@ -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
index ff500f830394fdf0dbbd82b13f26c909b9056607..321d5fee12a8dcdfa28773afe33dbc0c372c2510 100644 (file)
@@ -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
index f5ac1410f485b375d18b96b8896082c96e7593eb..854bbfad65ac02a1493253451569a22d6108abb0 100644 (file)
@@ -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 (file)
index 0000000..79c1838
--- /dev/null
@@ -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 (file)
index 0000000..0e2cd44
--- /dev/null
@@ -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 (file)
index 0000000..12b7f5a
--- /dev/null
@@ -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 (file)
index 0000000..cf168ef
--- /dev/null
@@ -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 */