This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Fix import of SwitchOp
ClosedPublic

Authored by gysit on Jun 21 2023, 8:58 AM.

Details

Summary

This revision ensures SwitchOps with case and condition
bitwidths other than 32-bit are imported properly. It adds an
APInt based builder to the SwitchOp and implements
a verifier that checks that the condition and the case
value types match.

Diff Detail

Event Timeline

gysit created this revision.Jun 21 2023, 8:58 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Jun 21 2023, 8:58 AM
Dinistro accepted this revision.Jun 21 2023, 11:15 PM

Thanks for fixing this, LGTM!

This revision is now accepted and ready to land.Jun 21 2023, 11:15 PM
This revision was automatically updated to reflect the committed changes.