[clang] [llvm] [ABI][AARCH64][NFC] Make SveCount a unique type (PR #245767)
Madhur Amilkanthwar via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 23:10:51 PST 2026
================
@@ -223,6 +223,8 @@ ArgInfo AArch64TargetInfo::classifyArgumentType(
NPRN = std::min(NPRN + TT->getNumVectors(), 4u);
else
NSRN = std::min(NSRN + TT->getNumVectors(), 8u);
+ } else if (Ty->isSveCount()) {
----------------
madhur13490 wrote:
Could you extend `ClassifyPureScalableRegisterBudget` with an SVCount argument? This branch now advances the predicate-register counter (NPRN), but existing tests only verify direct classification. A sequence such as {SVBool, SVBool, SVCount, TwoPred, Pred} would catch accidentally omitting this increment or charging the wrong register bank.
https://github.com/llvm/llvm-project/pull/245767
More information about the cfe-commits
mailing list