Skip to content

Commit e406d5e

Browse files
authored
[libc++][pstl] Merge all frontend functions for the PSTL (#89219)
This is an intermediate step towards the PSTL dispatching mechanism rework. It will make it a lot easier to track the upcoming front-end changes. After the rework, there are basically no implementation details in the front-end, so the definition of each algorithm will become much simpler. Otherwise, it wouldn't make sense to define all the algorithms in the same header.
1 parent a5b7c36 commit e406d5e

23 files changed

+1462
-2145
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,8 @@ set(files
7272
__algorithm/partition_point.h
7373
__algorithm/pop_heap.h
7474
__algorithm/prev_permutation.h
75-
__algorithm/pstl_any_all_none_of.h
76-
__algorithm/pstl_copy.h
77-
__algorithm/pstl_count.h
78-
__algorithm/pstl_equal.h
79-
__algorithm/pstl_fill.h
80-
__algorithm/pstl_find.h
81-
__algorithm/pstl_for_each.h
75+
__algorithm/pstl.h
8276
__algorithm/pstl_frontend_dispatch.h
83-
__algorithm/pstl_generate.h
84-
__algorithm/pstl_is_partitioned.h
85-
__algorithm/pstl_merge.h
86-
__algorithm/pstl_move.h
87-
__algorithm/pstl_replace.h
88-
__algorithm/pstl_rotate_copy.h
89-
__algorithm/pstl_sort.h
90-
__algorithm/pstl_stable_sort.h
91-
__algorithm/pstl_transform.h
9277
__algorithm/push_heap.h
9378
__algorithm/ranges_adjacent_find.h
9479
__algorithm/ranges_all_of.h
@@ -577,8 +562,7 @@ set(files
577562
__numeric/iota.h
578563
__numeric/midpoint.h
579564
__numeric/partial_sum.h
580-
__numeric/pstl_reduce.h
581-
__numeric/pstl_transform_reduce.h
565+
__numeric/pstl.h
582566
__numeric/reduce.h
583567
__numeric/saturation_arithmetic.h
584568
__numeric/transform_exclusive_scan.h

libcxx/include/__algorithm/pstl.h

Lines changed: 1366 additions & 0 deletions
Large diffs are not rendered by default.

libcxx/include/__algorithm/pstl_any_all_none_of.h

Lines changed: 0 additions & 152 deletions
This file was deleted.

libcxx/include/__algorithm/pstl_copy.h

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)