TheDan64/inkwell

Question: writing a backend with inkwell?

nihalpasham opened this issue · 3 comments

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.

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!

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++)