rust-lang / rust-lang/rustc_codegen_cranelift

Using rustc_codegen_cranelift as dependency?

Open
#1,157 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

C-enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.