This is an archive of the discontinued LLVM Phabricator instance.

[mlir][arith] Define mului_extended op
ClosedPublic

Authored by kuhar on Dec 8 2022, 6:40 PM.

Diff Detail

Event Timeline

kuhar created this revision.Dec 8 2022, 6:40 PM
Herald added a project: Restricted Project. · View Herald Transcript
kuhar requested review of this revision.Dec 8 2022, 6:40 PM
kuhar updated this revision to Diff 481496.Dec 8 2022, 6:41 PM

Clean up includes

kuhar updated this revision to Diff 481497.Dec 8 2022, 6:42 PM

Clean up includes

antiagainst accepted this revision.Dec 9 2022, 10:03 AM

Nice!

mlir/lib/Dialect/Arith/IR/ArithOps.cpp
367

If it's constant then results will have the corresponding OpFoldResult being an Attribute. We can check that to avoid doing matching again here.

mlir/test/Dialect/Arith/ops.mlir
100

Nit: test_mului_extended_scalar to be consistent?

This revision is now accepted and ready to land.Dec 9 2022, 10:03 AM
kuhar updated this revision to Diff 481715.Dec 9 2022, 11:52 AM

Address comments. Rebase.

kuhar marked an inline comment as done.Dec 9 2022, 11:53 AM
kuhar added inline comments.
mlir/test/Dialect/Arith/ops.mlir
100

This name actually follows the pre-existing convention in this file

This revision was automatically updated to reflect the committed changes.