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

[SYCL] Revert friend changes to assignment and incr/decr for swizzles #12682

Conversation

steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Feb 9, 2024

This commit does a partial revert of #12396. This is to avoid an issue where the new friend operators wouldn't accept the arguments as l-value references.

This commit does a partial revert of intel#12396
as it is unclear from the specification how these operators should
behave for swizzles.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen merged commit 6194f3c into intel:sycl Feb 15, 2024
12 checks passed
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Mar 13, 2024
In intel#12682 the mutating operators for
swizzles (+=, -=, ..., ++, --) were reverted to be members rather than
friends. Since swizzles mutate the underlying vec rather than themselves
these operators should take and return constant references instead,
which this commit implements.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
aelovikov-intel pushed a commit that referenced this pull request Jul 16, 2024
In #12682 the mutating operators for
swizzles (+=, -=, ..., ++, --) were reverted to be members rather than
friends. Since swizzles mutate the underlying vec rather than themselves
these operators should take and return constant references instead,
which this commit implements.

---------

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
smanna12 pushed a commit to smanna12/llvm that referenced this pull request Jul 16, 2024
In intel#12682 the mutating operators for
swizzles (+=, -=, ..., ++, --) were reverted to be members rather than
friends. Since swizzles mutate the underlying vec rather than themselves
these operators should take and return constant references instead,
which this commit implements.

---------

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
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