[llvm] [clang] [compiler-rt] [AArch64][SME] Add support for sme-fa64 (PR #70809)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 1 09:28:35 PDT 2023
================
@@ -491,13 +491,15 @@ bool AArch64Subtarget::isStreamingCompatible() const {
}
bool AArch64Subtarget::isNeonAvailable() const {
- return hasNEON() && !isStreaming() && !isStreamingCompatible();
+ if (hasSMEFA64())
+ return true;
+ return (hasNEON() && !isStreaming() && !isStreamingCompatible());
}
-bool AArch64Subtarget::isSVEAvailable() const{
- // FIXME: Also return false if FEAT_FA64 is set, but we can't do this yet
- // as we don't yet support the feature in LLVM.
- return hasSVE() && !isStreaming() && !isStreamingCompatible();
+bool AArch64Subtarget::isSVEAvailable() const {
+ if (hasSMEFA64())
----------------
sdesmalen-arm wrote:
Like above, this also needs to check for `hasSVE()`
https://github.com/llvm/llvm-project/pull/70809
More information about the cfe-commits
mailing list