[llvm] [AArch64] Consider runtime mode when deciding to use SVE for fixed-length vectors. (PR #96081)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 10:31:00 PDT 2024
================
@@ -185,6 +185,12 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
(hasSMEFA64() || (!isStreaming() && !isStreamingCompatible()));
}
+ /// Returns true if the target has access to either the full range of SVE instructions,
+ /// or the streaming-compatible subset of SVE instructions.
+ bool isSVEorStreamingSVEAvailable() const {
+ return hasSVE() || hasSMEFA64() || (hasSME() && isStreaming());
----------------
paulwalker-arm wrote:
Is `SMEFA64` relevant? The feature means SVE and NEON instructions are available when in streaming mode, but you still need to be in streaming mode to execute them. Does it add any new information to the question this function is answering.
https://github.com/llvm/llvm-project/pull/96081
More information about the llvm-commits
mailing list