[all-commits] [llvm/llvm-project] 0a8a59: [mlir] Fully qualify default generated type/attrib...

zero9178 via All-commits all-commits at lists.llvm.org
Thu Nov 18 11:24:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a8a5902a694c12ae28233ae21bbf73a6d7204bb
      https://github.com/llvm/llvm-project/commit/0a8a5902a694c12ae28233ae21bbf73a6d7204bb
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    A mlir/test/mlir-tblgen/default-type-attr-print-parser.td
    M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp

  Log Message:
  -----------
  [mlir] Fully qualify default generated type/attribute printer and parser

This patch makes it possible to use the newly added useDefaultAttributePrinterParser and useDefaultTypePrinterParser dialect options without any using namespace declarations. Two things had to be done to make this possible:

* Fully qualify any type usages or functions from the mlir namespace in the generated C++ code
* Makes sure to emit the printers and parsers inside the same namespace as the Dialect

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




More information about the All-commits mailing list