TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

LLVM 16 Support #400

Closed FawazTirmizi closed 1 year ago

FawazTirmizi commented 1 year ago

Has anyone looked into supporting LLVM 16 yet? I am working on a project that would like to switch so I am interested in joining any existing efforts or starting my own if need be.

FawazTirmizi commented 1 year ago

Looks like I may be the first. I've started to work on this and will be pushing to Rivos' fork. If anyone else wants to help out let me know.

FawazTirmizi commented 1 year ago

The crate is now building and testing successfully with LLVM 16. I have added support for LLVMGetVersion() which was also added in the new version. I have not added support for LLVMTargetExtTypeInContext(), but other types are also not supported so I left that out for now. If there is desire to have it added I can look into that.

I will likely be opening a PR for this within the next week, I'm going to clean up the commits and do a bit more testing first.