Add basic JIT Python Bindings
authorMehdi Amini <joker.eph@gmail.com>
Tue, 23 Feb 2021 01:56:01 +0000 (01:56 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 3 Mar 2021 18:19:40 +0000 (18:19 +0000)
commit13cb43171995da7d5059baf104954941459c8412
treeda37ba0c7eeb135c8a740c658559cb9f2bb9b444
parent86c8a7857dc39ed28960d2e061bac118f7186fce
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
14 files changed:
mlir/include/mlir-c/Bindings/Python/Interop.h
mlir/include/mlir-c/ExecutionEngine.h
mlir/lib/Bindings/Python/CMakeLists.txt
mlir/lib/Bindings/Python/Conversions/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Bindings/Python/Conversions/Conversions.cpp [new file with mode: 0644]
mlir/lib/Bindings/Python/ExecutionEngine.cpp [new file with mode: 0644]
mlir/lib/Bindings/Python/ExecutionEngine.h [new file with mode: 0644]
mlir/lib/Bindings/Python/MainModule.cpp
mlir/lib/Bindings/Python/mlir/__init__.py
mlir/lib/Bindings/Python/mlir/conversions/__init__.py [new file with mode: 0644]
mlir/lib/Bindings/Python/mlir/execution_engine.py [new file with mode: 0644]
mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp
mlir/test/Bindings/Python/execution_engine.py [new file with mode: 0644]
mlir/test/CMakeLists.txt