[Mlir-commits] [mlir] [mlir][ArmSME] Add mask operand to load_tile_slice (PR #70655)
Cullen Rhodes
llvmlistbot at llvm.org
Tue Oct 31 04:31:37 PDT 2023
================
@@ -69,14 +70,19 @@ void getMemrefIndices(ValueRange indices, unsigned rank, Value tileSliceIndex,
/// %svl_s = arith.muli %min_svl_s, %vscale : index
/// scf.for %tile_slice_idx = %c0 to %svl_s step %c1 {
/// %tile_update = arm_sme.load_tile_slice %src[%tile_slice_idx],
-/// %tile, %tile_slice_idx : memref<?x?xi32>, vector<[4]x[4]xi32>
+/// %ptrue_s, %tile, %tile_slice_idx
+/// : memref<?x?xi32>, vector<[4]xi1>, vector<[4]x[4]xi32>
/// }
/// ```
struct TileLoadOpConversion : public OpRewritePattern<arm_sme::TileLoadOp> {
using OpRewritePattern<arm_sme::TileLoadOp>::OpRewritePattern;
LogicalResult matchAndRewrite(arm_sme::TileLoadOp tileLoadOp,
PatternRewriter &rewriter) const override {
+ if (tileLoadOp.getMask())
+ return rewriter.notifyMatchFailure(
+ tileLoadOp, "op has mask, needs masked pattern(s)");
----------------
c-rhodes wrote:
I've added a TODO. I'll create a PR with masked patterns soon (split out from #69148).
https://github.com/llvm/llvm-project/pull/70655
More information about the Mlir-commits
mailing list