Dear All,
I am new to LLVM and want to know if LLVM provides any reachability information
about the instructions inside a function? For example, is instruction
'J' reachable from the instruction 'I'? (just based on CFG)
Thanks a lot,
::Saman
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20090727/d36adddd/attachment.html>
On Jul 27, 2009, at 5:05 AM, Saman Zonouz wrote:> Dear All, > > I am new to LLVM and want to know if LLVM provides any reachability > information about the instructions inside a function? For example, > is instruction 'J' reachable from the instruction 'I'? (just based > on CFG)You can just do a depth first search on the cfg? -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090727/8811cbfb/attachment.html>
Thanks. that's right but I was looking for sth like "successor closure" set for each instruction 'I' that includes all reachable instructions from I. Does LLVM provide such a set? Thanks alot, ::Saman Dear All,> >I am new to LLVM and want to know if LLVM provides any reachability information about the instructions inside a function? For example, is instruction 'J' reachable from the instruction 'I'? (just based on CFG) >You can just do a depth first search on the cfg? -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090727/a14f8531/attachment.html>