[all-commits] [llvm/llvm-project] f12fcf: [MLIR][Transform][Python] transform.foreach wrappe...

Rolf Morel via All-commits all-commits at lists.llvm.org
Sun Dec 14 14:10:53 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f12fcf030c8754572065cc09989e73bc9779df51
      https://github.com/llvm/llvm-project/commit/f12fcf030c8754572065cc09989e73bc9779df51
  Author: Rolf Morel <rolf.morel at intel.com>
  Date:   2025-12-14 (Sun, 14 Dec 2025)

  Changed paths:
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/python/mlir/dialects/memref.py
    M mlir/python/mlir/dialects/transform/__init__.py
    M mlir/test/python/dialects/transform.py
    M mlir/test/python/integration/dialects/pdl.py

  Log Message:
  -----------
  [MLIR][Transform][Python] transform.foreach wrapper and .owner OpViews (#172228)

Friendlier wrapper for transform.foreach.

To facilitate that friendliness, makes it so that OpResult.owner returns
the relevant OpView instead of Operation. For good measure, also changes
Value.owner to return OpView instead of Operation, thereby ensuring
consistency. That is, makes it is so that all op-returning .owner
accessors return OpView (and thereby give access to all goodies
available on registered OpViews.)

Reland of #171544 due to fixup for integration test.



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