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.
Paths
| Differential D111536
[mlir] Fix AsmPrinter for types with sub elements ClosedPublic Authored by vinograd47 on Oct 11 2021, 4:59 AM.
Details Summary Call printType(subElemType) instead of os << subElemType for them. As a side effect, fixed test.int parsing.
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 17 others. · View Herald TranscriptOct 11 2021, 4:59 AM This revision is now accepted and ready to land.Oct 11 2021, 10:38 AM Closed by commit rGc6390f19f20c: [mlir] Fix AsmPrinter for types with sub elements (authored by vinograd47). · Explain WhyOct 12 2021, 2:18 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 378926 mlir/lib/IR/AsmPrinter.cpp
mlir/test/IR/print-attr-type-aliases.mlir
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestTypes.cpp
mlir/test/mlir-tblgen/testdialect-typedefs.mlir
|