How can I get the dominator set for each basicblock in a function -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121017/ac55db64/attachment.html>
On 10/17/12 8:14 AM, 徐偉哲 wrote:> How can I get the dominator set for each basicblock in a functionLLVM has a DominatorTree analysis pass that might be useful: http://llvm.org/doxygen/classllvm_1_1DominatorTree.html I also recall an actual Dominator analysis pass in previous versions of LLVM, but I'm unsure if it still exists in mainline LLVM. I think it was replaced by some new facility in the VMCore library. -- John T.> > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121017/e46bbc7a/attachment.html>
On Wed, Oct 17, 2012 at 01:14:16PM +0000, 徐偉哲 wrote:> How can I get the dominator set for each basicblock in a functionSeems you have the same problem as [1]? Perhaps you can refer to [2] to see how to define your own pass and use getAnalysis template to get the function's dominator tree. HTH, chenwj [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-July/042038.html [2] http://llvm.org/docs/WritingAnLLVMPass.html#getAnalysis -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Maybe Matching Threads
- [LLVMdev] Runtime exception in DominatorTree.getRootNode()
- [LLVMdev] llc debug info
- [LLVMdev] Runtime exception in DominatorTree.getRootNode()
- [LLVMdev] Runtime exception in DominatorTree.getRootNode()
- [LLVMdev] Runtime exception in DominatorTree.getRootNode()