mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 05:35:11 +00:00
[cpu-detection] Return amdfam10 for all subtypes. Address Bug 28067.
Summary: Remove architecture subtype from the string returned by getHostCPUName(). String matching done on type. Reviewers: llvm-commits, echristo Subscribers: mehdi_amini Differential Revision: http://reviews.llvm.org/D21193 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22f7a63da6
commit
539e7710fb
@ -869,16 +869,7 @@ StringRef sys::getHostCPUName() {
|
||||
return "athlon";
|
||||
}
|
||||
case AMDFAM10H:
|
||||
switch (Subtype) {
|
||||
case AMDFAM10H_BARCELONA:
|
||||
return "amdfam10-barcelona";
|
||||
case AMDFAM10H_SHANGHAI:
|
||||
return "amdfam10-shanghai";
|
||||
case AMDFAM10H_ISTANBUL:
|
||||
return "amdfam10-istanbul";
|
||||
default:
|
||||
return "amdfam10";
|
||||
}
|
||||
case AMDFAM14H:
|
||||
return "btver1";
|
||||
case AMDFAM15H:
|
||||
|
Loading…
Reference in New Issue
Block a user