llvm-capstone/mlir/lib/Bindings/Python/ExecutionEngine.h
Mehdi Amini 13cb431719 Add basic JIT Python Bindings
This offers the ability to create a JIT and invoke a function by passing
ctypes pointers to the argument and the result.

Differential Revision: https://reviews.llvm.org/D97523
2021-03-03 18:19:40 +00:00

23 lines
681 B
C++

//===- ExecutionEngine.h - ExecutionEngine submodule of pybind module -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef MLIR_BINDINGS_PYTHON_EXECUTIONENGINE_H
#define MLIR_BINDINGS_PYTHON_EXECUTIONENGINE_H
#include "PybindUtils.h"
namespace mlir {
namespace python {
void populateExecutionEngineSubmodule(pybind11::module &m);
} // namespace python
} // namespace mlir
#endif // MLIR_BINDINGS_PYTHON_EXECUTIONENGINE_H