This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Retire CodegenStrategy::transform
ClosedPublic

Authored by nicolasvasilache on Oct 22 2021, 5:05 AM.

Details

Summary

Instead each pass should constructed a nested OpPassManager and runPipeline on that.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Oct 22 2021, 5:05 AM
mehdi_amini accepted this revision.Oct 22 2021, 10:33 AM

Thanks!

mlir/test/lib/Dialect/Linalg/TestLinalgCodegenStrategy.cpp
175

Could this be automatically always added to the pass pipeline by the strategy? (a "cleanupTransformMarkersPass")

(also you introduced a cleanup() method but you're not using it, is this intended?)

This revision is now accepted and ready to land.Oct 22 2021, 10:33 AM
nicolasvasilache marked an inline comment as done.

Add a tail cleanup pass.

mlir/test/lib/Dialect/Linalg/TestLinalgCodegenStrategy.cpp
175

I was afraid it would be too aggressive to introduce a pass for this, I also played with RAII but it was not good.
Since you propose it yourself, cleanup pass it is then!

This revision was automatically updated to reflect the committed changes.