[clang] [CIR] Upstream comparion ops for VectorType (PR #140597)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon May 19 14:40:38 PDT 2025


================
@@ -2083,4 +2083,33 @@ def VecExtractOp : CIR_Op<"vec.extract", [Pure,
   let hasFolder = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// VecCmpOp
+//===----------------------------------------------------------------------===//
+
+def VecCmpOp : CIR_Op<"vec.cmp", [Pure, SameTypeOperands]> {
----------------
andykaylor wrote:

Is there a reason we can't just have `cir.cmp` work with vector types?

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


More information about the cfe-commits mailing list