[clang] [CIR] Added Vector Reduce Op (PR #226546)

Kunal Dubey via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 7 01:52:33 PDT 2026


================
@@ -6169,6 +6169,69 @@ def CIR_VecExtractOp : CIR_Op<"vec.extract", [
   let hasFolder = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// VecReduceOp
+//===----------------------------------------------------------------------===//
+
+def CIR_VecReduceKind : CIR_I32Enum<
----------------
xakep8 wrote:

I originally combined them to represent vector reduction similar to vector.reduction, but there isn’t a benefit of doing that.

I’ll split them into separate CIR operations corresponding to the LLVM dialect operations.

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


More information about the cfe-commits mailing list