Skip to content

Conversation

@DenisBakhvalov
Copy link
Contributor

This patch is a preparation for moving ESIMD-specific passes
into sycl-post-link. Right now, only functions marked with
"sycl-explicit-simd" metadata are lowered in the LowerESIMD pass.
In sycl-post-link, once we split ESIMD kernels from SYCL kernels,
there is no shared code between two types of kernels, and
LowerESIMD pass can safely process a module with ESIMD kernels
without worrying about another type of kernels (SYCL).

This change is also safe to do now since, as of today, we do not
allow mixing SYCL and ESIMD kernels in one source and in one program.
Thus, LowerESIMD can operate in "exclusive" mode without worrying
about SYCL kernels.

The ESIMD CFG markup made in Sema::MarkSyclSimd will be
removed in subsequent patches.

This patch is a preparation for moving ESIMD-specific passes
into sycl-post-link. Right now, only functions marked with
"sycl-explicit-simd" metadata are lowered in LowerESIMD pass.
In sycl-post-link, once we split ESIMD kernels from SYCL kernels,
there is no shared code between two types of kernels, and
LowerESIMD pass can safely process a module with ESIMD kernels
without worrying about another type of kernels (SYCL).

This change is also safe to do now since, as of today, we do not
allow to mix SYCL and ESIMD kernels in one source and in one program.
Thus, LowerESIMD can operate in "exclusive" mode without worrying
about SYCL kernels.

The ESIMD CFG markup made in `Sema::MarkSyclSimd` will be
removed in subsequent patches.
Copy link
Contributor

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM.

@kbobrovs kbobrovs requested a review from kychendev February 3, 2021 07:01
@romanovvlad romanovvlad merged commit 43f711e into intel:sycl Feb 3, 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