[LLVMdev] function pass to visit BB bottom-up order

Ananth Durbha avdurbha at yahoo.com
Fri Mar 29 09:13:44 PDT 2013


Already found an answer - there's an example usage for po_iterator in llvm/lib/Analysis/BranchProbabilityInfo.cpp and that works for me.

thanks,
Ananth



________________________________
 From: Ananth Durbha <avdurbha at yahoo.com>
To: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> 
Sent: Thursday, March 28, 2013 9:40 PM
Subject: function pass to visit BB bottom-up order
 

Hello llvmdevs,

In a function pass, I need to visit all the basic blocks in bottom-up order (the exact opposite of ReversePostOrderTraversal). I noticed some APIs like po_iterator but wasn't able to figure out an example usage for this on web. Any pointers/suggestions are highly appreciated.

Thanks,
Ananth 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130329/ab5623c9/attachment.html>


More information about the llvm-dev mailing list