This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Add ApplyRegisteredPassOp transform op
ClosedPublic

Authored by springerm on Jun 16 2023, 7:25 AM.

Details

Summary

This transform op runs a pass on the target op.

Diff Detail

Event Timeline

springerm created this revision.Jun 16 2023, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2023, 7:25 AM
springerm requested review of this revision.Jun 16 2023, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2023, 7:25 AM

I would consider evolving this into constructors of the entire pass pipeline rather than eager runners. So it can benefit from, e.g., parallelization and analysis preservation.

mlir/lib/Dialect/Transform/IR/TransformOps.cpp
384–398

Can this be factored out? Something similar exists for "apply patterns".

ftynse accepted this revision.Jun 16 2023, 8:30 AM
This revision is now accepted and ready to land.Jun 16 2023, 8:30 AM
springerm marked an inline comment as done.Jun 19 2023, 11:54 PM