[Mlir-commits] [mlir] [mlir][ArmSVE] Add `arm_sve.psel` operation (PR #95764)

Benjamin Maxwell llvmlistbot at llvm.org
Mon Jun 17 09:51:28 PDT 2024


================
@@ -140,6 +140,28 @@ using ConvertFromSvboolOpLowering =
 using ZipX2OpLowering = OneToOneConvertToLLVMPattern<ZipX2Op, ZipX2IntrOp>;
 using ZipX4OpLowering = OneToOneConvertToLLVMPattern<ZipX4Op, ZipX4IntrOp>;
 
+/// Lower `arm_sve.psel` to LLVM intrinsics. This is almost a 1-to-1 conversion
+/// but first input (P1) and result predicates need conversion to/from svbool.
----------------
MacDue wrote:

The LLVM intrinsic is overloaded on `p2`.

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


More information about the Mlir-commits mailing list