Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
siriux opened this issue Dec 5, 2020 · 0 comments

Comments

@siriux
Copy link

siriux commented Dec 5, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant