[all-commits] [llvm/llvm-project] 18fbd5: [mlir][python] Better support for variadic regions...

ftynse via All-commits all-commits at lists.llvm.org
Thu Oct 14 04:15:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18fbd5fe34f0f01a4f013a3864b6dc681ada58b1
      https://github.com/llvm/llvm-project/commit/18fbd5fe34f0f01a4f013a3864b6dc681ada58b1
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M mlir/test/mlir-tblgen/op-python-bindings.td
    M mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

  Log Message:
  -----------
  [mlir][python] Better support for variadic regions in Python bindings

Improve support for variadic regions in ODS-generated operation view classes.
In particular, make generated constructors take an extra argument that
specifies the number of variadic regions if the operation has them. Previously,
there was no mechanism to specify a non-zero number of variadic regions. Also
generate named accessors to regions.

Reviewed By: gysit

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




More information about the All-commits mailing list