Skip to content

[ESIMD][NFC] Extract ESIMD handling from sycl-post-link to library. #18684

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

Open
wants to merge 5 commits into
base: sycl
Choose a base branch
from

Conversation

maksimsab
Copy link
Contributor

This change extracts handleESIMD from sycl-post-link to SYCLPostLink component for reuse in NewOffloading compilation flow in clang and for reuse in sycl-jit.

The body of handleESIMD function is refactored for better readability.

The documentation of lowerESIMDConstructs is fixed and the argument name is changed to more straightforward.

This change extracts handleESIMD from sycl-post-link to SYCLPostLink
component for reuse in NewOffloading compilation flow in clang and for
reuse in sycl-jit.

The documentation of lowerESIMDConstructs are fixed and the argument
name is changed to more straightforward.
@maksimsab maksimsab requested a review from a team as a code owner May 27, 2025 16:04
@maksimsab maksimsab requested a review from sarnex May 27, 2025 16:04
Copy link
Contributor

@asudarsa asudarsa left a comment

Choose a reason for hiding this comment

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

LGTM overall. Minor nit.
I also have a question. Will it be reasonable to add a unittest for testing this functionality?
(location: llvm/unittests)
Not a blocker though.

Thanks

@maksimsab
Copy link
Contributor Author

Speaking of the testing, different parts are being tested by LIT tests by sycl-post-link. Linking is tested independently from sycl. Lowering is tested by LITs. The control flow of handleESIMD is difficult to test by unittests.

Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM! Just a few nits.

@asudarsa
Copy link
Contributor

Hi @maksimsab
I had a look at the build fails. Not really clear what the issue is. Did you figure it out?
Thanks

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.

4 participants