HomePhabricator

Add a "register_runtime" method to the mlir.execution_engine and show calling…

Authored by mehdi_amini on Mon, Mar 29, 9:35 PM.

Description

Add a "register_runtime" method to the mlir.execution_engine and show calling back from MLIR into Python

This exposes the ability to register Python functions with the JIT and
exposes them to the MLIR jitted code. The provided test case illustrates
the mechanism.

Differential Revision: https://reviews.llvm.org/D99562