[clang] [AArch64] Add option -msve-streaming-vector-bits= . (PR #144611)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 3 09:20:29 PDT 2025
================
@@ -2261,6 +2261,23 @@ void Sema::checkTypeSupport(QualType Ty, SourceLocation Loc, ValueDecl *D) {
}
}
}
+
+ if (auto *VT = Ty->getAs<VectorType>();
+ VT && FD &&
+ (VT->getVectorKind() == VectorKind::SveFixedLengthData ||
+ VT->getVectorKind() == VectorKind::SveFixedLengthPredicate) &&
+ (LangOpts.VScaleMin != LangOpts.VScaleStreamingMin ||
+ LangOpts.VScaleMax != LangOpts.VScaleStreamingMax)) {
+ if (IsArmStreamingFunction(FD, /*IncludeLocallyStreaming=*/true)) {
+ Diag(Loc, diag::err_sve_fixed_vector_in_streaming_function) << Ty << 0;
----------------
sdesmalen-arm wrote:
nit:
```suggestion
Diag(Loc, diag::err_sve_fixed_vector_in_streaming_function) << Ty << /*Streaming*/ 0;
```
https://github.com/llvm/llvm-project/pull/144611
More information about the cfe-commits
mailing list