[Mlir-commits] [mlir] [mlir][ArmSME] Add custom vector.print lowering for SME tiles (PR #66691)

Cullen Rhodes llvmlistbot at llvm.org
Tue Sep 19 01:10:14 PDT 2023


================
@@ -557,9 +558,22 @@ class LLVM_aarch64_sme_write<string direction>
                      Arg<SVEPredicate, "Vector predicate">:$pg,
                      Arg<SVEVector, "Vector operand">:$vector)>;
 
+// Tile slice to vector
+class LLVM_aarch64_sme_read<string direction>
+    : ArmSME_IntrOp<"read." # direction, /*overloadedOperands=*/[],
+                    [AllShapesMatch<["pg", "res"]>],
----------------
c-rhodes wrote:

Please could you add a negative test to `mlir/test/Target/LLVMIR/arm-sme-invalid.mlir` for this

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


More information about the Mlir-commits mailing list