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

Jonathan Smith via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 20 21:10:57 PST 2019

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.

More information about the llvm-dev mailing list