Skip to content

Commit 1258872

Browse files
committed
Add changes in Host.cpp
1 parent 6a852d9 commit 1258872

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

llvm/lib/TargetParser/Host.cpp

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,16 +808,31 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
808808
// Alderlake:
809809
case 0x97:
810810
case 0x9a:
811+
CPU = "alderlake";
812+
*Type = X86::INTEL_COREI7;
813+
*Subtype = X86::INTEL_COREI7_ALDERLAKE;
814+
break;
815+
811816
// Gracemont
812817
case 0xbe:
818+
CPU = "gracement";
819+
*Type = X86::INTEL_COREI7;
820+
*Subtype = X86::INTEL_COREI7_ALDERLAKE;
821+
break;
822+
813823
// Raptorlake:
814824
case 0xb7:
815825
case 0xba:
816826
case 0xbf:
827+
CPU = "raptorlake";
828+
*Type = X86::INTEL_COREI7;
829+
*Subtype = X86::INTEL_COREI7_ALDERLAKE;
830+
break;
831+
817832
// Meteorlake:
818833
case 0xaa:
819834
case 0xac:
820-
CPU = "alderlake";
835+
CPU = "meteorlake";
821836
*Type = X86::INTEL_COREI7;
822837
*Subtype = X86::INTEL_COREI7_ALDERLAKE;
823838
break;
@@ -833,9 +848,14 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
833848

834849
// Arrowlake S:
835850
case 0xc6:
851+
CPU = "arrowlake-s";
852+
*Type = X86::INTEL_COREI7;
853+
*Subtype = X86::INTEL_COREI7_ARROWLAKE_S;
854+
break;
855+
836856
// Lunarlake:
837857
case 0xbd:
838-
CPU = "arrowlake-s";
858+
CPU = "lunarlake";
839859
*Type = X86::INTEL_COREI7;
840860
*Subtype = X86::INTEL_COREI7_ARROWLAKE_S;
841861
break;
@@ -871,6 +891,11 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
871891

872892
// Emerald Rapids:
873893
case 0xcf:
894+
CPU = "emeraldrapids";
895+
*Type = X86::INTEL_COREI7;
896+
*Subtype = X86::INTEL_COREI7_SAPPHIRERAPIDS;
897+
break;
898+
874899
// Sapphire Rapids:
875900
case 0x8f:
876901
CPU = "sapphirerapids";

0 commit comments

Comments
 (0)