[all-commits] [llvm/llvm-project] f05490: [mlir][bufferization][transform][python] Add enums...

Ingo Müller via All-commits all-commits at lists.llvm.org
Tue Aug 1 06:46:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0549017533bd073173b7fba4c5295c7deb455e9
      https://github.com/llvm/llvm-project/commit/f0549017533bd073173b7fba4c5295c7deb455e9
  Author: Ingo Müller <ingomueller at google.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M mlir/python/CMakeLists.txt
    M mlir/python/mlir/dialects/_bufferization_transform_ops_ext.py
    M mlir/python/mlir/dialects/transform/bufferization.py
    M mlir/test/python/dialects/transform_bufferization_ext.py
    M utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel

  Log Message:
  -----------
  [mlir][bufferization][transform][python] Add enums to bindings & mixins.

This patch uses the new enum binding generation to add the enums of the
dialect to the Python bindings and uses them in the mix-in class where
it was still missing (namely, the `LayoutMapOption` for the
`function_boundary_type_conversion` of the `OneShotBufferizeOp`.

The patch also piggy-backs a few smaller clean-ups:
* Order the keyword-only arguments alphabetically.
* Add the keyword-only arguments to an overload where they were left out
  by accident.
* Change some of the attribute values used in the tests to non-default
  values such that they show up in the output IR and check for that
  output.

Reviewed By: ftynse

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




More information about the All-commits mailing list