Skip to content

[ESIMD] Move ESIMD-specific passes to sycl-post-link #3222

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 4 commits into from
Feb 23, 2021

Conversation

DenisBakhvalov
Copy link
Contributor

@DenisBakhvalov DenisBakhvalov commented Feb 17, 2021

This patch is a continuation of prior series of patches to allow
having ESIMD and regular SYCL kernels in the same source code
and in the same program.

To mix two types of kernels we need to postpone lowering of
ESIMD specific constructs and do that after we split ESIMD from
regular SYCL code, which is done in sycl-post-link.

This is a finalizing patch that only flips the switch for
doing ESIMD-specific transformations in sycl-post-link
and removes those passes from the common optimization
pipeline in FE (BackendUtil.cpp). All the preliminary patches
have already been committed.

The test code that is enabled by this change can be found here:
intel/llvm-test-suite#141

This is only a finalizing patch that flips the switch for
doing ESIMD-specific transformations in sycl-post-link
after device code splitting.

All the preliminary patches have already been committed.
ESIMD-specific passes have been removed from BackendUtil.cpp
as they are now done in sycl-post-link.
premanandrao
premanandrao previously approved these changes Feb 17, 2021
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

I am good with the FE changes.

mdtoguchi
mdtoguchi previously approved these changes Feb 17, 2021
Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

Driver changes LGTM

@bader
Copy link
Contributor

bader commented Feb 18, 2021

@DenisBakhvalov, please, resolve merge conflicts.
It would be great of you can provide more context for this patch. I don't understand the purpose of these changes.

@DenisBakhvalov
Copy link
Contributor Author

@DenisBakhvalov, please, resolve merge conflicts.
It would be great of you can provide more context for this patch. I don't understand the purpose of these changes.

I updated the description of the PR.

@bader
Copy link
Contributor

bader commented Feb 19, 2021

@DenisBakhvalov, please, take a look at pre-commit failure.

@DenisBakhvalov
Copy link
Contributor Author

@DenisBakhvalov, please, take a look at pre-commit failure.

Restarted the build

// TODO: previously code generation and ESIMD lowering was
// a part of the same %clang_cc1 invocation, but now it is
// separate. So, we can split this test into 2, where one
// will be testing code generation and the second ESIMD lowering.
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree - good idea.

@DenisBakhvalov
Copy link
Contributor Author

@kbobrovs, I opened #3239.

@DenisBakhvalov
Copy link
Contributor Author

@bader, please merge if no objections.

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.

6 participants