rust-lang / rust-lang/rust-analyzer
Feature discussion : Show LLVM MIR passes + output assembly
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
Currently, when in a function, we have the option to see the generated HIL and MIR through Rust-Analyzer’s debug commands.
I would like to open the discussion on the feasibility of displaying the MIR for each pass and final resulting assembly, something that would look like what you can do on Compiler Explorer (Godbolt).
Would this make sense ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Rust-Analyzer’s existing debug commands for viewing generated HIL and MIR, then investigate how LLVM MIR passes and final assembly could be exposed similarly, using Compiler Explorer as the stated comparison. The issue does not name files or tests; completion would require an agreed design and a defined way to display pass-by-pass MIR and assembly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100