-
Notifications
You must be signed in to change notification settings - Fork 798
[NFCI][SYCL] Refactor named swizzles implementation #16354
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
[NFCI][SYCL] Refactor named swizzles implementation #16354
Conversation
sycl/include/sycl/vector.hpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using "Both" vs "Const" here because that's what existing implementation does. Per the specification it should be const only version - to be cleaned up separately under -fpreview-breaking-changes.
1aaa7b6 to
ce49062
Compare
Instead of using preprocessor via `swizzles.def` file that is included multiple times, employ mixin-based approach which is more C++'ish.
ce49062 to
8357b6b
Compare
|
@intel/llvm-reviewers-runtime , ping. |
# Conflicts: # sycl/test/check_device_code/vector/vector_bf16_builtins.cpp # sycl/test/check_device_code/vector/vector_convert_bfloat.cpp # sycl/test/check_device_code/vector/vector_math_ops.cpp
KseniyaTikhomirova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Instead of using preprocessor via
swizzles.deffile that is includedmultiple times, employ mixin-based approach which is more C++'ish.