[llvm-dev] Basic Blocks of a Function called inside Loop (original) (raw)
Jonathan Smith via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 20 21:10:57 PST 2019
- Previous message: [llvm-dev] Basic Blocks of a Function called inside Loop
- Next message: [llvm-dev] Basic Blocks of a Function called inside Loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [llvm-dev] Basic Blocks of a Function called inside Loop
- Next message: [llvm-dev] Basic Blocks of a Function called inside Loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]