Skip to content

[MLIR] Allow llvm.resume with non-landingpad input #8590

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 3 commits into from
Mar 10, 2023

Conversation

victor-eds
Copy link
Contributor

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

This changes verification of llvm.resume to just fail if there is no llvm.landingpad instruction in the same function with the same type as this instruction's input, more in line with LLVM's verification. From LLVM documentation (https://llvm.org/docs/LangRef.html#i-resume):

The ‘resume’ instruction requires one argument, which must have the same type as the result of any ‘landingpad’ instruction in the same function.

This changes verification of llvm.resume to just fail if there is no
llvm.landingpad instruction in the same function with the same type as
this instruction's input, more in line with LLVM's verificatino. From
LLVM documentation (https://llvm.org/docs/LangRef.html#i-resume):

The ‘resume’ instruction requires one argument, which must have the
same type as the result of any ‘landingpad’ instruction in the same
function.

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 9, 2023
@victor-eds victor-eds self-assigned this Mar 9, 2023
@victor-eds
Copy link
Contributor Author

I'll create a patch upstream when this is merged.

@victor-eds victor-eds merged commit af822e2 into intel:sycl-mlir Mar 10, 2023
@victor-eds victor-eds deleted the fix-resume branch March 10, 2023 16:38
@victor-eds
Copy link
Contributor Author

I'll create a patch upstream when this is merged.

https://reviews.llvm.org/D145802

victor-eds added a commit that referenced this pull request Apr 4, 2023
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