[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
Thu Sep 10 09:53:51 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());
----------------
andykaylor wrote:
Done
https://github.com/llvm/llvm-project/pull/221375
More information about the cfe-commits
mailing list