This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] implement <experimental/simd> mask reductions
Needs ReviewPublic

Authored by timshen on Jan 8 2018, 4:46 PM.

Details

Summary

Implemented reduce using "identity_value", with the following requirement from the caller:

binary_op(x, identity_value) == binary_op(identity_value, x) == x, for all x.

Event Timeline

timshen created this revision.Jan 8 2018, 4:46 PM
lichray added inline comments.Jan 18 2018, 4:29 PM
libcxx/include/experimental/simd
1665

Specified in terms of the transparent plus<>.

timshen edited the summary of this revision. (Show Details)Apr 5 2018, 11:48 AM
miyuki added a subscriber: miyuki.Jul 4 2018, 7:34 AM