[libcxx-commits] [PATCH] D150201: [libcxx] Fix pstl __init_ identifier after 9c4717a

Aaron Siddhartha Mondal via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 9 07:32:02 PDT 2023


aaronmondal created this revision.
aaronmondal added a reviewer: philnik.
Herald added a reviewer: ldionne.
Herald added a subscriber: miyuki.
Herald added a project: All.
aaronmondal requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150201

Files:
  libcxx/include/__pstl/internal/unseq_backend_simd.h


Index: libcxx/include/__pstl/internal/unseq_backend_simd.h
===================================================================
--- libcxx/include/__pstl/internal/unseq_backend_simd.h
+++ libcxx/include/__pstl/internal/unseq_backend_simd.h
@@ -513,11 +513,11 @@
     _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 @@
     _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_);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150201.520696.patch
Type: text/x-patch
Size: 1511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230509/fa645484/attachment.bin>


More information about the libcxx-commits mailing list