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

Load/Store, masked set and counting operations #11

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

Conversation

mazimkhan
Copy link
Member

@mazimkhan mazimkhan commented Nov 18, 2024

Introduces:

  • variants of load and store operations including masked variants (MaskedLoadU, LoadHigher, StoreTruncated)
  • Counting functions to find information about the data in each lane of a vector (MaskedLeadingZeroCountOrZero, AllOnes, AllZeros)
  • Masked vector instantiation operations (SetOr, SetOrZero).

"OrZero" operations will return zero where the mask is false whereas standard masking returns the corresponding lane of a passed vector.

All introduced operations are implemented in generic_ops-inl.h and in arm_sve-inl.h where there is a performance gain to be made. Testing is also performed for all new 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
dependabot bot and others added 26 commits January 20, 2025 13:08
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.10.3 to 2.10.4.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@c95a14d...cb605e5)

---
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.4

PiperOrigin-RevId: 717528316
PiperOrigin-RevId: 717590393
--
fa07d18 by scuzqy <[email protected]>:

Resolve TODO in aligned_allocator

And updated corresponding test.
AllocateAligned was designed to take POD types only.

COPYBARA_INTEGRATE_REVIEW=google#2298 from scuzqy:AlignedAllocatorPOD fa07d18
PiperOrigin-RevId: 717822922
PiperOrigin-RevId: 720535765
PiperOrigin-RevId: 720561925
Remove OrZero suffixes for consistency
Drop duplication of generic implementation
Remove OrZero suffixes for consistency
Convert SqrtLower into MaskedSqrtOr
Add TODO comments about GetExponent to x86_512 and ppc_vsx
…t_promote_demote

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

PiperOrigin-RevId: 720957423
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
@wbb-ccl wbb-ccl force-pushed the cc_up_set_load_store_count_operations branch from c1f7768 to 6b90d90 Compare January 30, 2025 15:19
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.