[Mlir-commits] [mlir] [mlir][Vector] Fold vector.constant_mask to SplatElementsAttr (PR #146724)
Kunwar Grover
llvmlistbot at llvm.org
Fri Jul 4 03:30:39 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));
----------------
Groverkss wrote:
Folders cannot build IR, so i cannot use the builder utilities here. I'm going to inline this for now.
https://github.com/llvm/llvm-project/pull/146724
More information about the Mlir-commits
mailing list