
I was delighted to check this morning and see there's finally a pull request pending for adding Znver5 to upstream LLVM... Yesterday this pull request was opened by an AMD compiler engineer for adding the Zen 5 support to upstream open-source LLVM.
This adds the "-march=znver5" support for Clang, the Family 1Ah detection, and enabling the new instructions added into Zen 5 over Zen 4. This LLVM patch is still making use of the AMD Zen 4 tuning data without any new tuning metrics submitted by AMD. In time they'll hopefully have the tuned support for Zen 5 CPUs ready for upstreaming.
One bit I did enjoy in going through this compiler patch is that as a code comment they've added a bit of a decoder for the AMD Zen 5 model IDs... So far the GCC and Linux kernel patches and other Family 1Ah patches have just treated the models as all Zen 5 as model IDs 128 or less. This code comment for the LLVM Znver5 patch actually lays out what models belong to what codenames. Codenames covered include Breithorn, Breithorn-Dense, Strix 1, Strix 2, Strix 3, Granite Ridge, Weisshorn, Krackan1, and Sarlak. Those codenames really shouldn't come as a surprise but I don't believe "Strix 3" has been brought up in rumors yet. AMD "Weisshorn" was previously reported elsewhere as rumored to be a Zen 6 codename but given that it's showing up as part of this Zen 5 listing leads to that potentially being an inaccurate description.
In any case this Znver5 patch for LLVM is now undergoing review for hopefully merging soon to LLVM Git. The timing is a bit unfortunate though. Besides coming more than six months after the initial GCC Znver5 patch , this pull request is coming just days before the LLVM 19 compiler is being released as stable -- and that code being branched back in August. LLVM 19 stable will be out this week or next and it's too bad this Znver5 support didn't make it into that six-month compiler release but hopefully it will be back-ported to one of the LLVM 19.1 point releases otherwise users will need to wait until LLVM 20 around March of next year. For those not wanting to wait on a supported compiler release or looking for something to run on your aging enterprise Linux distribution, AMD will presumably release soon an updated version of its LLVM-based AOCC compiler with Zen 5 support.