Initial AMD Zen 5 "Znver5" Support Merged For LLVM/Clang

Written by Michael Larabel in AMD on 17 September 2024 at 02:17 PM EDT. 3 Comments
AMD
Last week the initial AMD Zen 5 "znver5" enablement for LLVM/Clang was posted by an AMD compiler engineer. That code has since undergone review and merged for LLVM 20 Git and yesterday then back-ported for LLVM 19.

This initial AMD Zen 5 enablement for LLVM/Clang adds the "-march=znver5" support and exposes the new ISA capabilities of AMD Zen 5 processors. However, the tuning itself is still catering to the existing Zen 4 processors. Future AMD patches will work on properly tuning the Znver5 target for Zen 5 processors.

AMD Ryzen 9000 series CPUs


During the LLVM code review the question of AMD taking so long to submit this LLVM support was questioned, especially with the GCC support for Znver5 coming early in 2024. The response to the tardy AMD Zen 5 support in LLVM was described as:
"We have a dependency in libpfm for llvm which requires legal clearances. In future, we will make sure this gets addressed in advance and will try to upload our patches in sync with GCC patches. Apologies for the inconvenience."

AMD will be working on the tuned support for Zen 5 processors but it may still "take some time" as noted in another code review comment:
"I will upload the rebased code addressing the format errors shortly. Yes PRs will work for tuning changes. I think it will take some time."

The initial AMD Zen 5 support was merged prior to the weekend and now in LLVM 20 Git. This was then back-ported for LLVM 19 via a separate pull to avoid causing an ABI break in LLVM 19.

Hopefully it won't take too much longer before the Znver5 tuning for LLVM/Clang and GCC compilers are complete.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week