[PATCH] D117207: [AArch64] Add native CPU detection for Neoverse-V1.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 04:59:43 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb92102a6d79f: [AArch64] Add native CPU detection for Neoverse-V1. (authored by sdesmalen).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117207/new/
https://reviews.llvm.org/D117207
Files:
llvm/lib/Support/Host.cpp
llvm/unittests/Support/Host.cpp
Index: llvm/unittests/Support/Host.cpp
===================================================================
--- llvm/unittests/Support/Host.cpp
+++ llvm/unittests/Support/Host.cpp
@@ -102,6 +102,9 @@
"CPU part : 0xd03"),
"cortex-a53");
+ EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
+ "CPU part : 0xd40"),
+ "neoverse-v1");
EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
"CPU part : 0xd0c"),
"neoverse-n1");
Index: llvm/lib/Support/Host.cpp
===================================================================
--- llvm/lib/Support/Host.cpp
+++ llvm/lib/Support/Host.cpp
@@ -213,6 +213,7 @@
.Case("0xd44", "cortex-x1")
.Case("0xd0c", "neoverse-n1")
.Case("0xd49", "neoverse-n2")
+ .Case("0xd40", "neoverse-v1")
.Default("generic");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117207.399636.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220113/69640031/attachment.bin>
More information about the llvm-commits
mailing list