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

Implement safe API for operand bundles manipulation #523

Closed airwoodix closed 2 months ago

airwoodix commented 3 months ago

Operand bundles can be attached to call and invoke instructions. Starting with LLVM18, llvm-sys exposes the relevant bindings for building instructions with attached operand bundles, as well as parsing operand bundles from those instructions.

I have a prototype implementation of a safe API here: https://github.com/TheDan64/inkwell/compare/master...airwoodix:inkwell:get-operand-bundles

Would you consider a PR upstreaming such changes?

TheDan64 commented 3 months ago

Sure, would be happy to review a PR