It should be easier to modify pass managers. #2179
Labels
status: pending PR
It has one or more PRs pending to solve this issue
type: enhancement
It's working, but needs polishing
Milestone
What is the expected enhancement?
Currently, if you want to use a default pass manager with only a single pass changed, e.g. for example the swap mapper changed, you need to go and create a whole new pass manager. It should be possible to simply replace one pass in a pass manger with another. Something like:
An index is used here since you could have multiple passes of the same type. It would also be nice to be able to slice a pm and get a new pm, e.g.
pm2 = pm[:5]
which would save people from having to rewrite things like this:The text was updated successfully, but these errors were encountered: