[compiler-rt] [llvm] [X86] Add AMD Llano family detection (PR #111312)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 6 15:41:51 PDT 2024
https://github.com/RipleyTom updated https://github.com/llvm/llvm-project/pull/111312
>From a92b0bea6088b34f20381e810ad2ede40a8635a5 Mon Sep 17 00:00:00 2001
From: RipleyTom <RipleyTom at users.noreply.github.com>
Date: Sun, 6 Oct 2024 22:57:34 +0200
Subject: [PATCH] [X86] Add AMD Llano family detection
---
compiler-rt/lib/builtins/cpu_model/x86.c | 1 +
llvm/lib/TargetParser/Host.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/compiler-rt/lib/builtins/cpu_model/x86.c b/compiler-rt/lib/builtins/cpu_model/x86.c
index dbe6094541f63d..23f8fa3e1fd490 100644
--- a/compiler-rt/lib/builtins/cpu_model/x86.c
+++ b/compiler-rt/lib/builtins/cpu_model/x86.c
@@ -649,6 +649,7 @@ static const char *getAMDProcessorTypeAndSubtype(unsigned Family,
CPU = "k8";
break;
case 16:
+ case 18:
CPU = "amdfam10";
*Type = AMDFAM10H; // "amdfam10"
switch (Model) {
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index 6e175f25c4882c..6e1f4b6052bda8 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -1050,6 +1050,7 @@ static const char *getAMDProcessorTypeAndSubtype(unsigned Family,
CPU = "k8";
break;
case 16:
+ case 18:
CPU = "amdfam10";
*Type = X86::AMDFAM10H; // "amdfam10"
switch (Model) {
More information about the llvm-commits
mailing list