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

hameeza ahmed via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 20 03:31:24 PST 2019

I have written pass to know basic blocks inside loops..
But for eg a function is called inside loop then all its basic block are
also considered part of the loop...
I am unable to detect that...

How to do so?

BB0.....if BB0 is part of Func0 and Func0 is called inside loop (L1) with
10 iterations then BB0 will be executed 10 times...
How to detect in LLVM pass that BB0 is inside loop L1?

Please help..

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190120/5e8ac3c8/attachment.html>

More information about the llvm-dev mailing list