[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
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...
More information about the llvm-dev