[Mlir-commits] [mlir] [mlir] Add example of `printAlias` to test dialect (NFC) (PR #79232)
Mehdi Amini
llvmlistbot at llvm.org
Tue Jan 23 16:17:22 PST 2024
================
@@ -54,3 +54,10 @@
// CHECK: #loc1 = loc(fused<memref<1xi32>
// CHECK-NOT: #map
"test.op"() {alias_test = loc(fused<memref<1xi32, affine_map<(d0) -> (d0)>>>["test.mlir":10:8])} : () -> ()
+
+// -----
+
+// CHECK: #test.conditional_alias<hello>
+"test.op"() {attr = #test.conditional_alias<"hello">} : () -> ()
+// CHECK-NEXT: #test.conditional_alias<#test_encoding>
+"test.op"() {attr = #test.conditional_alias<"alias_test:tensor_encoding">} : () -> ()
----------------
joker-eph wrote:
Can we write this as an alias in the test input itself?
https://github.com/llvm/llvm-project/pull/79232
More information about the Mlir-commits
mailing list