<div dir="ltr">Thank You...<div>Can you please share the code.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 21, 2019 at 10:11 AM Jonathan Smith <<a href="mailto:jvstech%2Bllvm@gmail.com">jvstech+llvm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The way I do it is to iterate over each of the instructions in the<br>
relevant blocks, find all the call sites, then repeat the same thing<br>
for all of the blocks in the called functions until there are no call<br>
sites left. There may be a better way to do it, but this is the method<br>
that works for me. It's also fully recursive, which may or may not be<br>
what you want.<br>
</blockquote></div>