[llvm-dev] Basic Blocks of a Function called inside Loop

hameeza ahmed via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 20 16:34:02 PST 2019

Thank You...
Can you please share the code.

On Mon, Jan 21, 2019 at 10:11 AM Jonathan Smith <jvstech+llvm at gmail.com>

> The way I do it is to iterate over each of the instructions in the
> relevant blocks, find all the call sites, then repeat the same thing
> for all of the blocks in the called functions until there are no call
> sites left. There may be a better way to do it, but this is the method
> that works for me. It's also fully recursive, which may or may not be
> what you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190121/3a5277ea/attachment.html>

More information about the llvm-dev mailing list