Skip to content

Use the -Z codegen-backend flag in rustc and reuse the cranelift rustc backend #38

@siriux

Description

@siriux

An idea for anyone interested in reviving this amazing project.

Holyjit could be rewritten to use the new codegen-backend rustc flag instead of implementing a compiler plugin.
There is an issue to bring it to stable at some point: rust-lang/rust#77933

This is used at least by https://github.com/EmbarkStudios/rust-gpu and https://github.com/bjorn3/rustc_codegen_cranelift

It might be even possible to take advantage of this last project to generate Cranelift IR from rust code, and therefore Holyjit would only need to take care of the transforms to the interpreter and connecting everything together. Of course, execution would be through Cranelift in a similar manner to SimpleJit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions