[LLVMdev] Dminator set question

陳韋任 (Wei-Ren Chen) chenwj at iis.sinica.edu.tw
Wed Oct 17 08:29:10 PDT 2012

On Wed, Oct 17, 2012 at 01:14:16PM +0000, 徐偉哲 wrote:
> How can I get the dominator set for each basicblock in a function

  Seems 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.

[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

More information about the llvm-dev mailing list