File tree Expand file tree Collapse file tree 2 files changed +54
-4
lines changed
compiler-rt/lib/builtins/cpu_model Expand file tree Collapse file tree 2 files changed +54
-4
lines changed Original file line number Diff line number Diff line change @@ -461,16 +461,31 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
461
461
// Alderlake:
462
462
case 0x97 :
463
463
case 0x9a :
464
+ CPU = "alderlake" ;
465
+ * Type = INTEL_COREI7 ;
466
+ * Subtype = INTEL_COREI7_ALDERLAKE ;
467
+ break ;
468
+
464
469
// Raptorlake:
465
470
case 0xb7 :
466
471
case 0xba :
467
472
case 0xbf :
473
+ CPU = "raptorlake" ;
474
+ * Type = INTEL_COREI7 ;
475
+ * Subtype = INTEL_COREI7_ALDERLAKE ;
476
+ break ;
477
+
468
478
// Meteorlake:
469
479
case 0xaa :
470
480
case 0xac :
481
+ CPU = "meteorlake" ;
482
+ * Type = INTEL_COREI7 ;
483
+ * Subtype = INTEL_COREI7_ALDERLAKE ;
484
+ break ;
485
+
471
486
// Gracemont:
472
487
case 0xbe :
473
- CPU = "alderlake " ;
488
+ CPU = "gracement " ;
474
489
* Type = INTEL_COREI7 ;
475
490
* Subtype = INTEL_COREI7_ALDERLAKE ;
476
491
break ;
@@ -486,9 +501,14 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
486
501
487
502
// Arrowlake S:
488
503
case 0xc6 :
504
+ CPU = "arrowlake-s" ;
505
+ * Type = INTEL_COREI7 ;
506
+ * Subtype = INTEL_COREI7_ARROWLAKE_S ;
507
+ break ;
508
+
489
509
// Lunarlake:
490
510
case 0xbd :
491
- CPU = "arrowlake-s " ;
511
+ CPU = "lunarlake " ;
492
512
* Type = INTEL_COREI7 ;
493
513
* Subtype = INTEL_COREI7_ARROWLAKE_S ;
494
514
break ;
@@ -510,6 +530,11 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
510
530
511
531
// Emerald Rapids:
512
532
case 0xcf :
533
+ CPU = "emeraldrapids" ;
534
+ * Type = INTEL_COREI7 ;
535
+ * Subtype = INTEL_COREI7_SAPPHIRERAPIDS ;
536
+ break ;
537
+
513
538
// Sapphire Rapids:
514
539
case 0x8f :
515
540
CPU = "sapphirerapids" ;
Original file line number Diff line number Diff line change @@ -808,16 +808,31 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
808
808
// Alderlake:
809
809
case 0x97 :
810
810
case 0x9a :
811
+ CPU = " alderlake" ;
812
+ *Type = X86::INTEL_COREI7;
813
+ *Subtype = X86::INTEL_COREI7_ALDERLAKE;
814
+ break ;
815
+
811
816
// Gracemont
812
817
case 0xbe :
818
+ CPU = " gracement" ;
819
+ *Type = X86::INTEL_COREI7;
820
+ *Subtype = X86::INTEL_COREI7_ALDERLAKE;
821
+ break ;
822
+
813
823
// Raptorlake:
814
824
case 0xb7 :
815
825
case 0xba :
816
826
case 0xbf :
827
+ CPU = " raptorlake" ;
828
+ *Type = X86::INTEL_COREI7;
829
+ *Subtype = X86::INTEL_COREI7_ALDERLAKE;
830
+ break ;
831
+
817
832
// Meteorlake:
818
833
case 0xaa :
819
834
case 0xac :
820
- CPU = " alderlake " ;
835
+ CPU = " meteorlake " ;
821
836
*Type = X86::INTEL_COREI7;
822
837
*Subtype = X86::INTEL_COREI7_ALDERLAKE;
823
838
break ;
@@ -833,9 +848,14 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
833
848
834
849
// Arrowlake S:
835
850
case 0xc6 :
851
+ CPU = " arrowlake-s" ;
852
+ *Type = X86::INTEL_COREI7;
853
+ *Subtype = X86::INTEL_COREI7_ARROWLAKE_S;
854
+ break ;
855
+
836
856
// Lunarlake:
837
857
case 0xbd :
838
- CPU = " arrowlake-s " ;
858
+ CPU = " lunarlake " ;
839
859
*Type = X86::INTEL_COREI7;
840
860
*Subtype = X86::INTEL_COREI7_ARROWLAKE_S;
841
861
break ;
@@ -871,6 +891,11 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
871
891
872
892
// Emerald Rapids:
873
893
case 0xcf :
894
+ CPU = " emeraldrapids" ;
895
+ *Type = X86::INTEL_COREI7;
896
+ *Subtype = X86::INTEL_COREI7_SAPPHIRERAPIDS;
897
+ break ;
898
+
874
899
// Sapphire Rapids:
875
900
case 0x8f :
876
901
CPU = " sapphirerapids" ;
You can’t perform that action at this time.
0 commit comments