inkwell icon indicating copy to clipboard operation
inkwell copied to clipboard

Question: writing a backend with inkwell?

Open nihalpasham opened this issue 1 year ago • 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.

nihalpasham avatar Jul 15 '24 15:07 nihalpasham

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!

TheDan64 avatar Jul 18 '24 23:07 TheDan64

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 avatar Jul 19 '24 04:07 nihalpasham

In case, you'd like this to the first discussion. :)

https://docs.github.com/en/discussions/managing-discussions-for-your-community/moderating-discussions#converting-an-issue-to-a-discussion

nihalpasham avatar Jul 19 '24 04:07 nihalpasham