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

Question: writing a backend with inkwell? #515

Open
nihalpasham opened this issue Jul 15, 2024 · 3 comments
Open

Question: writing a backend with inkwell? #515

nihalpasham opened this issue Jul 15, 2024 · 3 comments
Labels

Comments

@nihalpasham
Copy link

I’m new to LLVM. I was wondering if we can use Inkwell to write a backend for a very simple target, such as a tiny micro-controller. Are there any limitations to being able to put together a complete backend using (just) Inkwell? For example, does it lack TableGen support or have missing APIs in the backend pipeline?

PS: I couldn’t find a discussions tab, so I’m posting here. Please let me know if this isn’t the right place for this question.

@TheDan64
Copy link
Owner

We can only support what LLVM exposes through their C API, I'm not aware of any backends that aren't exposed though.

Also, a discussions tab is a good idea, and I'll add that for future use!

@nihalpasham
Copy link
Author

nihalpasham commented Jul 19, 2024

We can only support what LLVM exposes through their C API, I'm not aware of any backends that aren't exposed though.

Got it. Hmm, I was really hoping to learn how compiler backends work by putting one together in Rust (and avoid having to use C++)

@nihalpasham
Copy link
Author

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

No branches or pull requests

2 participants