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

Create safe LLVM bindings #644

Closed
steveklabnik opened this issue Jan 21, 2015 · 7 comments
Closed

Create safe LLVM bindings #644

steveklabnik opened this issue Jan 21, 2015 · 7 comments
Labels
T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Comments

@steveklabnik
Copy link
Member

Issue by brson
Saturday Aug 03, 2013 at 23:15 GMT

For earlier discussion, see rust-lang/rust#8274

This issue was labelled with: A-libs, A-llvm, E-tedious in the Rust repository


rustc's LLVM bindings are a bit of a hodgepodge. Some abstractions have been added on top of the C bindings, but not consistently. It would be nice to do some serious cleanup here so that rustc is using only safe, high-level bindings.

@jauhien
Copy link

jauhien commented Sep 2, 2015

I've started work on safe LLVM bindings recently [1]. The work is in the very beginning (only small part of API is covered). My bindigs use llvm-sys [2] as unsafe bindings (not ones from rustc). Comments and pull requests are welcome. When something lacks in LLVM C API, I add wrappers for it and I have plans to push these wrappers upstream.

[1] https://github.com/jauhien/iron-llvm
[2] https://bitbucket.org/tari/llvm-sys.rs

@gsingh93
Copy link

gsingh93 commented Sep 3, 2015

@Hywan
Copy link
Contributor

Hywan commented Feb 9, 2016

Any news on this topic?

@vaartis
Copy link

vaartis commented Jun 18, 2017

I am working on some rust ideomatic LLVM bindings right now: https://github.com/vaartis/llvm-rs

@TheDan64
Copy link

TheDan64 commented Jul 5, 2017

I am working on Inkwell which is a safe wrapper over llvm-sys. It's still early on, but I've got some neat ideas for providing a more pleasant and type-safe interface. Contributors are welcome :)

@Centril Centril added the T-libs-api Relevant to the library API team, which will review and decide on the RFC. label Feb 23, 2018
@Kingwl
Copy link

Kingwl commented Apr 9, 2018

Any progress here? 😅

@Centril
Copy link
Contributor

Centril commented Oct 7, 2018

Closing in favor of the tracking issue rust-lang/rust#54892.

@Centril Centril closed this as completed Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-libs-api Relevant to the library API team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

9 participants