TheDan64 / inkwell

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

Implement safe API for operand bundles manipulation #523

Open airwoodix opened 1 month ago

airwoodix commented 1 month 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 4 weeks ago

Sure, would be happy to review a PR