timshen updated this revision to Diff 139043.
timshen added a comment.
Herald added a subscriber: christof.
Rebase.
https://reviews.llvm.org/D41843
Files:
libcxx/include/experimental/simd
libcxx/test/std/experimental/simd/simd.whereexpr/const_where_expression.pass.cpp
libcxx/test/std/exp
lichray added inline comments.
Comment at: libcxx/include/experimental/simd:2330
+ simd<_Tp, _Abi>& __v) noexcept {
+ return where_expression, simd<_Tp, _Abi>>(__m, __v);
+}
style: `return {__m, __v};`?
https://reviews.llvm.org/D41843
_
timshen created this revision.
timshen added reviewers: mclow.lists, EricWF.
Herald added a subscriber: sanjoy.
Where expressions have three cases:
*) const_where_expression, simd<...>>, we store two
references to the mask and the simd<> value.
*) const_where_expression, simd_mask<...>>, we store