bytecodealliance / bytecodealliance/wasmtime

Cranelift: Value labels for displaying IR

Open
#12,863 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.