[Mlir-commits] [mlir] [mlir] Add dialect hooks for registering custom type and attribute alias printers (PR #173091)
Fabian Mora
llvmlistbot at llvm.org
Sat Dec 20 05:43:20 PST 2025
fabianmcg wrote:
> Can you add documentation please?
On the website pages or where? Because the functions have doc comments.
> So this would mean that depending on what dialect is registered one gets different output. You have a file with only Ops from dialect A, but depending on if the tool registers dialect B or not, one gets different output?
> It is even further: it'll depends on if B gets actually loaded.
Yes, that's why the public functions are called dialect alias. The alias is only printed if the dialect adding the alias is loaded.
https://github.com/llvm/llvm-project/pull/173091
More information about the Mlir-commits
mailing list