[all-commits] [llvm/llvm-project] d50fbe: [MLIR][Python] Python binding support for AffineIf...

Amy Wang via All-commits all-commits at lists.llvm.org
Wed Nov 13 13:28:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d50fbe43c9887e776cdfe95deaf312fb9cecfeaf
      https://github.com/llvm/llvm-project/commit/d50fbe43c9887e776cdfe95deaf312fb9cecfeaf
  Author: Amy Wang <kai.ting.wang at huawei.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
    M mlir/include/mlir/IR/CommonAttrConstraints.td
    M mlir/python/mlir/dialects/affine.py
    M mlir/test/python/dialects/affine.py

  Log Message:
  -----------
  [MLIR][Python] Python binding support for AffineIfOp (#108323)

Fix the AffineIfOp's default builder such that it takes in an
IntegerSetAttr. AffineIfOp has skipDefaultBuilders=1 which effectively
skips the creation of the default AffineIfOp::builder on the C++ side.
(AffineIfOp has two custom OpBuilder defined in the
extraClassDeclaration.) However, on the python side, _affine_ops_gen.py
shows that the default builder is being created, but it does not accept
IntegerSet and thus is useless. This fix at line 411 makes the default
python AffineIfOp builder take in an IntegerSet input and does not
impact the C++ side of things.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list