[compiler-rt] [compiler-rt] Restore unsigned value in struct, use enum only in function (PR #165048)
Mikołaj Piróg via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 25 06:13:54 PDT 2025
================
@@ -823,14 +847,19 @@ static const char *getAMDProcessorTypeAndSubtype(
// Models 60h-6Fh (Krackan1).
// Models 70h-77h (Sarlak).
CPU = "znver5";
- *Subtype = AMDFAM1AH_ZNVER5;
+ Subtype = AMDFAM1AH_ZNVER5;
break; // "znver5"
}
break;
default:
break; // Unknown AMD CPU.
}
+ if (Type != CPU_TYPE_MAX)
+ __cpu_model.__cpu_type = Type;
+ if (Subtype != CPU_SUBTYPE_MAX)
+ __cpu_model.__cpu_subtype = Subtype;
----------------
mikolaj-pirog wrote:
I don't follow, I think one of your comments wasn't posted
https://github.com/llvm/llvm-project/pull/165048
More information about the llvm-commits
mailing list