rust-lang / rust-lang/rustc_codegen_cranelift
Using rustc_codegen_cranelift as dependency?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 157
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 3
Description
I would like to create meta-tracing JIT library that will work like holyjit or RPython and there was a way of interpreting Rust MIR but now I think that it will be much simpler to interpret Cranelift IR so I'm wondering if it is possible to use rustc_codegen_cranelift to translate some Rust function MIR into Cranelift IR and then somehow obtain this IR? I've tried to look at source code but haven't found API for this
Contributor guide
No contributing guide indexed for this repository
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 by reviewing the rustc_codegen_cranelift source and its handling of Rust MIR and Cranelift IR; the issue names no specific file, test, or API entry point. Determine whether translating a Rust function's MIR and exposing the resulting Cranelift IR is supported, and document the available interface or the missing design needed to make it possible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100