[all-commits] [llvm/llvm-project] 56747f: [mlir] Allow using non-attribute properties in dec...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Thu Jun 19 21:27:36 PDT 2025


  Branch: refs/heads/users/krzysz00/prop-in-rewriter
  Home:   https://github.com/llvm/llvm-project
  Commit: 56747f145c348dde4cfee3bf6eb5b1ae5cfc017f
      https://github.com/llvm/llvm-project/commit/56747f145c348dde4cfee3bf6eb5b1ae5cfc017f
  Author: Krzysztof Drewniak <krzysdrewniak at gmail.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M mlir/docs/DeclarativeRewrites.md
    M mlir/include/mlir/IR/Properties.td
    M mlir/include/mlir/TableGen/Pattern.h
    M mlir/include/mlir/TableGen/Property.h
    M mlir/lib/TableGen/CodeGenHelpers.cpp
    M mlir/lib/TableGen/Pattern.cpp
    M mlir/lib/TableGen/Property.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/pattern.mlir
    M mlir/test/mlir-tblgen/rewriter-attributes-properties.td
    M mlir/test/mlir-tblgen/rewriter-static-matcher.td
    M mlir/tools/mlir-tblgen/RewriterGen.cpp

  Log Message:
  -----------
  [mlir] Allow using non-attribute properties in declarative rewrite patterns

This commit adds support for non-attribute properties (such as
StringProp and I64Prop) in declarative rewrite patterns. The handling
for attributes follows the handling for attributes in most cases,
including in the generation of static matchers.

Constraints that are shared between multiple types are supported by
making the constraint matcher a templated function, which is the
equivalent to passing ::mlir::Attribute for an arbitrary C++ type.


  Commit: cf661be68f7c358bd86de1b2c3b0564c466fdc60
      https://github.com/llvm/llvm-project/commit/cf661be68f7c358bd86de1b2c3b0564c466fdc60
  Author: Krzysztof Drewniak <krzysdrewniak at gmail.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M mlir/docs/DeclarativeRewrites.md
    M mlir/include/mlir/TableGen/Pattern.h
    M mlir/test/mlir-tblgen/rewriter-static-matcher.td

  Log Message:
  -----------
  Review comments, fix Windows test


  Commit: c0b83f2b08083996487e8f044a50808d433baea6
      https://github.com/llvm/llvm-project/commit/c0b83f2b08083996487e8f044a50808d433baea6
  Author: Krzysztof Drewniak <krzysdrewniak at gmail.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M mlir/docs/DeclarativeRewrites.md
    M mlir/include/mlir/IR/Properties.td
    M mlir/include/mlir/TableGen/Pattern.h
    M mlir/lib/TableGen/Pattern.cpp

  Log Message:
  -----------
  Docuumentation updates per review


Compare: https://github.com/llvm/llvm-project/compare/142b7a64413e...c0b83f2b0808

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