This is an archive of the discontinued LLVM Phabricator instance.

[mlir][memref] Add initial Wide Int Emulation pass and patterns
ClosedPublic

Authored by kuhar on Oct 11 2022, 3:29 PM.

Details

Summary

Add a new pass and conversions to emulate wide integer operations over memrefs.
The emulation is implemented on top of the existing pass to emulate wide integer arith ops.

Improve naming in the arith pass to avoid potential name clashes.

Diff Detail

Event Timeline

kuhar created this revision.Oct 11 2022, 3:29 PM
kuhar requested review of this revision.Oct 11 2022, 3:29 PM
kuhar added a comment.Oct 11 2022, 3:31 PM

Let me know if you know a better way to organize this

kuhar updated this revision to Diff 466950.Oct 11 2022, 3:32 PM

Clean up

kuhar updated this revision to Diff 466952.Oct 11 2022, 3:34 PM

Clean up

antiagainst accepted this revision.Oct 13 2022, 4:24 PM

Nice, thanks!

mlir/lib/Dialect/MemRef/Transforms/EmulateWideInt.cpp
2

Nit: This is missing the header line like L6?

This revision is now accepted and ready to land.Oct 13 2022, 4:24 PM
kuhar updated this revision to Diff 467785.Oct 14 2022, 8:35 AM

Fix copyright header. Rebase.

kuhar marked an inline comment as done.Oct 14 2022, 8:35 AM
This revision was landed with ongoing or failed builds.Oct 14 2022, 8:38 AM
This revision was automatically updated to reflect the committed changes.