[all-commits] [llvm/llvm-project] 185ce8: [MLIR][PYTHON] Provide opt level for ExecutionEngi...

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Sun May 16 01:29:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 185ce8cdfc7dba6cb6611b04346bfa03d008d5bf
      https://github.com/llvm/llvm-project/commit/185ce8cdfc7dba6cb6611b04346bfa03d008d5bf
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2021-05-16 (Sun, 16 May 2021)

  Changed paths:
    M mlir/include/mlir-c/ExecutionEngine.h
    M mlir/lib/Bindings/Python/ExecutionEngine.cpp
    M mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp
    M mlir/test/CAPI/execution_engine.c

  Log Message:
  -----------
  [MLIR][PYTHON] Provide opt level for ExecutionEngine Python binding

Provide an option to specify optimization level when creating an
ExecutionEngine via the MLIR JIT Python binding. Not only is the
specified optimization level used for code generation, but all LLVM
optimization passes at the optimization level are also run prior to
machine code generation (akin to the mlir-cpu-runner tool).

Default opt level continues to remain at level two (-O2).

Contributions in part from Prashant Kumar <prashantk at polymagelabs.com>
as well.

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




More information about the All-commits mailing list