[all-commits] [llvm/llvm-project] 86c8a7: Add C bindings for mlir::ExecutionEngine

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Mar 3 10:20:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86c8a7857dc39ed28960d2e061bac118f7186fce
      https://github.com/llvm/llvm-project/commit/86c8a7857dc39ed28960d2e061bac118f7186fce
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    A mlir/include/mlir-c/Conversion.h
    A mlir/include/mlir-c/ExecutionEngine.h
    M mlir/include/mlir-c/Registration.h
    A mlir/include/mlir/CAPI/ExecutionEngine.h
    M mlir/include/mlir/Conversion/CMakeLists.txt
    M mlir/lib/CAPI/CMakeLists.txt
    A mlir/lib/CAPI/Conversion/CMakeLists.txt
    A mlir/lib/CAPI/Conversion/Passes.cpp
    A mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt
    A mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp
    M mlir/lib/CAPI/Registration/Registration.cpp
    M mlir/test/CAPI/CMakeLists.txt
    A mlir/test/CAPI/execution_engine.c
    M mlir/test/CMakeLists.txt

  Log Message:
  -----------
  Add C bindings for mlir::ExecutionEngine

This adds minimalistic bindings for the execution engine, allowing to
invoke the JIT from the C API. This is still quite early and
experimental and shouldn't be considered stable in any way.

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


  Commit: 13cb43171995da7d5059baf104954941459c8412
      https://github.com/llvm/llvm-project/commit/13cb43171995da7d5059baf104954941459c8412
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M mlir/include/mlir-c/Bindings/Python/Interop.h
    M mlir/include/mlir-c/ExecutionEngine.h
    M mlir/lib/Bindings/Python/CMakeLists.txt
    A mlir/lib/Bindings/Python/Conversions/CMakeLists.txt
    A mlir/lib/Bindings/Python/Conversions/Conversions.cpp
    A mlir/lib/Bindings/Python/ExecutionEngine.cpp
    A mlir/lib/Bindings/Python/ExecutionEngine.h
    M mlir/lib/Bindings/Python/MainModule.cpp
    M mlir/lib/Bindings/Python/mlir/__init__.py
    A mlir/lib/Bindings/Python/mlir/conversions/__init__.py
    A mlir/lib/Bindings/Python/mlir/execution_engine.py
    M mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp
    A mlir/test/Bindings/Python/execution_engine.py
    M mlir/test/CMakeLists.txt

  Log Message:
  -----------
  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


Compare: https://github.com/llvm/llvm-project/compare/55356c011b60...13cb43171995


More information about the All-commits mailing list