Please suggest me method to find declaration of an Argument passed to a Function in llvm IR.
You can use Function::getArgumentList()
method to get a list of function's arguments. Then, you traverse it with iterators - ArgumentListType::begin()
and ArgumentListType::end()
.
See class Function
documentation - http://llvm.org/doxygen/classllvm_1_1Function.html
UPD:
The current way of iterating over arguments is arg_begin()
/arg_end()
/args()
methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With