aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2013-02-26 22:41:01 +0000
committerRoman Divacky <rdivacky@freebsd.org>2013-02-26 22:41:01 +0000
commitebbb359dd6deb33ce37fe81d491c96d8c32a4509 (patch)
tree4a853a14adf812e140b35df779554c527755c9ea
parentd61c840fcda18675c131bf86bb6d4498fcb6c272 (diff)
downloadexternal_llvm-ebbb359dd6deb33ce37fe81d491c96d8c32a4509.zip
external_llvm-ebbb359dd6deb33ce37fe81d491c96d8c32a4509.tar.gz
external_llvm-ebbb359dd6deb33ce37fe81d491c96d8c32a4509.tar.bz2
Add support for autodetection of ADM bdver2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176130 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Host.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp
index afbf0bf..b9bbcb9 100644
--- a/lib/Support/Host.cpp
+++ b/lib/Support/Host.cpp
@@ -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";
}