This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Support more complex operations.
ClosedPublic

Authored by bixia on May 19 2022, 3:41 PM.

Details

Summary

Add complex operations abs, neg, sin, log1p, sub and div.

Add test cases.

Diff Detail

Event Timeline

bixia created this revision.May 19 2022, 3:41 PM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.May 19 2022, 3:41 PM

Nice progress. One comment.

mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
154

You will have to add a case for kSubC here now too (mapping to kNegC)

bixia updated this revision to Diff 431006.May 20 2022, 10:29 AM

Fix 0 - y for complex types.

bixia added inline comments.May 20 2022, 10:41 AM
mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
154

Thank! Done.

aartbik accepted this revision.May 20 2022, 12:08 PM

Excellent work, Bixia!

This revision is now accepted and ready to land.May 20 2022, 12:08 PM
This revision was automatically updated to reflect the committed changes.