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

Jacques Pienaar llvmlistbot at llvm.org
Thu Mar 21 02:19:04 PDT 2024


================
@@ -21,6 +21,12 @@
 // CHECK-DAG: !test_tuple = tuple<!test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla>
 "test.op"() {alias_test = "alias_test:large_tuple"} : () -> (tuple<!test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla, !test.smpla>)
 
+// CHECK-DAG: #test.test_string<"hello">, #test.test_string<" world">
+"test.op"() {alias_test = ["test_dialect_alias:hello", "test_dialect_alias: world"]} : () -> ()
----------------
jpienaar wrote:

Is this allowing an arbitrary string prefix that any dialect could set? E.g., dialect foo can choose "ba_dialect_alias:" and ba can choose "baz_dialect@"?

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


More information about the Mlir-commits mailing list