Add support for autodetection of ADM bdver2.
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 26 Feb 2013 22:41:01 +0000 (22:41 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 26 Feb 2013 22:41:01 +0000 (22:41 +0000)
llvm-svn: 176130

llvm/lib/Support/Host.cpp

index afbf0bf..b9bbcb9 100644 (file)
@@ -331,7 +331,10 @@ std::string sys::getHostCPUName() {
       case 20:
         return "btver1";
       case 21:
-        return "bdver1";
+        if (Model <= 15)
+          return "bdver1";
+        else if (Model <= 31)
+          return "bdver2";
     default:
       return "generic";
     }