Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiShift, Masked shift and masked interleave #12

Open
wants to merge 106 commits into
base: master
Choose a base branch
from

Conversation

mazimkhan
Copy link
Member

@mazimkhan mazimkhan commented Nov 18, 2024

Introduces the following operations for generic_ops-inl.h and arm_sve-inl.h where the use of sve intrinsics will provide a performance gain:

  • MultiShift - An arbitrary set of shifts performed on each byte in each 64-bit wide lane of a vector. A fuller description can be found in g3doc/quick_reference.md.
  • Masked shifts - shifting operations where a mask is applied for alternative behaviour where the mask is false.
  • Masked interleave operations which interleave either the even or odd elements of the two input vectors, unless the mask is false for a given lane. In this case, the lane is set to zero.

Tests have been introduced for all the listed operations.

malaterre and others added 30 commits May 30, 2024 13:57
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.10.1 to 2.10.2.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@91182cc...0080882)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…step-security/harden-runner-2.10.2

PiperOrigin-RevId: 697981775
PiperOrigin-RevId: 698357330
PiperOrigin-RevId: 698685120
Also reduce #if in mainline by factoring into helper functions, share code between Linux and FreeBSD
Use anon namespace instead of static

PiperOrigin-RevId: 699906189
PiperOrigin-RevId: 699936076
The test passes with the most recent clang.

PiperOrigin-RevId: 700385250
Also split mask_test into mask_set_test,
remove unused overload in scalar,
modernize overloads (SFINAE instead of type tags).

PiperOrigin-RevId: 700701299
Also split mask_test into mask_set_test,
remove unused overload in scalar,
modernize overloads (SFINAE instead of type tags).

PiperOrigin-RevId: 700938851
Provide DFromM on all targets except SVE/RVV.
Also split mask_test into mask_set_test,
remove unused overload in scalar,
modernize overloads (SFINAE instead of type tags).
arm_sve required moving some sections earlier before their first usage.

PiperOrigin-RevId: 701919058
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@0c45773...1bd1e32)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…actions/cache-4.2.0

PiperOrigin-RevId: 703468488
PiperOrigin-RevId: 705134221
PiperOrigin-RevId: 706764322
wbb-ccl and others added 21 commits January 28, 2025 17:01
…t_promote_demote

PiperOrigin-RevId: 720897646
Remove MulLower
Use MaskedMulOr instead
Replace MulAddLower with MaskedMulAddOr
…d_arithmetic

PiperOrigin-RevId: 720957423
Fix docs for masked floating-point classification
Rename MaskedComp* ops to Masked*
Remove redundant wrapper functions
Rename SetOr* ops for consistency
Rename AllOnes/AllZeros to AllBits1/0
Remove MaskedLoadU, this is covered by MaskedLoad
Rename LowerHigher to InsertIntoUpper
Rework StoreTruncated, rename to TruncateStore
Rename macro arg
Avoid full-length load in LoadHigher
Optimise AllBits1
That allows using `using` without extra `#if` guards.
`static_assert` disallows instantiation of this template.

PiperOrigin-RevId: 721414731
…ad_store_count_operations

PiperOrigin-RevId: 721470975
@wbb-ccl wbb-ccl force-pushed the cc_up_shift_and_interleave branch from 70d6581 to c4a44dd Compare January 31, 2025 11:01
copybara-github and others added 4 commits January 31, 2025 03:40
Remove OrZero suffixes
Remove masked interleaves. Will be in a future PR with x86 specialisations
Correct template naming
Correct multishift header comment
Optimise MultiShift
Add x86 TODOs for multishift
Improve MultiShift docs
@wbb-ccl wbb-ccl force-pushed the cc_up_shift_and_interleave branch from 37e7368 to 1e907b0 Compare January 31, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.