[X86] Add missing Zen3 model subtypes
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 10 Nov 2022 10:36:00 +0000 (10:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 10 Nov 2022 10:36:09 +0000 (10:36 +0000)
commit261b3f71c03456a5f32757b844482d1680fd14ea
treeef488f6ff6759ebf5251d0767e139be49c65671b
parentaf0f151bd38ef783397a3c3040a59bf2126447a5
[X86] Add missing Zen3 model subtypes

This patch adds support for detecting all current Zen/Zen3+ submodels

Based off a mixture of https://github.com/torvalds/linux/blob/master/drivers/hwmon/k10temp.c#L436 and InstLatx64 https://github.com/InstLatx64/InstLatx64/tree/master/AuthenticAMD CPUID dumps and confirmed by @GGanesh

Differential Revision: https://reviews.llvm.org/D137695
compiler-rt/lib/builtins/cpu_model.c
llvm/lib/Support/Host.cpp