[llvm] r176130 - Add support for autodetection of ADM bdver2.
Roman Divacky
rdivacky at freebsd.org
Tue Feb 26 14:41:01 PST 2013
Author: rdivacky
Date: Tue Feb 26 16:41:01 2013
New Revision: 176130
URL: http://llvm.org/viewvc/llvm-project?rev=176130&view=rev
Log:
Add support for autodetection of ADM bdver2.
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=176130&r1=176129&r2=176130&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Tue Feb 26 16:41:01 2013
@@ -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";
}
More information about the llvm-commits
mailing list