bytecodealliance / bytecodealliance/wasmtime
Cranelift: Value labels for displaying IR
Open
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 121
Description
Being able to attribute textual labels to IR values that would then be shown in the textual IR representation generated by `display` would greatly benefit the readability of CLIR.
This could easily be implemented outside of cranelift, but not without rewriting pretty much all of the machinery in `cranelift_codegen::write`, which feels like a waste.
Implementation should be as easy as a `SecondaryMap`, for example.
Contributor guide
Assessment
This issue has not been assessed yet.