gnu: clang-19: Add compiler-cpu-architectures entries.

* gnu/packages/llvm-meta.scm (clang-compiler-cpu-architectures): Add
entries for powerpc64le and x86_64 for new optimization architectures.

Change-Id: Ie89dd4cb17c36e0a9faba37f54c0c24bcf3e7727
This commit is contained in:
Efraim Flashner 2024-09-30 11:19:49 +03:00
parent 2903d12a0d
commit edfdc905d9
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -30,10 +30,29 @@ (define (clang-compiler-cpu-architectures version)
;;
;; and then filtering against clang/test/Misc/target-invalid-cpu-note.c
("powerpc64le"
,@(if (version>=? version "11.0")
'("power8" "power9" "power10" "powerpc64le")))
,@(cond
((version>=? version "19.0")
'("power8" "power9" "power10" "power11" "powerpc64le"))
((version>=? version "11.0")
'("power8" "power9" "power10" "powerpc64le"))
(else '())))
("x86_64"
,@(cond
((version>=? version "19.0")
'("nocona" "core2" "penryn" "bonnell" "atom" "silvermont" "slm"
"goldmont" "goldmont-plus" "tremont" "nehalem" "corei7" "westmere"
"sandybridge" "corei7-avx" "ivybridge" "core-avx-i" "haswell"
"core-avx2" "broadwell" "skylake" "skylake-avx512" "skx"
"cascadelake" "cooperlake" "cannonlake" "icelake-client"
"rocketlake" "icelake-server" "tigerlake" "sapphirerapids"
"alderlake" "raptorlake" "arrowlake" "arrowlake-s" "lunarlake"
"gracemont" "pantherlake" "meteorlake" "sierraforest" "grandridge"
"graniterapids" "graniterapids-d" "emeraldrapids"
"clearwaterforest" "knl" "knm" "k8" "athlon64" "athlon-fx"
"opteron" "k8-sse3" "athlon64-sse3" "opteron-sse3" "amdfam10"
"barcelona" "btver1" "btver2" "bdver1" "bdver2" "bdver3" "bdver4"
"znver1" "znver2" "znver3" "znver4" "znver5" "x86-64" "x86-64-v2"
"x86-64-v3" "x86-64-v4"))
((version>=? version "18.0")
'("nocona" "core2" "penryn" "bonnell" "atom" "silvermont" "slm"
"goldmont" "goldmont-plus" "tremont" "nehalem" "corei7" "westmere"