News: 0001639154

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

LLVM/Clang Lands Initial Compiler Targeting For Hygon x86 CPUs

([LLVM] 4 Hours Ago Hygon + LLVM Clang)


Following the recent [1]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.

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



[1] https://www.phoronix.com/news/Hygon-C86-4G-CPU-GCC-17

[2] https://github.com/llvm/llvm-project/commit/00e3e6f4cbbba60ddfcd648269dd5f2e8d799cbc



Mental Ground Zero:
The location where one visualizes oneself during the dropping
of the atomic bomb; frequently, a shopping mall.
-- Douglas Coupland, "Generation X: Tales for an Accelerated
Culture"