Skip to content

Commit 17a8e24

Browse files
committed
[libc++][PSTL] Remove _PSTL_HIDE_FROM_ABI_{PUSH,POP} macros
Reviewed By: ldionne, #libc Spies: libcxx-commits, miyuki Differential Revision: https://reviews.llvm.org/D149556
1 parent 5a49fee commit 17a8e24

21 files changed

+0
-87
lines changed

libcxx/include/__pstl/internal/algorithm_fwd.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include "pstl_config.h"
1818

19-
_PSTL_HIDE_FROM_ABI_PUSH
20-
2119
namespace __pstl {
2220
namespace __internal {
2321

@@ -1768,6 +1766,4 @@ bool __pattern_lexicographical_compare(
17681766
} // namespace __internal
17691767
} // namespace __pstl
17701768

1771-
_PSTL_HIDE_FROM_ABI_POP
1772-
17731769
#endif /* _PSTL_ALGORITHM_FWD_H */

libcxx/include/__pstl/internal/algorithm_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#include "pstl_config.h"
2525
#include "unseq_backend_simd.h"
2626

27-
_PSTL_HIDE_FROM_ABI_PUSH
28-
2927
namespace __pstl {
3028
namespace __internal {
3129

@@ -4339,6 +4337,4 @@ bool __pattern_lexicographical_compare(
43394337
} // namespace __internal
43404338
} // namespace __pstl
43414339

4342-
_PSTL_HIDE_FROM_ABI_POP
4343-
43444340
#endif /* _PSTL_ALGORITHM_IMPL_H */

libcxx/include/__pstl/internal/execution_defs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
#include "pstl_config.h"
1616

17-
_PSTL_HIDE_FROM_ABI_PUSH
18-
1917
namespace __pstl {
2018
namespace execution {
2119
inline namespace v1 {
@@ -73,6 +71,4 @@ struct __parallel_tag;
7371

7472
} // namespace __pstl
7573

76-
_PSTL_HIDE_FROM_ABI_POP
77-
7874
#endif /* _PSTL_EXECUTION_POLICY_DEFS_H */

libcxx/include/__pstl/internal/execution_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include "execution_defs.h"
1717
#include "pstl_config.h"
1818

19-
_PSTL_HIDE_FROM_ABI_PUSH
20-
2119
namespace __pstl {
2220
namespace __internal {
2321

@@ -88,6 +86,4 @@ __select_backend(__pstl::execution::parallel_unsequenced_policy, _IteratorTypes&
8886
} // namespace __internal
8987
} // namespace __pstl
9088

91-
_PSTL_HIDE_FROM_ABI_POP
92-
9389
#endif /* _PSTL_EXECUTION_IMPL_H */

libcxx/include/__pstl/internal/glue_algorithm_defs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include "execution_defs.h"
1717
#include "pstl_config.h"
1818

19-
_PSTL_HIDE_FROM_ABI_PUSH
20-
2119
namespace std {
2220

2321
// [alg.find.end]
@@ -695,6 +693,4 @@ __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> lexicog
695693

696694
} // namespace std
697695

698-
_PSTL_HIDE_FROM_ABI_POP
699-
700696
#endif /* _PSTL_GLUE_ALGORITHM_DEFS_H */

libcxx/include/__pstl/internal/glue_algorithm_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
#include "execution_impl.h"
2323

24-
_PSTL_HIDE_FROM_ABI_PUSH
25-
2624
namespace std {
2725

2826
// [alg.find.end]
@@ -1191,6 +1189,4 @@ __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> lexicog
11911189

11921190
} // namespace std
11931191

1194-
_PSTL_HIDE_FROM_ABI_POP
1195-
11961192
#endif /* _PSTL_GLUE_ALGORITHM_IMPL_H */

libcxx/include/__pstl/internal/glue_memory_defs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include "execution_defs.h"
1414
#include "pstl_config.h"
1515

16-
_PSTL_HIDE_FROM_ABI_PUSH
17-
1816
namespace std {
1917

2018
// [uninitialized.copy]
@@ -79,6 +77,4 @@ uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __fi
7977

8078
} // namespace std
8179

82-
_PSTL_HIDE_FROM_ABI_POP
83-
8480
#endif /* _PSTL_GLUE_MEMORY_DEFS_H */

libcxx/include/__pstl/internal/glue_memory_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
#include "execution_impl.h"
2020

21-
_PSTL_HIDE_FROM_ABI_PUSH
22-
2321
namespace std {
2422

2523
// [uninitialized.copy]
@@ -378,6 +376,4 @@ uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __fi
378376

379377
} // namespace std
380378

381-
_PSTL_HIDE_FROM_ABI_POP
382-
383379
#endif /* _PSTL_GLUE_MEMORY_IMPL_H */

libcxx/include/__pstl/internal/glue_numeric_defs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include "execution_defs.h"
1616
#include "pstl_config.h"
1717

18-
_PSTL_HIDE_FROM_ABI_PUSH
19-
2018
namespace std {
2119
// [reduce]
2220

@@ -174,6 +172,4 @@ __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardItera
174172

175173
} // namespace std
176174

177-
_PSTL_HIDE_FROM_ABI_POP
178-
179175
#endif /* _PSTL_GLUE_NUMERIC_DEFS_H */

libcxx/include/__pstl/internal/glue_numeric_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "numeric_fwd.h"
1919
#include "utils.h"
2020

21-
_PSTL_HIDE_FROM_ABI_PUSH
22-
2321
namespace std {
2422

2523
// [reduce]
@@ -319,6 +317,4 @@ __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardItera
319317

320318
} // namespace std
321319

322-
_PSTL_HIDE_FROM_ABI_POP
323-
324320
#endif /* _PSTL_GLUE_NUMERIC_IMPL_H_ */

libcxx/include/__pstl/internal/memory_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include "pstl_config.h"
1616
#include "unseq_backend_simd.h"
1717

18-
_PSTL_HIDE_FROM_ABI_PUSH
19-
2018
namespace __pstl {
2119
namespace __internal {
2220

@@ -105,6 +103,4 @@ _OutputIterator __brick_uninitialized_copy(
105103
} // namespace __internal
106104
} // namespace __pstl
107105

108-
_PSTL_HIDE_FROM_ABI_POP
109-
110106
#endif /* _PSTL_MEMORY_IMPL_H */

libcxx/include/__pstl/internal/numeric_fwd.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
#include "pstl_config.h"
1717

18-
_PSTL_HIDE_FROM_ABI_PUSH
19-
2018
namespace __pstl {
2119
namespace __internal {
2220

@@ -251,6 +249,4 @@ _OutputIterator __pattern_adjacent_difference(
251249
} // namespace __internal
252250
} // namespace __pstl
253251

254-
_PSTL_HIDE_FROM_ABI_POP
255-
256252
#endif /* _PSTL_NUMERIC_FWD_H */

libcxx/include/__pstl/internal/numeric_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "unseq_backend_simd.h"
2121
#include "algorithm_fwd.h"
2222

23-
_PSTL_HIDE_FROM_ABI_PUSH
24-
2523
namespace __pstl {
2624
namespace __internal {
2725

@@ -537,6 +535,4 @@ _RandomAccessIterator2 __pattern_adjacent_difference(
537535
} // namespace __internal
538536
} // namespace __pstl
539537

540-
_PSTL_HIDE_FROM_ABI_POP
541-
542538
#endif /* _PSTL_NUMERIC_IMPL_H */

libcxx/include/__pstl/internal/omp/util.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
# define _PSTL_PRAGMA(x) _Pragma(# x)
3232
#endif
3333

34-
_PSTL_HIDE_FROM_ABI_PUSH
35-
3634
namespace __pstl
3735
{
3836
namespace __omp_backend

libcxx/include/__pstl/internal/parallel_backend_serial.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include "pstl_config.h"
1818

19-
_PSTL_HIDE_FROM_ABI_PUSH
20-
2119
namespace __pstl
2220
{
2321
namespace __serial_backend
@@ -130,6 +128,4 @@ __parallel_invoke(__pstl::__internal::__serial_backend_tag, _ExecutionPolicy&&,
130128
} // namespace __serial_backend
131129
} // namespace __pstl
132130

133-
_PSTL_HIDE_FROM_ABI_POP
134-
135131
#endif /* _PSTL_PARALLEL_BACKEND_SERIAL_H */

libcxx/include/__pstl/internal/parallel_backend_tbb.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
# error Intel(R) Threading Building Blocks 2018 is required; older versions are not supported.
3131
#endif
3232

33-
_PSTL_HIDE_FROM_ABI_PUSH
34-
3533
namespace __pstl
3634
{
3735
namespace __tbb_backend
@@ -1291,6 +1289,4 @@ __parallel_invoke(__pstl::__internal::__tbb_backend_tag, _ExecutionPolicy&&, _F1
12911289
} // namespace __tbb_backend
12921290
} // namespace __pstl
12931291

1294-
_PSTL_HIDE_FROM_ABI_POP
1295-
12961292
#endif /* _PSTL_PARALLEL_BACKEND_TBB_H */

libcxx/include/__pstl/internal/parallel_backend_utils.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include "pstl_config.h"
1818

19-
_PSTL_HIDE_FROM_ABI_PUSH
20-
2119
namespace __pstl
2220
{
2321

@@ -258,6 +256,4 @@ __set_symmetric_difference_construct(_ForwardIterator1 __first1, _ForwardIterato
258256
} // namespace __utils
259257
} // namespace __pstl
260258

261-
_PSTL_HIDE_FROM_ABI_POP
262-
263259
#endif /* _PSTL_PARALLEL_BACKEND_UTILS_H */

libcxx/include/__pstl/internal/parallel_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
// This header defines the minimum set of parallel routines required to support Parallel STL,
1818
// implemented on top of Intel(R) Threading Building Blocks (Intel(R) TBB) library
1919

20-
_PSTL_HIDE_FROM_ABI_PUSH
21-
2220
namespace __pstl
2321
{
2422
namespace __internal
@@ -84,6 +82,4 @@ bool __parallel_or(_BackendTag __tag, _ExecutionPolicy&& __exec, _Index __first,
8482
} // namespace __internal
8583
} // namespace __pstl
8684

87-
_PSTL_HIDE_FROM_ABI_POP
88-
8985
#endif /* _PSTL_PARALLEL_IMPL_H */

libcxx/include/__pstl/internal/pstl_config.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@
4949
#define _PSTL_STRING(x) _PSTL_STRING_AUX(x)
5050
#define _PSTL_STRING_CONCAT(x, y) x #y
5151

52-
#ifdef _PSTL_HIDE_FROM_ABI_PER_TU
53-
# define _PSTL_HIDE_FROM_ABI_PUSH \
54-
_Pragma("clang attribute push(__attribute__((internal_linkage)), apply_to=any(function,record))")
55-
# define _PSTL_HIDE_FROM_ABI_POP _Pragma("clang attribute pop")
56-
#else
57-
# define _PSTL_HIDE_FROM_ABI_PUSH /* nothing */
58-
# define _PSTL_HIDE_FROM_ABI_POP /* nothing */
59-
#endif
60-
6152
// note that when ICC or Clang is in use, _PSTL_GCC_VERSION might not fully match
6253
// the actual GCC version on the system.
6354
#define _PSTL_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)

libcxx/include/__pstl/internal/unseq_backend_simd.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
// This header defines the minimum set of vector routines required
2020
// to support parallel STL.
2121

22-
_PSTL_HIDE_FROM_ABI_PUSH
23-
2422
namespace __pstl
2523
{
2624
namespace __unseq_backend
@@ -858,6 +856,4 @@ __simd_remove_if(_RandomAccessIterator __first, _DifferenceType __n, _UnaryPredi
858856
} // namespace __unseq_backend
859857
} // namespace __pstl
860858

861-
_PSTL_HIDE_FROM_ABI_POP
862-
863859
#endif /* _PSTL_UNSEQ_BACKEND_SIMD_H */

libcxx/include/__pstl/internal/utils.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include <new>
1616
#include <utility>
1717

18-
_PSTL_HIDE_FROM_ABI_PUSH
19-
2018
namespace __pstl {
2119
namespace __internal {
2220

@@ -137,6 +135,4 @@ _ForwardIterator __cmp_iterators_by_values(_ForwardIterator __a, _ForwardIterato
137135
} // namespace __internal
138136
} // namespace __pstl
139137

140-
_PSTL_HIDE_FROM_ABI_POP
141-
142138
#endif /* _PSTL_UTILS_H */

0 commit comments

Comments
 (0)