[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
This commit is contained in:
Louis Dionne 2019-08-06 21:11:24 +00:00
parent 40fde90193
commit 956892433f
8 changed files with 64 additions and 4 deletions

View 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

View 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

View 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

View 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

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */