[all-commits] [llvm/llvm-project] 503b3a: [mlir][ODS] Add support for passing properties to ...

Markus Böck via All-commits all-commits at lists.llvm.org
Thu Jul 13 00:03:11 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 503b3ab929983fd4ed24d156c14ce9e5625044c7
  Author: Markus Böck <markus.bock+llvm at nextsilicon.com>
  Date:   2023-07-13 (Thu, 13 Jul 2023)

  Changed paths:
    M mlir/test/IR/properties.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/op-format-invalid.td
    M mlir/tools/mlir-tblgen/FormatGen.h
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  [mlir][ODS] Add support for passing properties to `custom`

Printing and parsing properties of ops is currently only possible through the `prop-dict` attribute. This forces a specific place that the property is printed at and is generally not very flexible.

This patch adds support for passing properties to the `custom` directive, making it possible to incorporate them with more complex syntax. This makes it possible to parse and print them without generic syntax and without the use of `prop-dict`.

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

More information about the All-commits mailing list