[llvm] [AArch64] Consider runtime mode when deciding to use SVE for fixed-length vectors. (PR #96081)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 01:42:48 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());
----------------
sdesmalen-arm wrote:
Good point, I agree that it shouldn't have been included here. I'll remove it.
https://github.com/llvm/llvm-project/pull/96081
More information about the llvm-commits
mailing list