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

Fabian Mora llvmlistbot at llvm.org
Tue Mar 26 05:58:04 PDT 2024


fabianmcg wrote:

> a way to assign identifiers to types and attributes for syntax sugar

This is what we want. Because `!llvm.ptr<3>` is just syntax sugar for `!ptr.ptr<#llvm.address_space<3>>`. When interacting with `!llvm.ptr<3>` one is still using `!ptr.ptr` methods.

Having said that, I like the idea of making them a first-class concept, however, that involves changing `AbstractType`, `MLIRContext` and other core classes, and that goes outside the original proposal and requires further discussion.

**Also worth noting, the toned down version doesn't suffer from any of this issues, as the type or attr directly specifies which dialect to use during printing.**

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


More information about the Mlir-commits mailing list