[llvm] ff33b6f - [Support][AArch64] Detect a few more host CPU features on AArch64
Danila Malyutin via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 22:30:35 PST 2022
Author: Danila Malyutin
Date: 2022-03-03T09:30:02+03:00
New Revision: ff33b6f90ac2ff60f5084e1c49ae583e122a7323
URL: https://github.com/llvm/llvm-project/commit/ff33b6f90ac2ff60f5084e1c49ae583e122a7323
DIFF: https://github.com/llvm/llvm-project/commit/ff33b6f90ac2ff60f5084e1c49ae583e122a7323.diff
LOG: [Support][AArch64] Detect a few more host CPU features on AArch64
Add detecton for lse, sve and sve2 on linux
Differential Revision: https://reviews.llvm.org/D119435
Added:
Modified:
llvm/lib/Support/Host.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index f6003b783245e..da4159ac3a1ad 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1706,6 +1706,9 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
.Case("asimd", "neon")
.Case("fp", "fp-armv8")
.Case("crc32", "crc")
+ .Case("atomics", "lse")
+ .Case("sve", "sve")
+ .Case("sve2", "sve2")
#else
.Case("half", "fp16")
.Case("neon", "neon")
More information about the llvm-commits
mailing list