[Mlir-commits] [mlir] [mlir] Add dialect hooks for registering custom type and attribute alias printers (PR #173091)

Mehdi Amini llvmlistbot at llvm.org
Mon Dec 22 08:15:29 PST 2025


================
@@ -0,0 +1,14 @@
+// RUN: mlir-opt %s | FileCheck %s
+
+// Check that attr and type aliases are properly printed.
+
+// CHECK: {types = [!test.tuple_i7_from_attr, !test.tuple_i6_from_attr, tuple<!test.int<signed, 5>>]} : () -> (!test.tuple_i7, !test.tuple_i6, tuple<!test.int<signed, 5>>)
+"test.op"() {types = [
----------------
joker-eph wrote:

Wait, does it mean that an alias definition is actually printed for `!test.tuple_i7_from_attr`?
Can you add the proper CHECK then?

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


More information about the Mlir-commits mailing list