This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][PDL] Generalize result type verification
ClosedPublic

Authored by sfuniak on Dec 20 2021, 10:03 PM.

Details

Summary

Presently the result type verification checks if the type is used by a pdl::OperationOp inside the matcher. This is unnecessarily restrictive; the type could come from a pdl::OperandOp or pdl::OperandsOp` and still be inferrable.

Diff Detail

Event Timeline

sfuniak created this revision.Dec 20 2021, 10:03 PM
sfuniak requested review of this revision.Dec 20 2021, 10:03 PM
Mogball accepted this revision.Dec 21 2021, 8:27 AM
This revision is now accepted and ready to land.Dec 21 2021, 8:27 AM
rriddle accepted this revision.Dec 21 2021, 11:00 PM
sfuniak updated this revision to Diff 397171.Jan 3 2022, 6:23 PM

Rebased.

This revision was automatically updated to reflect the committed changes.