[all-commits] [llvm/llvm-project] fd6b40: Emit the boilerplate for Attribute printer/parser ...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Nov 9 16:39:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd6b404183ce1faa47a20a345d1f7d3486070f4f
      https://github.com/llvm/llvm-project/commit/fd6b404183ce1faa47a20a345d1f7d3486070f4f
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/TableGen/Dialect.h
    M mlir/lib/TableGen/Dialect.cpp
    M mlir/test/lib/Dialect/Test/TestAttributes.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
    M mlir/tools/mlir-tblgen/DialectGen.cpp

  Log Message:
  -----------
  Emit the boilerplate for Attribute printer/parser dialect dispatching from ODS

Add a new `useDefaultAttributePrinterParser` boolean settings on the dialect
(default to false for now) that emits the boilerplate to dispatch attribute
parsing/printing to the auto-generated method.
We will likely turn this on by default in the future.

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




More information about the All-commits mailing list