projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe49474
)
Add support for autodetection of ADM bdver2.
author
Roman Divacky
<rdivacky@freebsd.org>
Tue, 26 Feb 2013 22:41:01 +0000
(22:41 +0000)
committer
Roman Divacky
<rdivacky@freebsd.org>
Tue, 26 Feb 2013 22:41:01 +0000
(22:41 +0000)
llvm-svn: 176130
llvm/lib/Support/Host.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Host.cpp
b/llvm/lib/Support/Host.cpp
index
afbf0bf
..
b9bbcb9
100644
(file)
--- a/
llvm/lib/Support/Host.cpp
+++ b/
llvm/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";
}