[clang] [Clang][AArch64] Add pessimistic vscale_range when sve is in target-f… (PR #137624)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Thu May 1 11:11:52 PDT 2025


================
@@ -794,12 +794,14 @@ AArch64TargetInfo::getTargetBuiltins() const {
 
 std::optional<std::pair<unsigned, unsigned>>
 AArch64TargetInfo::getVScaleRange(const LangOptions &LangOpts,
-                                  bool IsArmStreamingFunction) const {
+                                  bool IsArmStreamingFunction,
+                                  llvm::StringMap<bool> *FeatureMap) const {
   if (LangOpts.VScaleMin || LangOpts.VScaleMax)
     return std::pair<unsigned, unsigned>(
         LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax);
 
-  if (hasFeature("sve") || (IsArmStreamingFunction && hasFeature("sme")))
+  if (hasFeature("sve") || (IsArmStreamingFunction && hasFeature("sme")) ||
----------------
efriedma-quic wrote:

While you're here, please also fix the SME feature check.

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


More information about the cfe-commits mailing list