diff options
author | Freddy Ye <freddy.ye@intel.com> | 2023-07-25 13:47:45 +0800 |
---|---|---|
committer | Freddy Ye <freddy.ye@intel.com> | 2023-07-25 13:48:31 +0800 |
commit | 6d23a3faa4e699681df88054611d35da46278d92 (patch) | |
tree | dae9d97f425a49b01495c4422c9496a6062d0833 /compiler-rt | |
parent | 3cd4afce5b18c1d179a53b21eae93122560b17c7 (diff) | |
download | llvm-6d23a3faa4e699681df88054611d35da46278d92.zip llvm-6d23a3faa4e699681df88054611d35da46278d92.tar.gz llvm-6d23a3faa4e699681df88054611d35da46278d92.tar.bz2 |
[X86] Support -march=graniterapids-d and update -march=graniterapids
Reviewed By: pengfei, RKSimon, skan
Differential Revision: https://reviews.llvm.org/D155798
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/builtins/cpu_model.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/cpu_model.c b/compiler-rt/lib/builtins/cpu_model.c index 20a03e8..36eb696 100644 --- a/compiler-rt/lib/builtins/cpu_model.c +++ b/compiler-rt/lib/builtins/cpu_model.c @@ -113,6 +113,7 @@ enum ProcessorSubtypes { ZHAOXIN_FAM7H_LUJIAZUI, AMDFAM19H_ZNVER4, INTEL_COREI7_GRANITERAPIDS, + INTEL_COREI7_GRANITERAPIDS_D, CPU_SUBTYPE_MAX }; @@ -474,13 +475,19 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model, break; // Granite Rapids: - case 0xae: case 0xad: CPU = "graniterapids"; *Type = INTEL_COREI7; *Subtype = INTEL_COREI7_GRANITERAPIDS; break; + // Granite Rapids D: + case 0xae: + CPU = "graniterapids-d"; + *Type = INTEL_COREI7; + *Subtype = INTEL_COREI7_GRANITERAPIDS_D; + break; + case 0x1c: // Most 45 nm Intel Atom processors case 0x26: // 45 nm Atom Lincroft case 0x27: // 32 nm Atom Medfield |