[Mlir-commits] [mlir] [mlir] Add the concept of ASM dialect aliases (PR #86033)

Fabian Mora llvmlistbot at llvm.org
Tue Mar 26 13:05:15 PDT 2024


fabianmcg wrote:

>From what I understood in @zero9178 comment the idea is to register them as aliases somewhere. But, I might be missing something.

Also, `AsmPrinter::Impl::printDialectType` works by retrieving the dialect from the type and then uses it to print the type using the dialect's printing hook. It should be possible to register an alias, but we would need `AbstractType` to hold at the least an extra `TypeID` and for aliases to define a `TypeID`, otherwise the context will complain about the type being already registered.

https://github.com/llvm/llvm-project/pull/86033


More information about the Mlir-commits mailing list