As of today the LLVM Git compiler finally has initial support for AMD Zen 4 CPUs with the -march=znver4 option now wired up for Ryzen 7000 series and EPYC 9004 series processors…
Source: Phoronix – Initial AMD Zen 4 Enablement Lands In LLVM Clang 16.0