[all-commits] [llvm/llvm-project] d6efb6: Rework ExecutionEngine::invoke() to make it more f...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Feb 5 17:33:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6efb6fc86a6ded63fc50e3a31377a1f4aa33c6e
      https://github.com/llvm/llvm-project/commit/d6efb6fc86a6ded63fc50e3a31377a1f4aa33c6e
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-02-06 (Sat, 06 Feb 2021)

  Changed paths:
    M mlir/include/mlir/ExecutionEngine/ExecutionEngine.h
    M mlir/lib/ExecutionEngine/ExecutionEngine.cpp
    M mlir/unittests/CMakeLists.txt
    A mlir/unittests/ExecutionEngine/CMakeLists.txt
    A mlir/unittests/ExecutionEngine/Invoke.cpp

  Log Message:
  -----------
  Rework ExecutionEngine::invoke() to make it more friendly to use from C++

This new invoke will pack a list of argument before calling the
`invokePacked` method. It accepts returned value as output argument
wrapped in `ExecutionEngine::Result<T>`, and delegate the packing of
arguments to a trait to allow for customization for some types.

Reviewed By: ftynse

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




More information about the All-commits mailing list