<div dir="ltr"><div><div><div>Sorry i'm using the following code:<br><br><div style="margin-left:40px">F = (cast<CallInst>(BI))->getCalledFunction();<br></div><div style="margin-left:40px">for (auto& A : F->getArgumentList()) { <br></div> errs() << "------- " << A.getName() << " " << "11" << "\n";<br> }<br><br></div>But how can I get the parameters (as e and f in the example)?<br><br></div>Thank you and best,<br></div>Mo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 10, 2017 at 4:25 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10 March 2017 at 15:12, Mohammad Norouzi via llvm-dev<br>
<span class=""><<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> for (auto& A : (cast<CallInst>(BI))->arg_<wbr>operands ()) errs() << A.dump();<br>
><br>
> but I get a and b instead.<br>
<br>
</span>This sounds really weird. If you're analyzing a CallInst in main, %a<br>
and %b shouldn't even be available. Can you show us your actual IR and<br>
output?<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div>