This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix ordering of intermixed attribute/type aliases
ClosedPublic

Authored by rriddle on Nov 16 2022, 4:26 PM.

Details

Summary

We properly order dependencies between attribute/type aliases,
but we currently always print attribute aliases separately from type
aliases. This creates problems if an attribute wants to use a type
alias during printing.

This commit refactors alias collection such that attribute/type aliases
are collected together and printed together.

Diff Detail

Event Timeline

rriddle created this revision.Nov 16 2022, 4:26 PM
rriddle requested review of this revision.Nov 16 2022, 4:26 PM
Mogball accepted this revision.Nov 16 2022, 4:32 PM
Mogball added inline comments.
mlir/lib/IR/AsmPrinter.cpp
898

This wasn't checked anywhere?

This revision is now accepted and ready to land.Nov 16 2022, 4:32 PM
This revision was landed with ongoing or failed builds.Nov 18 2022, 2:10 AM
This revision was automatically updated to reflect the committed changes.