Skip to content

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