Skip to content

[ESIMD] Fix public simd and simd_view APIs. #5465

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 1 commit into from
Feb 3, 2022

Conversation

kbobrovs
Copy link
Contributor

@kbobrovs kbobrovs commented Feb 3, 2022

  • Remove simd::copy_to(RawTy (&&Arr)[N1]), as it does not make sense
  • Remove simd_view_impl(BaseTy &&Base, RegionTy Region), as it does not make
    sense
  • simd::copy_from(const RawTy (&&Arr)[N1]) -> ... Ty ..., as user APIs must not
    use raw types
  • Replace "operator const simd::raw_vector_type &() const &" and
    "explicit operator raw_vector_type &() &" with
    "operator simd::raw_vector_type() const" - to avoid publishing references
    to internal state

Signed-off-by: Konstantin S Bobrovsky konstantin.s.bobrovsky@intel.com

- Remove simd::copy_to(RawTy (&&Arr)[N1]), as it does not make sense
- Remove simd_view_impl(BaseTy &&Base, RegionTy Region), as it does not make
  sense
- simd::copy_from(const RawTy (&&Arr)[N1]) -> ... Ty ..., as user APIs must not
  use raw types
- Replace "operator const simd::raw_vector_type &() const &" and
  "explicit operator raw_vector_type &() &" with
  "operator simd::raw_vector_type() const" - to avoid publishing references
  to internal state

Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
@kbobrovs kbobrovs requested a review from a team as a code owner February 3, 2022 00:38
@kbobrovs kbobrovs merged commit 3bb85e7 into intel:sycl Feb 3, 2022
@kbobrovs kbobrovs deleted the esimd_fix_simdx_pub_apis branch February 4, 2022 04:24
alexbatashev added a commit to alexbatashev/llvm that referenced this pull request Feb 5, 2022
* upstream/sycl: (3571 commits)
  [ESIMD] Doxygen update part III - core APIs. (intel#5472)
  [SYCL][DOC] Move proposed FPGA extensions (intel#5453)
  [SYCL] Add -fsycl-fp32-prec-sqrt flag (intel#5309)
  [SYCL] Emit program build logs for warning levels >= 2 (intel#5319)
  [SYCL] Add clang support for code_location in KernelInfo (intel#5335)
  [SYCL][Doc] Move FPGA extensions (intel#5470)
  [ESIMD] Fix public simd and simd_view APIs. (intel#5465)
  [SYCL] Deprecate sycl::atomics in SYCL 2020 mode (intel#5440)
  [SYCL] Add unit test for PR 5414 (intel#5450)
  [XPTI] Allow arbitrary data types in metadata (intel#4998)
  [SYCL][DOC] Move discard queue events to supported (intel#5452)
  [Driver][SYCL] Initial support for allowing fat static -lname processing (intel#5413)
  [SYCL] Fix dead pointer usage if leaf buffer overflows (intel#5417)
  [SYCL][L0] Fix memory leak in USM prefetch (intel#5461)
  [SYCL][Doc] Add new free function queries proposal (intel#5106)
  [SYCL][ESIMD] Update vc-intrinsics deps to the top of the trunk (intel#5460)
  [SYCL][DOC] Move old spec constant extension spec (intel#5456)
  [SYCL][DOC] Move deprecated extensions (intel#5458)
  [SYCL][DOC] Fix links to old SubGroupMask doc (intel#5459)
  [ESIMD] Doxygen update part II - memory APIs. (intel#5443)
  ...
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