Skip to content

[mlir][llvm] Verify consistency of llvm.resume and llvm.landingpad types #8909

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

Conversation

victor-eds
Copy link
Contributor

@victor-eds victor-eds commented Mar 31, 2023

Following the steps of the LLVM verifier
(https://github.com/llvm/llvm-project/blob/b2c48559c882fd558f91e471c4d23ea7b0c6e718/llvm/lib/IR/Verifier.cpp#L4195),
checks in llvm.func verifier are added to ensure consistency of
llvm.landingpad operations' result types and llvm.resume operations'
input types.

As in LLVM, we will allow llvm.resume operations with input values
defined by operations other than llvm.landingpad.

This commit is a clone of upstream commit
victor-eds@478bd07
(https://reviews.llvm.org/rG478bd0735fc094d3af37e9791df5118a402ae7a7).

Signed-off-by: Victor Perez victor.perez@codeplay.com

Following the steps of the LLVM verifier
(https://github.com/llvm/llvm-project/blob/b2c48559c882fd558f91e471c4d23ea7b0c6e718/llvm/lib/IR/Verifier.cpp#L4195),
checks in llvm.func verifier are added to ensure consistency of
llvm.landingpad operations' result types and llvm.resume operations'
input types.

As in LLVM, we will allow llvm.resume operations with input values
defined by operations other than llvm.landingpad.

This commit is a clone of upstream commit
478bd07
(https://reviews.llvm.org/rG478bd0735fc094d3af37e9791df5118a402ae7a7).

Signed-off-by: Victor Perez <victor.perez@codeplay.com>
@victor-eds victor-eds added the sycl-mlir Pull requests or issues for sycl-mlir branch label Mar 31, 2023
@victor-eds victor-eds self-assigned this Mar 31, 2023
@bader
Copy link
Contributor

bader commented Mar 31, 2023

DO NOT SQUASH AND MERGE THIS PR

Please, create two separate PRs to avoid squashing.

@victor-eds victor-eds changed the title Replace in-house changes with upstream changes [mlir][llvm] Verify consistency of llvm.resume and llvm.landingpad types Mar 31, 2023
@victor-eds
Copy link
Contributor Author

DO NOT SQUASH AND MERGE THIS PR

Please, create two separate PRs to avoid squashing.

Done. Thanks

@victor-eds
Copy link
Contributor Author

Merge #8910 reverting the changes before this one.

@victor-eds victor-eds marked this pull request as draft March 31, 2023 16:59
@victor-eds victor-eds marked this pull request as ready for review April 4, 2023 10:20
Copy link
Contributor

@sommerlukas sommerlukas left a comment

Choose a reason for hiding this comment

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

Checked that the changes here are identical to the upstream patch with which they will eventually be replaced, once we receive it in pull-down.

@victor-eds victor-eds merged commit eb22ecd into intel:sycl-mlir Apr 4, 2023
@victor-eds victor-eds deleted the replace-with-upstream-changes branch April 4, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sycl-mlir Pull requests or issues for sycl-mlir branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants