[PATCH] D58343: Enablement for AMD znver2 architecture - skeleton patch
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 18 09:04:59 PST 2019
craig.topper added inline comments.
================
Comment at: include/llvm/Support/X86TargetParser.def:93
X86_CPU_SUBTYPE_COMPAT("znver1", AMDFAM17H_ZNVER1, "znver1")
+X86_CPU_SUBTYPE_COMPAT("znver2", AMDFAM17H_ZNVER2, "znver2")
X86_CPU_SUBTYPE_COMPAT("ivybridge", INTEL_COREI7_IVYBRIDGE, "ivybridge")
----------------
craig.topper wrote:
> This list must be kept in the same order as libgcc's implementation for __builtin_cpu_is. New entries can't be added in the middle. If libgcc doesn't support znver2 yet, then you should use X86_CPU_SUBTYPE instead of X86_CPU_SUBTYPE_COMPAT.
Looks like libgcc does support it. It should be just below ICELAKE_SERVER. https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/i386/cpuinfo.h
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58343/new/
https://reviews.llvm.org/D58343
More information about the llvm-commits
mailing list