This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Allow running pass manager on any operation
ClosedPublic

Authored by rkayaith on Feb 5 2023, 3:19 PM.

Details

Summary

PassManager.run is currently restricted to running on builtin.module
ops, but this restriction doesn't exist on the C++ side. This updates it
to take ir.Operation/OpView instead of ir.Module.

Depends on D143354

Diff Detail

Event Timeline

rkayaith created this revision.Feb 5 2023, 3:19 PM
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
rkayaith published this revision for review.Feb 5 2023, 6:08 PM
rkayaith added a reviewer: mehdi_amini.
mehdi_amini accepted this revision.Feb 5 2023, 6:17 PM
This revision is now accepted and ready to land.Feb 5 2023, 6:17 PM