[Mlir-commits] [mlir] [mlir][ArmSME] Add mask operand to load_tile_slice (PR #70655)
Cullen Rhodes
llvmlistbot at llvm.org
Tue Oct 31 04:30:40 PDT 2023
================
@@ -369,7 +369,15 @@ def TileStoreOp : ArmSME_Op<"tile_store"> {
}
def LoadTileSliceOp : ArmSME_Op<"load_tile_slice", [
- AllTypesMatch<["tile", "result"]>
+ AllTypesMatch<["tile", "result"]>,
+ TypesMatchWith<
+ "mask has i1 element type and same shape as result",
+ "result", "mask",
+ "VectorType("
+ "VectorType::Builder("
+ "::llvm::cast<mlir::VectorType>($_self)"
+ ").dropDim(0).setElementType(IntegerType::get($_self.getContext(), 1))"
+ ")">,
----------------
c-rhodes wrote:
Ah, this is similar to the tile_load constraint, forgot to update when copying. Fixed.
https://github.com/llvm/llvm-project/pull/70655
More information about the Mlir-commits
mailing list