[libcxx-commits] [libcxx] 0599863 - [libcxx] Fix pstl __init_ identifier after 9c4717a
Aaron Siddhartha Mondal via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 10 10:21:19 PDT 2023
Author: Aaron Siddhartha Mondal
Date: 2023-05-10T19:20:55+02:00
New Revision: 059986328c24c1b3588a9bde1d82d9ec41a0b0cb
URL: https://github.com/llvm/llvm-project/commit/059986328c24c1b3588a9bde1d82d9ec41a0b0cb
DIFF: https://github.com/llvm/llvm-project/commit/059986328c24c1b3588a9bde1d82d9ec41a0b0cb.diff
LOG: [libcxx] Fix pstl __init_ identifier after 9c4717a
Reviewed By: ldionne, #libc
Differential Revision: https://reviews.llvm.org/D150201
Added:
Modified:
libcxx/include/__pstl/internal/unseq_backend_simd.h
Removed:
################################################################################
diff --git a/libcxx/include/__pstl/internal/unseq_backend_simd.h b/libcxx/include/__pstl/internal/unseq_backend_simd.h
index 80e5424b2a6e6..9485805159573 100644
--- a/libcxx/include/__pstl/internal/unseq_backend_simd.h
+++ b/libcxx/include/__pstl/internal/unseq_backend_simd.h
@@ -513,11 +513,11 @@ __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result, _UnaryO
_CombinerType __combined_init{__init, &__binary_op};
_PSTL_PRAGMA_DECLARE_REDUCTION(__bin_op, _CombinerType)
- _PSTL_PRAGMA_SIMD_SCAN(__bin_op : __init_)
+ _PSTL_PRAGMA_SIMD_SCAN(__bin_op : __combined_init)
for (_Size __i = 0; __i < __n; ++__i)
{
__result[__i] = __combined_init.__value_;
- _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN(__init_)
+ _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN(__combined_init)
__combined_init.__value_ = __binary_op(__combined_init.__value_, __unary_op(__first[__i]));
}
return std::make_pair(__result + __n, __combined_init.__value_);
@@ -553,11 +553,11 @@ __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result, _UnaryO
_CombinerType __combined_init{__init, &__binary_op};
_PSTL_PRAGMA_DECLARE_REDUCTION(__bin_op, _CombinerType)
- _PSTL_PRAGMA_SIMD_SCAN(__bin_op : __init_)
+ _PSTL_PRAGMA_SIMD_SCAN(__bin_op : __combined_init)
for (_Size __i = 0; __i < __n; ++__i)
{
__combined_init.__value_ = __binary_op(__combined_init.__value_, __unary_op(__first[__i]));
- _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN(__init_)
+ _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN(__combined_init)
__result[__i] = __combined_init.__value_;
}
return std::make_pair(__result + __n, __combined_init.__value_);
More information about the libcxx-commits
mailing list