Skip to content

[CIR][ThroughMLIR] Lower TrapOp #1561

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 1 commit into from
Apr 17, 2025
Merged

Conversation

terapines-osc-2
Copy link
Contributor

cir.trap corresponds to two operations, call @llvm.trap and unreachable. See the test case Lowering/intrinsics.cir.

@terapines-osc-2
Copy link
Contributor Author

Updated failed lit tests.

@bcardosolopes
Copy link
Member

Giving it another testing shot

`cir.trap` corresponds to two operations, `call @llvm.trap` and
`unreachable`. See the test case `Lowering/intrinsics.cir`.
@bcardosolopes
Copy link
Member

Running tests once again!

@bcardosolopes bcardosolopes merged commit 4c4a762 into llvm:main Apr 17, 2025
9 checks passed
Copy link
Collaborator

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Interesting!
Is this considered lowering to MLIR standard dialect if it generates some LLVM IR dialect? 🤔
What if the final back-end is not LLVM but SPIR-V for example?

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