aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-02-21 17:12:03 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-02-21 17:12:03 +0000
commitaa63dc0e9a0c54c020be367ee59d867f8ae02872 (patch)
treed8d6e310b5a8121bc7f574cc29c4345a3dff7910 /llvm/lib/Support/Host.cpp
parent979a11d5b21f375450dc89970f5c6320a44cf8f0 (diff)
downloadllvm-aa63dc0e9a0c54c020be367ee59d867f8ae02872.zip
llvm-aa63dc0e9a0c54c020be367ee59d867f8ae02872.tar.gz
llvm-aa63dc0e9a0c54c020be367ee59d867f8ae02872.tar.bz2
Fix LLVM's handling and detection of skylake and cannonlake CPUs
Summary: - Rename `"skylake"` == SkylakeServerProc to `"skylake-avx512"` - Change `"skylake"` to denote SkylakeClientProc - Fix the detection of cpu family 6 and model 94 to be SkylakeClientProc instead of SkylakeServerProc - Remove the `"cnl"` for CannonLake Reviewers: craig.topper, delena Subscribers: zansari, echristo, qcolombet, RKSimon, spatel, DavidKreitzer, mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D17090 llvm-svn: 261482
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index ffad1d7..1ca8eac 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -373,6 +373,7 @@ StringRef sys::getHostCPUName() {
// Skylake:
case 78:
+ return "skylake-avx512";
case 94:
return "skylake";