[clang] [llvm] [LLVMABI] Add support for SVE types in the LLVM ABI library (PR #221375)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 9 10:57:35 PDT 2026
================
@@ -318,7 +359,36 @@ const llvm::abi::Type *QualTypeMapper::convertVectorType(const VectorType *VT) {
llvm::ElementCount NumElements = llvm::ElementCount::getFixed(NElems);
llvm::Align VectorAlign = getTypeAlign(VectorQualType);
- return Builder.getVectorType(ElementType, NumElements, VectorAlign);
+ return Builder.getVectorType(ElementType, NumElements, VectorAlign,
+ getABIVectorKind(VT->getVectorKind()));
----------------
andykaylor wrote:
I've added comments here and at the `SVEPredicate` definition, and added a test for the fixed-length predicate element type.
https://github.com/llvm/llvm-project/pull/221375
More information about the cfe-commits
mailing list