[Feature] Support llvm::Function::addFnAttr
dvoytenko opened this issue · 6 comments
dvoytenko commented
This API would be very helpful with optimization hints, such as readonly
. More on this: https://llvm.org/docs/LangRef.html#function-attributes
ApsarasX commented
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
dvoytenko commented
Certainly! Thank you!
nathsou commented
addParamAttr
and addRetAttr
would also be nice additions :) Thanks for the great work!
nathsou commented
@dvoytenko @ApsarasX In the meantime, I created a fork to add basic support for attributes.
ApsarasX commented
@dvoytenko @ApsarasX In the meantime, I created a fork to add basic support for attributes.
Good job!
Looking forward to your PR.
dvoytenko commented
Awesome! Looking forward to PR as well.