[llvm] r267670 - [Support][X86] Add a few more Intel model numbers to getHostCPUName for airmont and knl.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 22:17:01 PDT 2016


Author: ctopper
Date: Wed Apr 27 00:17:00 2016
New Revision: 267670

URL: http://llvm.org/viewvc/llvm-project?rev=267670&view=rev
Log:
[Support][X86] Add a few more Intel model numbers to getHostCPUName for airmont and knl.

Modified:
    llvm/trunk/lib/Support/Host.cpp

Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=267670&r1=267669&r2=267670&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed Apr 27 00:17:00 2016
@@ -390,8 +390,12 @@ StringRef sys::getHostCPUName() {
       case 0x4d:
       case 0x5a:
       case 0x5d:
+      case 0x4c: // really airmont
         return "silvermont";
 
+      case 0x57:
+        return "knl";
+
       default: // Unknown family 6 CPU, try to guess.
         if (HasAVX512)
           return "knl";




More information about the llvm-commits mailing list