Page MenuHomePhabricator

[mlir][linalg] adapt named op generalization to work with captures.
ClosedPublic

Authored by gysit on Apr 20 2021, 11:57 AM.

Details

Summary

Instead of always running the region builder check if the generalized op has a region attached. If yes inline the existing region instead of calling the region builder. This change circumvents a problem with named operations that have a region builder taking captures and the generalization pass not knowing about this captures.

Diff Detail

Event Timeline

gysit created this revision.Apr 20 2021, 11:57 AM
gysit requested review of this revision.Apr 20 2021, 11:57 AM
nicolasvasilache accepted this revision.Apr 20 2021, 1:28 PM
This revision is now accepted and ready to land.Apr 20 2021, 1:28 PM