[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

David Sherwood via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 27 06:55:35 PST 2025


================
@@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions &LangOpts) const {
     return std::pair<unsigned, unsigned>(
         LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax);
 
-  if (hasFeature("sve"))
+  if (hasFeature("sve") || hasFeature("sme"))
----------------
david-arm wrote:

In this situation isn't it the case that SVE will only be available in streaming mode? I guess your reasoning here is that for normal functions (not streaming or streaming-compatible) the vscale_range attribute should be harmless, i.e. that it does not imply scalable vector support?

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


More information about the cfe-commits mailing list