[Mlir-commits] [mlir] [mlir][ArmSME] Add optional mask operand to tile_store (PR #70657)

Cullen Rhodes llvmlistbot at llvm.org
Mon Oct 30 06:12:19 PDT 2023


================
@@ -60,6 +60,12 @@ def TileElementWidthMatchesTileID : TypesMatchWith<
                   "::llvm::cast<VectorType>($_self).getElementType())"
                   ".getWidth())">;
 
+class HasMatchingMaskTypeConstraint<string vector, string mask> :
+  OptionalTypesMatchWith<
+    mask # " has i1 element type and same shape as " # vector,
+    vector, mask,
+    "::llvm::cast<mlir::VectorType>($_self).cloneWith({}, IntegerType::get($_ctxt, 1))">;
----------------
c-rhodes wrote:

@MacDue I've based on the constraint you're adding in #69604 but parameterized it

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


More information about the Mlir-commits mailing list