[clang] [llvm] [LLVMABI] Add support for SVE types in the LLVM ABI library (PR #221375)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 05:11:09 PDT 2026
================
@@ -125,4 +129,81 @@ TEST_F(ABITypesTest, DirectVirtualBasesAndVTablePointer) {
->isEmpty());
}
+TEST_F(ABITypesTest, GenericVector) {
+ const llvm::abi::Type *I32 = TB.getIntegerType(32, Align(4), /*Signed=*/true);
+ const VectorType *V4I32 =
+ TB.getVectorType(I32, ElementCount::getFixed(4), Align(16));
+
+ EXPECT_EQ(V4I32->getVectorKind(), VectorKind::Generic);
+ EXPECT_FALSE(V4I32->isSVEType());
+ EXPECT_FALSE(V4I32->isScalable());
----------------
paulwalker-arm wrote:
Kind of feeds into my previous isFixedLength() comments, because I'd rather we expect the positive rather than expect not to see one of the negatives.
https://github.com/llvm/llvm-project/pull/221375
More information about the cfe-commits
mailing list