Skip to content

[ESIMD] Allow copy and move constructors for simd_view #4311

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

Merged
merged 3 commits into from
Aug 15, 2021

Conversation

DenisBakhvalov
Copy link
Contributor

This patch allows copy and move constructors and now simd_view
class adheres to the "rule of 5". We also mark APIs of simd class
with [[clang::lifetimebound]] attirbute to warn users when
simd_view escapes the lifetime of the underlying simd object.

This patch allows copy and move constructors and now simd_view
class adheres to the "rule of 5". We also mark APIs of simd class
with [[clang::lifetimebound]] attirbute to warn users when
simd_view escapes the lifetime of the underlying simd object.
@DenisBakhvalov
Copy link
Contributor Author

Corresponding E2E test is here: intel/llvm-test-suite#400

@DenisBakhvalov
Copy link
Contributor Author

@rolandschulz, please review. This is basically what we agreed to do.

rolandschulz
rolandschulz previously approved these changes Aug 13, 2021
@DenisBakhvalov
Copy link
Contributor Author

@kbobrovs is on vacation but we discussed this change before, he is aware of that. @rolandschulz already approved (after that I only resolved a conflict).
@bader, please merge the PR.

@bader bader merged commit daae147 into intel:sycl Aug 15, 2021
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.

3 participants