This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Allow setting operation legality with an OperationName
ClosedPublic

Authored by math-fehr on Apr 24 2022, 5:44 PM.

Details

Summary

This is necessary to handle conversions of operations defined at runtime in extensible dialects.

Diff Detail

Event Timeline

math-fehr created this revision.Apr 24 2022, 5:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2022, 5:44 PM
math-fehr requested review of this revision.Apr 24 2022, 5:44 PM
math-fehr edited the summary of this revision. (Show Details)Apr 24 2022, 5:48 PM
math-fehr added reviewers: rriddle, mehdi_amini.
rriddle accepted this revision.Apr 24 2022, 11:49 PM
rriddle added inline comments.
mlir/test/lib/Dialect/Test/TestPatterns.cpp
963

Is one_operand_two_results dynamically registered? If so can we rename it to be dynamic_... instead?

1000

Can we drop the mlir:: on these?

This revision is now accepted and ready to land.Apr 24 2022, 11:49 PM
math-fehr updated this revision to Diff 425010.Apr 25 2022, 1:14 PM

Address comments

I addressed the comments.
If this is good for you, could you land it once D104554 is landed?

Can you rebase and reupload? The patch failed to apply.

math-fehr updated this revision to Diff 425410.Apr 26 2022, 8:52 PM

Rebase to latest version

Can you rebase and reupload? The patch failed to apply.

That should work now!

This revision was automatically updated to reflect the committed changes.