[Mlir-commits] [mlir] [mlir][ArmSVE] Add convert_to/from_svbool ops (PR #68586)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Tue Oct 10 05:30:13 PDT 2023
================
@@ -236,6 +243,66 @@ def UmmlaOp : ArmSVE_Op<"ummla",
"$acc `,` $src1 `,` $src2 attr-dict `:` type($src1) `to` type($dst)";
}
+
+class SvboolTypeContraint<string lhsArg, string rhsArg> : TypesMatchWith<
+ "expected corresponding svbool type widened to [16]xi1",
+ lhsArg, rhsArg,
+ "VectorType(VectorType::Builder(::llvm::cast<VectorType>($_self)).setDim(::llvm::cast<VectorType>($_self).getRank() - 1, 16))">;
----------------
banach-space wrote:
Just me being curious - why is it `$_self` instead of `$lhsArg`?
https://github.com/llvm/llvm-project/pull/68586
More information about the Mlir-commits
mailing list