[llvm] [clang] [AArch64][SME] Implement inline-asm clobbers for za/zt0 (PR #79276)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 00:33:54 PST 2024
================
@@ -10702,6 +10702,14 @@ AArch64TargetLowering::getRegForInlineAsmConstraint(
parseConstraintCode(Constraint) != AArch64CC::Invalid)
return std::make_pair(unsigned(AArch64::NZCV), &AArch64::CCRRegClass);
+ if (StringRef("{za}").equals_insensitive(Constraint)) {
+ return std::make_pair(unsigned(AArch64::ZA), &AArch64::MPRRegClass);
+ }
+
+ if (StringRef("{zt0}").equals_insensitive(Constraint)) {
----------------
sdesmalen-arm wrote:
```suggestion
if (Constraint == "zt0") {
```
?
https://github.com/llvm/llvm-project/pull/79276
More information about the cfe-commits
mailing list