llvm-project/mlir/python/mlir/_mlir_libs/_mlirExecutionEngine.pyi
Stella Laurenzo a88bb5b9fe [mlir][python] Audit and fix a lot of the Python pyi stubs.
* Classes that are still todo are marked with "# TODO: Auto-generated. Audit and fix."
* Those without this note have been cross-checked with C++ sources and most have been spot checked by hovering in VsCode.

Differential Revision: https://reviews.llvm.org/D114767
2021-11-29 21:40:28 -08:00

24 lines
745 B
Python

# Originally imported via:
# stubgen {...} -m mlir._mlir_libs._mlirExecutionEngine
# Local modifications:
# * Relative imports for cross-module references.
# * Add __all__
from typing import List, Sequence
from ._mlir import ir as _ir
__all__ = [
"ExecutionEngine",
]
class ExecutionEngine:
def __init__(self, module: _ir.Module, opt_level: int = 2, shared_libs: Sequence[str] = ...) -> None: ...
def _CAPICreate(self) -> object: ...
def _testing_release(self) -> None: ...
def dump_to_object_file(self, file_name: str) -> None: ...
def raw_lookup(self, func_name: str) -> int: ...
def raw_register_runtime(self, name: str, callback: object) -> None: ...
@property
def _CAPIPtr(self) -> object: ...