diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-05-02 15:47:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-05-02 15:47:07 +0000 |
commit | 6004573ecfbfe67e23a73fd9ce11aafb024a500f (patch) | |
tree | 9135076f40d2e7f7cf8d51a0a34f9eceeedba714 /llvm/lib/Support | |
parent | 10b1502733995cc6a7be8399d1733ccf3e266b9c (diff) | |
download | bcm5719-llvm-6004573ecfbfe67e23a73fd9ce11aafb024a500f.tar.gz bcm5719-llvm-6004573ecfbfe67e23a73fd9ce11aafb024a500f.zip |
Add a description for AMD's bdver4 (aka Excavator).
This is just bdver3 + AVX2 + BMI2.
llvm-svn: 207847
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index dc90c8cc4ae..83f25463a14 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -435,6 +435,8 @@ StringRef sys::getHostCPUName() { case 21: if (!HasAVX) // If the OS doesn't support AVX provide a sane fallback. return "btver1"; + if (Model >= 0x50) + return "bdver4"; // 50h-6Fh: Excavator if (Model >= 0x30) return "bdver3"; // 30h-3Fh: Steamroller if (Model >= 0x10) |