llvm
llvm copied to clipboard
[SYCL] Make swizzle mutating operators const friends
In https://github.com/intel/llvm/pull/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.
https://github.com/KhronosGroup/SYCL-Docs/pull/514 has been merged. This is ready for review!
Sorry, grabbed the wrong tag.
@intel/llvm-reviewers-runtime - Friendly ping.
I believe the change is rather isolated and can be merged without re-test.