Skip to content

Commit a92b0be

Browse files
committed
[X86] Add AMD Llano family detection
1 parent acf92a4 commit a92b0be

File tree

2 files changed

+2
-0
lines changed
  • compiler-rt/lib/builtins/cpu_model
  • llvm/lib/TargetParser

2 files changed

+2
-0
lines changed

compiler-rt/lib/builtins/cpu_model/x86.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ static const char *getAMDProcessorTypeAndSubtype(unsigned Family,
649649
CPU = "k8";
650650
break;
651651
case 16:
652+
case 18:
652653
CPU = "amdfam10";
653654
*Type = AMDFAM10H; // "amdfam10"
654655
switch (Model) {

llvm/lib/TargetParser/Host.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ static const char *getAMDProcessorTypeAndSubtype(unsigned Family,
10501050
CPU = "k8";
10511051
break;
10521052
case 16:
1053+
case 18:
10531054
CPU = "amdfam10";
10541055
*Type = X86::AMDFAM10H; // "amdfam10"
10551056
switch (Model) {

0 commit comments

Comments
 (0)