[mlir] NFC: Move the state for managing aliases out of ModuleState and into a new...
authorRiver Riddle <riverriddle@google.com>
Wed, 8 Jan 2020 18:11:56 +0000 (10:11 -0800)
committerRiver Riddle <riverriddle@google.com>
Wed, 8 Jan 2020 18:34:35 +0000 (10:34 -0800)
commit659f7d463b3d677823fdcfddc37eea481078c514
tree8c334c6723be52861ec9784267b79c25ca9cc1b8
parent766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be
[mlir] NFC: Move the state for managing aliases out of ModuleState and into a new class AliasState.

Summary: This reduces the complexity of ModuleState and simplifies the code. A future revision will mold ModuleState into something that can be used by users for caching of printer state, as well as for implementing printAsOperand style methods.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D72292
mlir/lib/IR/AsmPrinter.cpp