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

Reduce scope of VLA vector API #472

Closed
wants to merge 2 commits into from
Closed

Reduce scope of VLA vector API #472

wants to merge 2 commits into from

Conversation

solidpixel
Copy link
Contributor

The astcenc vector library effectively implements two different class APIs:

  • An explicit 4-wide API which is used via explicit 4-wide types (e.g. vfloat4) in the codec.
  • A vector-length agnostic API, which is used as N-wide types in the codec (e.g. vfloat) in the codec, and where the width is resolved at compile time.

For historical reasons the classes that are only used as a VLA classes (e.g. vfloat8 for AVX2) implement a lot of functionality which was inherited from the original 4-wide implementation and not actually used in the VLA parts of the codec. This makes adding new VLA implementation (e.g. Arm SVE2) more expensive than it needs to be.

This PR doesn't add SVE2 support, but does some cleanup to minimize the VLA library interface as a precursor to doing so.

@solidpixel solidpixel self-assigned this Jun 7, 2024
@solidpixel solidpixel added this to the 5.0.0 milestone Jun 7, 2024
@solidpixel solidpixel marked this pull request as draft June 7, 2024 20:22
@solidpixel solidpixel closed this Jun 7, 2024
@solidpixel solidpixel deleted the vla_api_cleanup branch June 7, 2024 20:40
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.

1 participant