News: 0001515823

  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)

Clang 20 Compiler Adds Support For Xtensa CPU Target

([LLVM] 5 Hours Ago LLVM Clang 20 + Xtensa)


Back in early 2023 [1]an Xtensa back-end was added to LLVM for the Cadence Tensilica Xtensa IP. [2]Xtensa is used for DSPs, micro-controllers, and this 32-bit RISC architecture is also used for other hardware like data processing engines. Two years after the LLVM back-end was introduced, the Clang C/C++ compiler has added Xtensa target support.

While Xtensa isn't too popular, there remains a devoted group of developers working on the LLVM/Clang support for this architecture. There also is the forked/downstream version of LLVM/Clang for Xtensa support. Merged this past week is now having upstream support in the Clang compiler for targeting Xtensa.

See [3]this merge request for the discussions over the new target and the arguments still being made in favor of having the Xtensa support in mainline. This newly-merged code will be part of the LLVM 20.0 release in the early months of the new year.



[1] https://www.phoronix.com/news/LLVM-Xtensa-Backend

[2] https://www.phoronix.com/search/Xtensa

[3] https://github.com/llvm/llvm-project/pull/118008



blackshard

caligula

Raka555

Gamer1227

Q: Minnesotans ask, "Why aren't there more pharmacists from Alabama?"
A: Easy. It's because they can't figure out how to get the little
bottles into the typewriter.