This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Allow specifying benefit for C func ptr style patterns.
ClosedPublic

Authored by wecing on Dec 2 2022, 3:07 PM.

Diff Detail

Event Timeline

wecing created this revision.Dec 2 2022, 3:07 PM
Herald added a project: Restricted Project. · View Herald Transcript
wecing requested review of this revision.Dec 2 2022, 3:07 PM

Could you add test coverage?

wecing updated this revision to Diff 484008.Dec 19 2022, 10:42 AM

Add test and rebase to main.

rriddle accepted this revision.Dec 20 2022, 10:37 PM

Nice! Thanks for adding test coverage as well.

This revision is now accepted and ready to land.Dec 20 2022, 10:37 PM
rriddle added inline comments.Dec 20 2022, 10:38 PM
mlir/unittests/IR/PatternMatchTest.cpp
29–49
wecing updated this revision to Diff 484713.Dec 21 2022, 4:17 PM

Group unit tests in anonymous namespaces.

wecing marked an inline comment as done.Dec 21 2022, 4:18 PM

Thank you for your feedbacks!

Since I don't have write access, could someone land this change for me? Thanks!

Sure I'll help submit

This revision was automatically updated to reflect the committed changes.