[clang] [clang][clangir] add vpaddl and vpaddlq support (PR #191845)

Andrzej WarzyƄski via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 16 04:11:53 PDT 2026


================
@@ -196,6 +196,40 @@ static mlir::Value emitNeonCall(CIRGenModule &cgm, CIRGenBuilderTy &builder,
       isConstrainedFPIntrinsic, shift, rightshift);
 }
 
+static cir::VectorType getVPaddlInputVectorType(cir::VectorType resType,
+                                                bool usgn) {
+  mlir::Type elemTy = resType.getElementType();
+  uint64_t lanes = resType.getSize();
----------------
banach-space wrote:

For consistency with `resWidth`:
```suggestion
  uint64_t resLanes = resType.getSize();
```

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


More information about the cfe-commits mailing list