VOOZH about

URL: https://www.phoronix.com/news/Hygon-LLVM-Clang-Targeting

⇱ LLVM/Clang Lands Initial Compiler Targeting For Hygon x86 CPUs - Phoronix


👁 Phoronix

LLVM/Clang Lands Initial Compiler Targeting For Hygon x86 CPUs

Written by Michael Larabel in LLVM on 9 June 2026 at 08:23 AM EDT. 2 Comments
Following the recent Hygon C86-4G CPU support added to the GCC 17 compiler, the open-source LLVM Clang compiler has similarly seen Hygon c86-4g-m4 / c86-4g-m6 / c86-4g-m7 CPU support merged.

Hitting LLVM Git today ahead of the LLVM/Clang 23.1 release later in the year is initial targeting for Hygon x86 CPUs with the c86-4g-m4, c86-4g-m6, and c86-4g-m7 CPU targets.

The initial merge includes adding these CPU targets to LLVM and Clang, host CPU detection, compiler-rt CPU model detection, Hygon added to the optimizer tests, and also the scheduler models for Hygon architecture CPUs.

These C86-4G x86 Chinese CPUs have previously been reported to perform similar to roughly Intel Raptor Lake processors.

👁 Hygon enablement in LLVM Clang


This commit lands that initial compiler targeting for LLVM/Clang.

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.