[Mlir-commits] [mlir] [mlir][Vector] Fold vector.constant_mask to splat (PR #146724)
Fabian Mora
llvmlistbot at llvm.org
Wed Jul 2 08:36:41 PDT 2025
================
@@ -6594,6 +6594,26 @@ bool ConstantMaskOp::isAllOnesMask() {
return true;
}
+static Attribute createBoolSplat(ShapedType ty, bool x) {
+ return SplatElementsAttr::get(ty, BoolAttr::get(ty.getContext(), x));
----------------
fabianmcg wrote:
Let's not create a free function for this, better inline it or a lambda.
https://github.com/llvm/llvm-project/pull/146724
More information about the Mlir-commits
mailing list