llvm/mlir/python/mlir/_mlir_libs/_mlir/passmanager.pyi

# Originally imported via:
#   stubgen {...} -m mlir._mlir_libs._mlir.passmanager
# Local modifications:
#   * Relative imports for cross-module references.
#   * Add __all__

from typing import Any, Optional

from . import ir as _ir

__all__ = [
    "PassManager",
]

class PassManager:
    def __init__(self, context: Optional[_ir.Context] = None) -> None: ...
    def _CAPICreate(self) -> object: ...
    def _testing_release(self) -> None: ...
    def enable_ir_printing(self) -> None: ...
    def enable_verifier(self, enable: bool) -> None: ...
    @staticmethod
    def parse(pipeline: str, context: Optional[_ir.Context] = None) -> PassManager: ...
    def run(self, module: _ir._OperationBase) -> None: ...
    @property
    def _CAPIPtr(self) -> object: ...