Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add a LIT test for +=,*=,|=,^=,&= operations usable for reduce… #140

Merged

Conversation

v-klochkov
Copy link

…r objects

This test verifies this change-set: intel/llvm#3193

Signed-off-by: Vyacheslav N Klochkov [email protected]

v-klochkov added a commit to v-klochkov/llvm that referenced this pull request Feb 10, 2021
…educers

The corresponding LIT test for this change-set is:
intel/llvm-test-suite#140

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
…r objects

This test verifies this change-set: intel/llvm#3193

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
Comment on lines 74 to 75
Error += test<class B, XY>(
XY{}, [](auto A, auto B) { return XY(A.X + B.X, A.Y + B.Y); });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused about this. SYCL 2020 says that operator+= should only be available if the combination function is plus. If we can support more than that it might be interesting to explore that in our extension, but in general I don't think users should expect this to work.

againull pushed a commit to intel/llvm that referenced this pull request Feb 12, 2021
…educers (#3193)

The corresponding LIT test for this change-set is:
intel/llvm-test-suite#140

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@vladimirlaz vladimirlaz merged commit a1180cb into intel:intel Feb 15, 2021
zahiraam pushed a commit to zahiraam/llvm-1 that referenced this pull request Feb 16, 2021
…educers (intel#3193)

The corresponding LIT test for this change-set is:
intel/llvm-test-suite#140

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants