[all-commits] [llvm/llvm-project] f167dc: [mlir][linalg][transform][python] Clean up _ext.py...

Ingo Müller via All-commits all-commits at lists.llvm.org
Fri Sep 15 01:52:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f167dc4fa96e31f2f99e206487cc760d5fba4bbe
      https://github.com/llvm/llvm-project/commit/f167dc4fa96e31f2f99e206487cc760d5fba4bbe
  Author: Ingo Müller <ingomueller at google.com>
  Date:   2023-09-15 (Fri, 15 Sep 2023)

  Changed paths:
    M mlir/test/python/dialects/transform_structured_ext.py

  Log Message:
  -----------
  [mlir][linalg][transform][python] Clean up _ext.py test. (#66469)

This PR cleans up the test of the mix-ins of this dialect. Most of the
character diff is due to factoring out the creation of the the top-level
sequence into a decorator. This decorator siginficantly shortens the
definition of the individual tests and can be used in all but one test,
where the top-level op is a PDL op. The only functional diff is due to
the fact that the decator uses `transform.any_op` instead of
`pdl.operation` for the type of the root handle. The only remaining
usages of the PDL dialects is now in the test a PDL-related op.




More information about the All-commits mailing list