Skip to content

Commit

Permalink
Add support for autodetection of ADM bdver2.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176130 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rdivacky committed Feb 26, 2013
1 parent d61c840 commit ebbb359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Support/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit ebbb359

Please sign in to comment.