Skip to content

[SYCL] Implement "swizzle" member function on swizzles #16353

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

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

aelovikov-intel
Copy link
Contributor

It brings it closer to SYCL spec and makes more consistent by having "named"
swizzle member functions (like .hi()/.lo()) and .swizzle<...>() behave in
a similar way, i.e. we still have a bug when doing a swizzle on an expression
tree.

Note that the whole "expression tree" machinery is not standard-conformant and
will be completely removed separately (under -fpreview-breaking-changes flag).

I still want to implement this partial bugfix so that I could switch to a
unified mixin-based implementation for swizzles on vec/swizzle classes,
instead of doing preprocessor tricks with swizzles.def file.

It brings it closer to SYCL spec and makes more consistent by having "named"
swizzle member functions (like `.hi()`/`.lo()`) and `.swizzle<...>()` behave in
a similar way, i.e. we still have a bug when doing a swizzle on an expression
tree.

Note that the whole "expression tree" machinery is not standard-conformant and
will be completely removed separately (under `-fpreview-breaking-changes` flag).

I still want to implement this partial bugfix so that I could switch to a
unified mixin-based implementation for swizzles on `vec`/`swizzle` classes,
instead of doing preprocessor tricks with `swizzles.def` file.
@aelovikov-intel
Copy link
Contributor Author

First commit is in its own PR (#16352), so review can focus on the second one only.

@aelovikov-intel
Copy link
Contributor Author

Merged 'origin/sycl' after the test PR has been merged. This should be review-ready now.

@aelovikov-intel aelovikov-intel merged commit 3524739 into intel:sycl Dec 13, 2024
14 checks passed
@aelovikov-intel aelovikov-intel deleted the swizzle-swizzle branch December 13, 2024 21:53
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.

2 participants