This is an archive of the discontinued LLVM Phabricator instance.

[mlir][arith] Add `index_cast` and `index_castui` support to WIE
ClosedPublic

Authored by kuhar on Nov 17 2022, 10:19 AM.

Diff Detail

Event Timeline

kuhar created this revision.Nov 17 2022, 10:19 AM
kuhar requested review of this revision.Nov 17 2022, 10:19 AM
kuhar updated this revision to Diff 476170.Nov 17 2022, 10:20 AM

Clean up

kuhar updated this revision to Diff 476172.Nov 17 2022, 10:26 AM

Fix testcase

Mogball accepted this revision.Nov 17 2022, 10:30 AM
Mogball added inline comments.
mlir/lib/Dialect/Arith/Transforms/EmulateWideInt.cpp
576
579–580

Please use the new cast style

This revision is now accepted and ready to land.Nov 17 2022, 10:30 AM
kuhar added inline comments.Nov 17 2022, 10:31 AM
mlir/lib/Dialect/Arith/Transforms/EmulateWideInt.cpp
579–580

Do you have some relevant discourse/revision link that explains why we prefer one over the other?

kuhar added inline comments.Nov 17 2022, 11:09 AM
mlir/lib/Dialect/Arith/Transforms/EmulateWideInt.cpp
579–580

I'm going to land this as-is because it's consistent with the existing code, but I'll be happy to revisit this post-commit if you point me to some relevant discussion.