ApsarasX/llvm-bindings

[Feature] Support llvm::Function::addFnAttr

dvoytenko opened this issue · 6 comments

This API would be very helpful with optimization hints, such as readonly. More on this: https://llvm.org/docs/LangRef.html#function-attributes

OK, I will add this API soon.

BTW, if you need other APIs, please try to list them all at once, so that I don't have to release a version every time I add an API

Certainly! Thank you!

addParamAttr and addRetAttr would also be nice additions :) Thanks for the great work!

@dvoytenko @ApsarasX In the meantime, I created a fork to add basic support for attributes.

@dvoytenko @ApsarasX In the meantime, I created a fork to add basic support for attributes.

Good job!

Looking forward to your PR.

Awesome! Looking forward to PR as well.