[mlir][python] Include anchor op in PassManager constructor
authorrkayaith <rkayaith@gmail.com>
Thu, 20 Oct 2022 05:04:34 +0000 (01:04 -0400)
committerrkayaith <rkayaith@gmail.com>
Thu, 3 Nov 2022 15:52:16 +0000 (11:52 -0400)
commitd97e8cd48239ba6f3e50f92b152e661656ea009d
tree86e218c26268dad2faece93e9a35351d5fda5f6e
parent66645a03fc8a36b5052113f1466e8baf01137623
[mlir][python] Include anchor op in PassManager constructor

This adds an extra argument for specifying the pass manager's anchor op,
with a default of `any`. Previously the anchor was always defaulted to
`builtin.module`.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D136406
mlir/lib/Bindings/Python/Pass.cpp
mlir/test/python/pass_manager.py