Clang 20 Compiler Adds Support For Xtensa CPU Target

Written by Michael Larabel in LLVM on 31 December 2024 at 06:33 AM EST. 15 Comments
LLVM
Back in early 2023 an Xtensa back-end was added to LLVM for the Cadence Tensilica Xtensa IP. 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.

Xtensa graphic from Cadence


See 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.
Related News
About The Author
Michael Larabel

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.

Popular News This Week