You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By now developers have to compile whole custom Rust toolchain to work with xtensa isa. Is there any possibility to merge xtensa instruction set support into main branch Rust? Then developers can install them easily by using rustup toolchain add command.
We have indeed got the first patch set merged into LLVM, however that set of patches is not yet sufficient for a working Rust compiler.
We will update the tracking issue with the next series of patches as soon as we post them for review. You can find the entire set of Xtensa patches here: espressif/llvm-project#62.
Hey guys, just wanted to ping this as it seems there is some new traction over at the tracking issue espressif/llvm-project#4 seems this might be coming pretty close
My understanding (somebody can correct me if I'm wrong) is that there are still a large number of patches which need to be merged into LLVM before full Xtensa support is realized. Once this is complete, it will take time for these changes to propagate into Rust as well.
Activity
mcilloni commentedon Oct 28, 2021
I don't think this can be done until the Xtensa backend is merged into upstream LLVM, but I could be wrong.
MabezDev commentedon Oct 28, 2021
@mcilloni is correct, Rust won't accept Xtensa support upstream without atleast an experimental backend in LLVM upstream.
With the riscv chips, we've already upstreamed everything we can.
stappersg commentedon Apr 24, 2022
Where to check the status?
URLs that I'm missing:
MabezDev commentedon Apr 26, 2022
paulocsanz commentedon Feb 12, 2023
espressif/llvm-project#4 implies that all of the repo's changes have been merged to upstream LLVM, although the PR hasn't been closed yet.
What are the next steps?
igrr commentedon Feb 12, 2023
We have indeed got the first patch set merged into LLVM, however that set of patches is not yet sufficient for a working Rust compiler.
We will update the tracking issue with the next series of patches as soon as we post them for review. You can find the entire set of Xtensa patches here: espressif/llvm-project#62.
noahbliss commentedon Mar 1, 2024
Hey guys, just wanted to ping this as it seems there is some new traction over at the tracking issue espressif/llvm-project#4 seems this might be coming pretty close
jessebraham commentedon Mar 1, 2024
My understanding (somebody can correct me if I'm wrong) is that there are still a large number of patches which need to be merged into LLVM before full Xtensa support is realized. Once this is complete, it will take time for these changes to propagate into Rust as well.
SergioGasquez commentedon Mar 5, 2025
Quick update as we've made some progress about upstreaming our Rust patches, the following PRs were merged:
+forced-atomics
feature to esp32s2 no_std target rust-lang/rust#133599We are still awaiting on the LLVM upstreaming effort to be able to continue upstreaming our Rust patches.