Skip to content

Commit c5f7a32

Browse files
authored
[X86] Add AMD Llano family detection (llvm#111312)
Very simple one liner, adds the missing detection for the Llano family which is essentially a refreshed K10: Documentation of the family id: https://en.wikichip.org/wiki/amd/cpuid#Family_18_.2812h.29 Documentation that it fits into amdfam10: https://en.wikipedia.org/wiki/AMD_10h#12h
1 parent 2edd897 commit c5f7a32

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)