[all-commits] [llvm/llvm-project] c6390f: [mlir] Fix AsmPrinter for types with sub elements

Vladislav Vinogradov via All-commits all-commits at lists.llvm.org
Tue Oct 12 02:18:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6390f19f20c93687d6366f6e78d6e96f1f0a126
      https://github.com/llvm/llvm-project/commit/c6390f19f20c93687d6366f6e78d6e96f1f0a126
  Author: Vladislav Vinogradov <vlad.vinogradov at intel.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/test/IR/print-attr-type-aliases.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestTypes.cpp
    M mlir/test/mlir-tblgen/testdialect-typedefs.mlir

  Log Message:
  -----------
  [mlir] Fix AsmPrinter for types with sub elements

Call `printType(subElemType)` instead of `os << subElemType` for them.
It allows to handle type aliases inside complex types.

As a side effect, fixed `test.int` parsing.

Reviewed By: rriddle

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




More information about the All-commits mailing list